We could still use templates for formatting dates. Note that this is more complex than you think: compare these two correct dates in French: - 1<sup><small>er</small></sup> avril 2014 - 2 avril 2014 but the following is clearly incorrect: - 1 avril 2014 So there are suffixes appended conditionally to so,e parts of a date element, which depend on their value (above: the day number in the month).
There are also othe complications: some locales do not use the Gregorian calendar, and it makes no sense combining the localized dated with a UTC time without a proper separation (uwing additional words, not just punctuation or space separation)
Some wikis use templates (that use themselves the #time function internally) but these templates are not usable in central notices.
For me it is just simpler to avoid all formating code in central notices, let people translate them fully without this complication, and inform translators if the date must be changed (the safest way is to mark a new translation so that the older one will be marked fuzzy you'll know if these dates have been updated in translations).
2014-05-07 0:46 GMT+02:00 James Alexander jalexander@wikimedia.org:
That makes sense... I'll be honest though that'm hesitant to use it in something like a banner where we're also asking for translations from those who see the banner (through the translate link, though I will probably remove that from anonymous and mobile views). Asking people to play with the time parser codes just seems like going a bit too far away from what I can expect for a casual translator.
James Alexander Legal and Community Advocacy Wikimedia Foundation (415) 839-6885 x6716 @jamesofur
On Tue, May 6, 2014 at 3:38 PM, Jon Harald Søby jhsoby@gmail.com wrote:
The {{#time:}} ParserFunction: https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23time
Tell translators in the description to fill in whatever code from that list is correct in their language. So for English it'll be "j F Y", for Norwegian "j. F Y", for Farsi "xij xiF xiY" (I think). And then in the code it'll be just {{#time:j F Y|2014-06-06}}, and you tell translators to keep the date the same, but change the codes if necessary.
2014-05-06 19:43 GMT+02:00 James Alexander jalexander@wikimedia.org:
The {{formatnum:6}} makes sense, I can add that in, (as I said earlier
I'm happy for people to change it for their own numerical system, but that would certainly be easier). I don't know about a good way to call the formate date function sadly :-/ I tried to pick the 'most' universal option but it certainly isn't perfect and I completely agree with you that a format date format would be useful.
James Alexander Legal and Community Advocacy Wikimedia Foundation (415) 839-6885 x6716 @jamesofur
On Tue, May 6, 2014 at 7:47 AM, Philippe Verdy verdy_p@wanadoo.frwrote:
Doesn't MediaWiki offer for all Wikimedia wikis the necessary support for formating dates according to user preferences or local wiki defaults for signatures? If so, the number 6 you want will be inappropriate in Arabic and in many date formats for South Asian languages using other digits. MediaWiki offers {{formatnum:6}} for this purpose, it is easy to infer where it is in the translation if you intend to change it. However June is also the 6th month of the year (same day number) and you may wonder which field is the day part if you don't know if the date uses "d;m;y" or "m:d;y" formatting order (some languages don"t really have names for Gregorian dates, but append a speific suffix to numbers to indicate if this is a year, month or day, such as Chinese).
A very small script will generate the formated dates that are then easy to update in translations, even if you don't want to use templates for that (because templates are wiki-dependant and their name vary). But things would be even easier if all wikis had a parserfunction for formatting dates given a matching language code (if the format is unknown for that language, just use the ISO 8601 format yyy-mm-dd which is not ambiguous in all existing languages, even if it is not the most usual format for that language. I just hope that one day we'll have a parser function like {{formatdate:2014-06-06|ymd|language-code}} that will format the date using the 3 fields (not padded with zero if not needed, but not rounded to 2 digits with the appropriate order, suffixes and separators, and possibly their names; all in the appropriate script)
CLDR data has this info and there's even a demo in the Unicode CLDR website.
2014-05-06 2:07 GMT+02:00 James Alexander jalexander@wikimedia.org:
Hi All,
The Legal team will be announcing later this week (currently planned for Wednesday) the start of a 30 day notice period that the privacy policy will be changing. This is the privacy policy that was discussed over a multi month period on wiki ( https://meta.wikimedia.org/wiki/Privacy_policy ) and was recently approved by the board. You can find the banner text to translate (using the translate extension) at https://meta.wikimedia.org/w/index.php?title=Special:Translate&group=Cen....
If possible (transliteration is fine) we want to keep the day part of the date ( 6 ) as a number so that, if the announcement date gets pushed back for some reason or another, we can adjust the official starting date without affecting the translations much.
Michelle is still finishing the blog post itself but the plan is to have it available for translation as well so that over the course of the month we can get it up in as many translations as possible.
If you'd prefer you can also send me the translation off list and I'm happy to insert it. The current text is: Our Privacy Policy is changing on 6 June 2014. To learn more, click here.
We also have the 'close' text (shown you hover over the close button) saying: Close
James Alexander Legal and Community Advocacy Wikimedia Foundation (415) 839-6885 x6716 @jamesofur
Translators-l mailing list Translators-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/translators-l
Translators-l mailing list Translators-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/translators-l
Translators-l mailing list Translators-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/translators-l
-- mvh Jon Harald Søbyhttp://meta.wikimedia.org/wiki/User:Jon_Harald_S%C3%B8by
Translators-l mailing list Translators-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/translators-l
Translators-l mailing list Translators-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/translators-l