Last modified: 2012-10-04 09:53:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T23341, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21341 - #time ParserFunctions output for Bengali Wiki
#time ParserFunctions output for Bengali Wiki
Product: MediaWiki extensions
Classification: Unclassified
ParserFunctions (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
Blocks: 40760
  Show dependency treegraph
Reported: 2009-10-29 08:21 UTC by Jayanta Nath
Modified: 2012-10-04 09:53 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Jayanta Nath 2009-10-29 08:21:53 UTC
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

This problem is also shown all other Indian languages like Hindi wikipedia
Comment 1 Alexandre Emsenhuber [IAlex] 2009-10-29 08:53:12 UTC
You need to put the "xN" flag at the beginning of the time format:
{{#expr:{{#time:xNYmdHis}}/1000000 round 0}}
works correctly.
Comment 2 Jayanta Nath 2009-10-29 09:27:19 UTC
Thank you Alex. But this small things have to be updated in
Comment 3 Jayanta Nath 2009-10-29 09:47:36 UTC
Sorry dear I had just overlook below the table saying that 

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.

Note You need to log in before you can comment on or make changes to this bug.