Page MenuHomePhabricator

#time ParserFunctions output for Bengali Wiki
Closed, InvalidPublic

Description

Dear we have an issue with #time ParserFunctions and their calculation with #expr ParserFunctions of our all out time based calculation in all templates.

The issue is #time: ParserFunctions output is Bengali numeric number which is non-calculable.

see the example....
{{#time: YmdHis}}= ২০০৯১০২৯০৭১৯৫৭ (output is Bengali numeric number)

then when we use this below coding to any templates....we got error....

{{#expr:{{#time: YmdHis}}/1000000 round 0}}=এক্সপ্রেশন ত্রুটি: অপরিচিত বিরামচিহ্ন ক্যারেক্টার "�"

But when I add this code output is roman number
{{#expr: ( 27 * 46 / pi ) round 2 }}=395.34

see this link
http://bn.wikipedia.org/wiki/user:Jayantanth/Sandbox

This problem is also shown all other Indian languages like Hindi wikipedia

http://hi.wikipedia.org/wiki/user:Jayantanth/Sandbox

http://en.wikipedia.org/wiki/User:Jayantanth/Sandbox


Version: unspecified
Severity: enhancement
URL: http://bn.wikipedia.org/wiki/user:Jayantanth/Sandbox

Details

Reference
bz21341

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 21 2014, 10:58 PM
bzimport added a project: ParserFunctions.
bzimport set Reference to bz21341.
bzimport added a subscriber: Unknown Object (MLST).
IAlex added a comment.Oct 29 2009, 8:53 AM

You need to put the "xN" flag at the beginning of the time format:
{{#expr:{{#time:xNYmdHis}}/1000000 round 0}}
works correctly.

Thank you Alex. But this small things have to be updated in
http://www.mediawiki.org/wiki/Help:ParserFunctions

Sorry dear I had just overlook below the table saying that

Flags
xn Format the next numeric code as a raw ASCII number. In the Hindi language, {{#time:H, xnH}} produces ०६, 06
xN Like xn, but as a toggled flag, which endures until the end of the string or until the next appearance of xN in the string.