Page MenuHomePhabricator

Broken Turkish translation of Date formats in Phabricator UI, shows AM/PM instead of month names
Closed, InvalidPublic

Description

Hi, when browse Phabricator in Turkish language, dates seem weird. I checked Translatewiki for translations of months and weekdays, but they seem to be translated properly. In the examples below, weekday is not listed instead “hour” is written. ÖÖ means “AM” and “ÖS” means “PM”. Month is not written at all..

Do you know whether this is translation issue with Turkish?

D7C6CA76-F171-4F43-83AF-BF44E9CE5D3F.jpeg (671×708 px, 85 KB)

C8D3B9AA-B79A-49AF-848B-CA09DF965A18.jpeg (713×759 px, 98 KB)

Event Timeline

Aklapper renamed this task from Turkish translations issue to Date formats broken in Turkish, shows AM/PM instead of month names.Mar 6 2021, 10:10 AM
T276657#6888816 içinde, @Aklapper yazdı:

What are the "Date Format" and "Time Format" on https://phabricator.wikimedia.org/settings/panel/datetime/ ?

Date format: Avrupa: 28-02-2000 (Europe: 28-02-2000)
Time Format: 24 saat, 14:34 (24 Hour, 14:34)

Aklapper renamed this task from Date formats broken in Turkish, shows AM/PM instead of month names to Broken Turkish translation of Date formats in Phabricator UI, shows AM/PM instead of month names.Mar 18 2021, 8:26 AM
Aklapper closed this task as Invalid.

I was trying to find any strftime or datetime strings and failed. Then I starred at the Turkish translations at https://translatewiki.net/w/i.php?title=Special:Translate&group=phabricator-libphutil-core&language=tr&filter=&optional=1&action=translate and finally found
./phabricator/src/applications/people/storage/PhabricatorUser.php: $format = 'M j Y'; which is translated to A j Y in https://translatewiki.net/w/i.php?title=Special:Translate&showMessage=libphutil-core-e0ac3c4e0da81dab&group=phabricator-libphutil-core&language=tr&filter=&optional=1&action=translate

https://www.php.net/manual/en/datetime.format.php says:

M A short textual representation of a month, three letters
A Uppercase Ante meridiem and Post meridiem

The Turkish translation is wrong/broken, that is the problem to solve and translatewiki.net is the place where to solve it.
The problem in this ticket is valid, but it is nothing to solve in the codebase. The translations of the strings must be changed. This can be done by any user who knows the language and you do not need to know programming:
Translations are done on the translatewiki.net website. You can create an account there, change translations, and after a while they will be updated here.
For more information, see https://www.mediawiki.org/wiki/Translatewiki.net - thanks!

Thank you @Aklapper, I was looking for individual translations.