Page MenuHomePhabricator

Timestamps not rendering in Bangla numerals in bn-wiki
Closed, ResolvedPublic

Description

Author: ragibhasan

Description:
Hi,
I am an admin in the Bengali language wiki (http://bn.wikipedia.org ). Most of
it has been localized to render in Bengali language, but the timestamps still
are showing up in English.

For example, here is a timestamp from this diff
http://bn.wikipedia.org/w/index.php?title=%E0%A6%95%E0%A6%95%E0%A7%8D%E0%A6%B8%E0%A6%AC%E0%A6%BE%E0%A6%9C%E0%A6%BE%E0%A6%B0_%E0%A6%9C%E0%A7%87%E0%A6%B2%E0%A6%BE&curid=2684&diff=13365&oldid=13364

The time stamp shows up as follows:

20:31, ২১ এপ্রিল ২০০৬ তারিখের সংশোধন

Note that, the date shows up in Bengali numerals, but the time 20:31, shows up
in English numerals. It should have rendered like this:

২০:৩১, ২১ এপ্রিল ২০০৬ তারিখের সংশোধন

i.e. the time 20:31 should have been rendered in Bangla numerals as ২০:৩১

Thanks

Ragib


Version: unspecified
Severity: normal
URL: http://bn.wikipedia.org/wiki/special:Recentchanges

Details

Reference
bz5679

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 21 2014, 9:11 PM
bzimport set Reference to bz5679.
bzimport added a subscriber: Unknown Object (MLST).
bzimport created this task.Apr 22 2006, 4:17 AM

gangleri wrote:

Hallo!

Please note that this behaviour can be seen also at
[[fa:special:Recentchanges]], [[hi:special:Recentchanges]] (etc.).

[[bm:special:Preferences]] does not provide a "#prefsection-4" to select
different "Date formats".
[[fa:special:Preferences]], [[hi:special:Preferences]] provide more options for
"Date format" but none showing the *time* with localized numerals.

best regards reinhardt [[user:gangleri]]

references
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/languages/LanguageBn.php?view=markup
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/languages/LanguageFa.php?view=markup
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/languages/LanguageHi.php?view=markup
(etc.)

Patched bn: hi: fa: languages files so they do the translation
when calling dateandtime().

See trunk@13908 , not in REL1_6 as I am not sure its really the
way to do it. Will be in 1.7.0 unless someone backport it.

gangleri wrote:

The following languages are also using "local" numerals:

Gujarati (gu:)
Punjabi (pa:)

gangleri wrote:

Also

Kannada (kn:)

gangleri wrote:

Also

Assamese (as:)

Patched Language::time() to use transformed numbers if possible.

gangleri wrote:

*note*

Malayalam (ml:) [[ml:template:wikivar]] [[ml:special:Recentchanges]]
Telugu (te:) [[te:template:wikivar]] [[te:special:Recentchanges]]

do not show localized numbers *but*

http://nike.users.idler.fi/betawiki/special:Recentchanges?uselang=ml
http://nike.users.idler.fi/betawiki/special:Recentchanges?uselang=te

do. Please reopen this report or a new report if this does not change within one
week.

best regards reinhardt [[user:gangleri]]

gangleri wrote:

*note*

Beside the languages mentioned above other languages are using numerals which
are *homoglyphes* to the numerals in the basic Latin Unicode block
such languages are:
Tibetan (bo:) [[bo:ser:Gangleri/bugzilla/05679]]
Oriya (or:) [[or:ser:Gangleri/bugzilla/05679]]

see complete list of languages using function digitTransformTable() at
http://nike.users.idler.fi/betawiki/user:Gangleri/Unicode/character_test