https://bugzilla.wikimedia.org/show_bug.cgi?id=19412

--- Comment #25 from Pavel Selitskas [wizardist] <p.selits...@gmail.com> ---
(In reply to comment #24)
> We have the same problem in KN:WP.
> 
> In many of the calendar templates which we imported from EN:WP, there are
> expressions like this:
> 
> {{#ifexpr:{{#time:t|{{{year|2000}}}-{{{month|jan}}}}}>28|29}}
> 
> which promptly gets expanded to 
> 
> {{#ifexpr:31>28|29}}
> 
> which promptly returns 29. 
> 
> 
> However, the same expression in KN:WP will result in this:
> 
> {{#ifexpr:{{#time:t|{{{year|2000}}}-{{{month|jan}}}}}>28|29}}
> 
> {{#ifexpr:೩೧>28|29}}
> 
> which will throw an error: 
> Expression error: Unrecognized punctuation character "�"
> 
> Is there any workaround/solution for this?

Your issue is not directly related to this one, but I can see it. You need to
convert the digits to arabic glyphs.

As long as {{#time}} supplies you with Kannada digits, you need to use
{{format:KANNADA_INTEGER|R}} (note "R" argument). For example, you can use this
to fix the issue:

{{#ifexpr:{{formatnum:{{#time:t|{{{year|2000}}}-{{{month|jan}}}}}|R}}>28|29}}

Try it and report back if it works.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to