For translators it may be nice to be pointed towards some of the
websites instructing how to build strftime-expressions, example:
<https://www.foragoodstrftime.com/>.
Quite often the translation-comment is something like:
#. This is the time format used in the "Date Modified" column and
#. * in the Properties dialog. See the man page of strftime for an
#. * explanation of the values.
Such a comment is limited to Linux and perhaps a handful of applications
on other platforms, unless linked to any of the web-based versions of
strftime man pages; e.g.:
<https://man7.org/linux/man-pages/man3/strftime.3.html>
In the Ubuntu indicator-datetime.po is this comment:
#. TRANSLATORS: A format string for the strftime function for
#. a clock showing the day of the week and the time in 24-hour format
without
#. seconds. Information is available in this Launchpad answer:
#.
https://answers.launchpad.net/ubuntu/+source/indicator-datetime/+question/149752
Which is awful because it does not give any hint on how to build
strftime-expressions, but then, there's a link to a manpage.
I'd prefer the friendly interface of <https://www.foragoodstrftime.com/>
or other similar website (there's a handful of them).
Just thoughts,
Sveinn í Felli
P.S.: In my dearest Icelandic, the 'natural' expression is "%e. %B %Y -
%H:%M:%S" and the 'scientific' one is "%F".
Þann 10.3.2021 05:22, skrifaði Bill Kendrick:
>
> Okay I hate %x ("Preferred date representation based on locale") in English.
> ("03/09/21" nonsense!!!)
>
> So I'm going to have the gettext()'d format string for strftime() be
> this, which everyone can simply replace in their localization
> (e.g., "%Y-%m-%d" or just "%F", if you want ISO 8601 "YYYY-MM-DD"
> format, which I do love for technical use.)
>
> %B %e, %Y
>
> That's full month name (_should_ be localized), one digit day,
> four digit year. So in English:
>
> March 9, 2021
>
>
> I realize this is almost identical to what I had before ("%e %B %Y"),
> _but_, since the format string is now wrapped in gettext(), hopefully
> it will be more flexible. :)
>
>
> -bill!
>
>
> On Sun, Mar 07, 2021 at 01:01:31PM -0500, Mark Kim wrote:
>>>> Would it be easier to just do
>>>>
>>>> <?= strftime("%x", mktime(0, 0, 0, 3, 5, 2021)) ?>
>>>>
>>>> .. and skip month_names[], its lookup, relying on the user to figure out
>>>> how to "translate" "%1\$s %2\$s %3\$s", and documenting how to
>> translate it?
>>>
>>> Would this address Shin-Ichi's issue?
>
>
> _______________________________________________
> Tuxpaint-i18n mailing list
> Tux...@li...
> https://lists.sourceforge.net/lists/listinfo/tuxpaint-i18n
>
|