I think I found a bug and wanted to check if I'm doing it wrong, or if it is indeed a bug and if so if there is somewhere I can track it?
{{PLURAL:$1|$3 started this topic|A|0=B|2=C|3=$3}}
mw.msg( "flow-topic-participants", 3 ) 'A'
However {{PLURAL:$1|$3 started this topic|A|0=B|2=C|3=D}}
mw.msg( "flow-topic-participants", 3 ) 'D'
Is there any workaround I can use?
On Mon, Aug 25, 2014 at 12:50 PM, Jon Robson jdlrobson@gmail.com wrote:
I think I found a bug and wanted to check if I'm doing it wrong, or if it is indeed a bug and if so if there is somewhere I can track it?
{{PLURAL:$1|$3 started this topic|A|0=B|2=C|3=$3}}
mw.msg( "flow-topic-participants", 3 ) 'A'
However {{PLURAL:$1|$3 started this topic|A|0=B|2=C|3=D}}
mw.msg( "flow-topic-participants", 3 ) 'D'
Is there any workaround I can use?
I don't recognize the feature you are using. Was this added recently, like in the last 2-3 years? If so, what's probably going on is that the JS implementation of PLURAL simply predates this feature.
Roan
I'm not sure when it got added but it's been documented and the given example [1] works in JS
'Box has {{PLURAL:$1|one egg|$1 eggs|12=a dozen eggs}}.'
It just doesn't seem to work if I do
'Box has {{PLURAL:$1|one egg|$1 eggs|12=a dozen eggs belonging to $2}}.'
I raised bug https://bugzilla.wikimedia.org/show_bug.cgi?id=69993 in case this is indeed an oversight.
[1] https://www.mediawiki.org/wiki/Localisation#.E2.80.A6on_numbers_via_PLURAL
On Mon, Aug 25, 2014 at 1:42 PM, Roan Kattouw rkattouw@wikimedia.org wrote:
On Mon, Aug 25, 2014 at 12:50 PM, Jon Robson jdlrobson@gmail.com wrote:
I think I found a bug and wanted to check if I'm doing it wrong, or if it is indeed a bug and if so if there is somewhere I can track it?
{{PLURAL:$1|$3 started this topic|A|0=B|2=C|3=$3}}
mw.msg( "flow-topic-participants", 3 ) 'A'
However {{PLURAL:$1|$3 started this topic|A|0=B|2=C|3=D}}
mw.msg( "flow-topic-participants", 3 ) 'D'
Is there any workaround I can use?
I don't recognize the feature you are using. Was this added recently, like in the last 2-3 years? If so, what's probably going on is that the JS implementation of PLURAL simply predates this feature.
Roan
Mediawiki-i18n mailing list Mediawiki-i18n@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-i18n
On Tue, Aug 26, 2014 at 2:25 AM, Jon Robson jdlrobson@gmail.com wrote:
I'm not sure when it got added but it's been documented and the given example [1] works in JS
'Box has {{PLURAL:$1|one egg|$1 eggs|12=a dozen eggs}}.'
The feature was added to PHP plural support in https://gerrit.wikimedia.org/r/#/c/23943/ and then added to javascript in https://gerrit.wikimedia.org/r/#/c/73567 (Bug: https://bugzilla.wikimedia.org/show_bug.cgi?id=51284) - in July 2013.
It just doesn't seem to work if I do
'Box has {{PLURAL:$1|one egg|$1 eggs|12=a dozen eggs belonging to $2}}.'
I raised bug https://bugzilla.wikimedia.org/show_bug.cgi?id=69993 in case this is indeed an oversight.
I can confirm the bug. I have a patch(https://gerrit.wikimedia.org/r/#/c/156237/), need some more testing.
Thanks Santhosh
Thanks for the quick fix Santosh! Glad to help make the software even better by identifying a bug :D
On Mon, Aug 25, 2014 at 9:12 PM, Santhosh Thottingal sthottingal@wikimedia.org wrote:
On Tue, Aug 26, 2014 at 2:25 AM, Jon Robson jdlrobson@gmail.com wrote:
I'm not sure when it got added but it's been documented and the given example [1] works in JS
'Box has {{PLURAL:$1|one egg|$1 eggs|12=a dozen eggs}}.'
The feature was added to PHP plural support in https://gerrit.wikimedia.org/r/#/c/23943/ and then added to javascript in https://gerrit.wikimedia.org/r/#/c/73567 (Bug: https://bugzilla.wikimedia.org/show_bug.cgi?id=51284) - in July 2013.
It just doesn't seem to work if I do
'Box has {{PLURAL:$1|one egg|$1 eggs|12=a dozen eggs belonging to $2}}.'
I raised bug https://bugzilla.wikimedia.org/show_bug.cgi?id=69993 in case this is indeed an oversight.
I can confirm the bug. I have a patch(https://gerrit.wikimedia.org/r/#/c/156237/), need some more testing.
Thanks Santhosh
Mediawiki-i18n mailing list Mediawiki-i18n@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-i18n
mediawiki-i18n@lists.wikimedia.org