GNOME Bugzilla – Bug 753973
Gnome shell calendar should use localised numbers for Farsi/Persian
Last modified: 2019-03-20 10:53:41 UTC
Created attachment 309879 [details] Gnome shell clock times are wrong I am using an RTL language, Persian فارسی (LANG=fa_IR.UTF-8), on my system and there are some bugs in Gnome shell. I think this problem arises because localised numbers are not being used. Some languages use Arabic numbers and this is not done in Gnome shell and causes an RTL bug when clock values are displayed. If you look at the attachment, the world clock values are wrong. For example one of the times is 41:04 which actually should be 04:41 or better yet it should be ۰۴:۴۱. Moreover, the day numbers in calendar are shown like 1, 2, 3, ... while they should be ۱, ۲, ۳, ... I think if localised numbers were used the RTL bug in clock will be fixed.
Thanks for reporting this. The PO file at https://l10n.gnome.org/vertimus/gnome-shell/master/po/fa has some translations. Some of those strftime formats look potentially broken to me, for example the line msgstr "<b>دیروز</b>، <b>%OH:%OM" Some are just inconsistent, like e.g. msgid "%l∶%M %p" msgstr "%Ol∶%OM %p" using a %p and keeping the %l but msgid "Yesterday, %l∶%M %p" msgstr "دیروز، %OI:%OM" not using a %p and converting the %l to %I. I'm moving this bug report from gnome-shell developers to Persian translators for the time being.
Amir: The underlying problem might actually be bug 673235 instead. Still I'd keep this ticket open for the inconsistency in the PO file...
Dear André, Thank you for looking into this problem. Bug 673235 only fixes a part of my problem. My biggest problem is the world clock part which shows the clocks incorrectly. I looked around the problem seems to arise from one of these places: https://github.com/GNOME/gnome-shell/blob/gnome-3-16/js/misc/util.js#L191 or https://github.com/GNOME/gnome-shell/blob/gnome-3-16/js/misc/util.js#L246 called from here: https://github.com/GNOME/gnome-shell/blob/gnome-3-16/js/ui/dateMenu.js#L208 the po file https://l10n.gnome.org/POT/gnome-shell.gnome-3-16/gnome-shell.gnome-3-16.fa.po #. Translators: Time in 24h format */ #: ../js/misc/util.js:191 msgid "%H∶%M" msgstr "%OH∶%OM" Now I don't know exactly in which part it decides to use Latin numbers instead of Arabic numbers. Do you?
(In reply to Amir Mohammadi from comment #3) > Now I don't know exactly in which part it decides to use Latin numbers > instead of Arabic numbers. Do you? Personally I don't, but please ask on the mailing list at https://mail.gnome.org/mailman/listinfo/gnome-i18n and/or the #i18n IRC channel (see https://wiki.gnome.org/Community/GettingInTouch/IRC ) to get answers. Thanks!
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/Teams/Translation/migration/issues/33.