[Wikidata-bugs] [Maniphest] T326297: Incorrect use of plural with 0 in MediaWiki:Wikibase-statementview-references-counter/sl

2023-11-29 Thread Umherirrender
Umherirrender removed a project: Patch-For-Review.

TASK DETAIL
  https://phabricator.wikimedia.org/T326297

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Umherirrender
Cc: jhsoby, Lucas_Werkmeister_WMDE, Aklapper, TadejM, Danny_Benjafield_WMDE, 
Astuthiodit_1, MaryMunyoki, Prufkick, karapayneWMDE, Invadibot, maantietaja, 
ItamarWMDE, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, 
srishakatux, LawExplorer, _jensen, rosalieper, Scott_WUaS, Srdjan, 
MuhammadShuaib, LNDDYL, Psychoslave, Wikidata-bugs, aude, Gryllida, Shizhao, 
Arrbee, Mbch331, Jay8g, Isabelladantes1983, Themindcoder, Adamm71, Jersione, 
Hellket777, LisafBia6531, 786, Biggs657, Juan90264, Alter-paule, Beast1978, 
Un1tY, Hook696, Kent7301, joker88john, CucyNoiD, Gaboe420, Giuliamocci, 
Cpaulf30, Af420, Bsandipan, Lewizho99, Maathavan, Neuronton
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T326297: Incorrect use of plural with 0 in MediaWiki:Wikibase-statementview-references-counter/sl

2023-11-29 Thread gerritbot
gerritbot added a comment.


  Change 875958 **abandoned** by Umherirrender:
  
  [mediawiki/core@master] parser: {{int:}} should transform message text in 
user language
  
  Reason:
  
  Too many side effects
  
  https://gerrit.wikimedia.org/r/875958

TASK DETAIL
  https://phabricator.wikimedia.org/T326297

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: gerritbot
Cc: jhsoby, Umherirrender, Lucas_Werkmeister_WMDE, Aklapper, TadejM, 
Danny_Benjafield_WMDE, Isabelladantes1983, Themindcoder, Adamm71, Jersione, 
Hellket777, LisafBia6531, Astuthiodit_1, 786, MaryMunyoki, Prufkick, Biggs657, 
karapayneWMDE, Invadibot, maantietaja, Juan90264, Alter-paule, Beast1978, 
ItamarWMDE, Un1tY, Akuckartz, Hook696, Kent7301, joker88john, CucyNoiD, 
Nandana, Gaboe420, Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, 
GoranSMilovanovic, QZanden, srishakatux, LawExplorer, Lewizho99, Maathavan, 
_jensen, rosalieper, Neuronton, Scott_WUaS, Srdjan, MuhammadShuaib, LNDDYL, 
Psychoslave, Wikidata-bugs, aude, Gryllida, Shizhao, Arrbee, Mbch331, Jay8g
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T326297: Incorrect use of plural with 0 in MediaWiki:Wikibase-statementview-references-counter/sl

2023-05-28 Thread jhsoby
jhsoby added a comment.


  In T326297#8501120 , 
@TadejM wrote:
  
  > Ok, I will revert if you say it's incorrect. I have edited this way because 
of the bug and because I sometimes get a warning in translatewiki.net "The 
expected syntax is {{PLURAL:$1|one=|two=|few=|many}} " (or something along this 
line).
  
  Just to comment on this last part; That is because {{PLURAL}} works 
differently on different projects in Translatewiki. The syntax for 
non-MediaWiki projects (e.g. mobile apps or external websites) usually use the 
`one=|two=|…` form, but MediaWiki itself uses a slightly different syntax. The 
MediaWiki version normally only has unnamed arguments (so e.g. 
`{{PLURAL:$1|one|few|many}}`, depending on the language you're translating to), 
but also optionally supports //named// arguments, so you can define something 
specific for certain integers; thus you can have 
`{{PLURAL:$1|one|few|many|0=none}}`, for instance. I would, however, not 
recommend using that in this specific message, since the problem (as already 
described by @Umherirrender) is that the message is parsed //as if it were 
English//, because it is transcluded on a page set to the default language 
(which for Wikidata is English).

TASK DETAIL
  https://phabricator.wikimedia.org/T326297

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: jhsoby
Cc: jhsoby, Umherirrender, Lucas_Werkmeister_WMDE, Aklapper, TadejM, 
Themindcoder, Adamm71, Jersione, Hellket777, LisafBia6531, Astuthiodit_1, 786, 
Prufkick, Biggs657, karapayneWMDE, Invadibot, maantietaja, Juan90264, 
Alter-paule, Beast1978, ItamarWMDE, Un1tY, Akuckartz, Hook696, Kent7301, 
joker88john, CucyNoiD, Nandana, Gaboe420, Giuliamocci, Cpaulf30, Lahi, Gq86, 
Af420, Bsandipan, GoranSMilovanovic, QZanden, LawExplorer, Lewizho99, 
Maathavan, _jensen, rosalieper, Neuronton, Scott_WUaS, Srdjan, MuhammadShuaib, 
LNDDYL, Psychoslave, Wikidata-bugs, aude, Gryllida, Shizhao, Arrbee, Mbch331, 
Jay8g
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T326297: Incorrect use of plural with 0 in MediaWiki:Wikibase-statementview-references-counter/sl

2023-01-05 Thread gerritbot
gerritbot added a project: Patch-For-Review.

TASK DETAIL
  https://phabricator.wikimedia.org/T326297

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: gerritbot
Cc: Umherirrender, Lucas_Werkmeister_WMDE, Aklapper, TadejM, Adamm71, Jersione, 
Hellket777, LisafBia6531, Astuthiodit_1, 786, Prufkick, Biggs657, 
karapayneWMDE, Invadibot, maantietaja, Juan90264, Alter-paule, Beast1978, 
ItamarWMDE, Un1tY, Akuckartz, Hook696, Kent7301, joker88john, CucyNoiD, 
Nandana, Gaboe420, Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, 
GoranSMilovanovic, QZanden, LawExplorer, Lewizho99, Maathavan, _jensen, 
rosalieper, Neuronton, Scott_WUaS, Srdjan, MuhammadShuaib, LNDDYL, Psychoslave, 
Wikidata-bugs, aude, Gryllida, Shizhao, Arrbee, Mbch331, Jay8g
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T326297: Incorrect use of plural with 0 in MediaWiki:Wikibase-statementview-references-counter/sl

2023-01-05 Thread gerritbot
gerritbot added a comment.


  Change 875958 had a related patch set uploaded (by Umherirrender; author: 
Umherirrender):
  
  [mediawiki/core@master] parser: {{int:}} should transform message text in 
user language
  
  https://gerrit.wikimedia.org/r/875958

TASK DETAIL
  https://phabricator.wikimedia.org/T326297

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: gerritbot
Cc: Umherirrender, Lucas_Werkmeister_WMDE, Aklapper, TadejM, Astuthiodit_1, 
Prufkick, karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, Akuckartz, 
Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, 
rosalieper, Scott_WUaS, Srdjan, MuhammadShuaib, LNDDYL, Psychoslave, 
Wikidata-bugs, aude, Gryllida, Shizhao, Arrbee, Mbch331, Jay8g
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T326297: Incorrect use of plural with 0 in MediaWiki:Wikibase-statementview-references-counter/sl

2023-01-05 Thread Umherirrender
Umherirrender added a comment.


  It is a issue with use of `{{int:}}` and that means in core and not for this 
message or extension.
  When the parser function is used, the message is fetched and `Message::plain` 
is called. That returns for this message in the user language the wikitext `0 
{{PLURAL:0|sklic|sklica|sklici|sklicev}}`. This wikitext is parsed further in 
the content language. PLURAL in english language only supports two forms (1 and 
not 1), so it pick up the second ("sklica"). The plural needs to be parsed in 
the user language as well, so the transform of `{{` must be done in the 
message, that's what `Message::text` exists for, that would expand all 
templates and parser functions, like grammar, which is good. But it can also 
have some other effects, not sure.
  
  It is there since very long (before dfd6988313d7033c8294d4b1ce7d9e92604501dc 
)

TASK DETAIL
  https://phabricator.wikimedia.org/T326297

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Umherirrender
Cc: Umherirrender, Lucas_Werkmeister_WMDE, Aklapper, TadejM, Astuthiodit_1, 
Prufkick, karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, Akuckartz, 
Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, 
rosalieper, Scott_WUaS, Srdjan, MuhammadShuaib, LNDDYL, Psychoslave, 
Wikidata-bugs, aude, Gryllida, Shizhao, Arrbee, Mbch331, Jay8g
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T326297: Incorrect use of plural with 0 in MediaWiki:Wikibase-statementview-references-counter/sl

2023-01-05 Thread Umherirrender
Umherirrender added a comment.


  `{{PLURAL:}}` supports numbered arguments. The last non-numbered argument is 
the "many" parts. It is valid to use "0=" there.
  
  When looking at the "in other languages" page on translatewiki for this 
message there are already usage of that - 
https://translatewiki.net/w/i.php?title=Special:Translations=MediaWiki%3AWikibase-statementview-references-counter
  
  And it looks like working: https://www.wikidata.org/wiki/Q557141?uselang=sms

TASK DETAIL
  https://phabricator.wikimedia.org/T326297

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Umherirrender
Cc: Umherirrender, Lucas_Werkmeister_WMDE, Aklapper, TadejM, Astuthiodit_1, 
Prufkick, karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, Akuckartz, 
Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, 
rosalieper, Scott_WUaS, Srdjan, MuhammadShuaib, LNDDYL, Psychoslave, 
Wikidata-bugs, aude, Gryllida, Shizhao, Arrbee, Mbch331, Jay8g
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T326297: Incorrect use of plural with 0 in MediaWiki:Wikibase-statementview-references-counter/sl

2023-01-05 Thread TadejM
TadejM added a comment.


  Thank you for the quick reply and the printscreens.
  
  Ok, I will revert if you say it's incorrect. I have edited this way because 
of the bug and because I sometimes get a warning in translatewiki.net "The 
expected forms are one=, two=, few= " (or something along this line).

TASK DETAIL
  https://phabricator.wikimedia.org/T326297

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: TadejM
Cc: Lucas_Werkmeister_WMDE, Aklapper, TadejM, Astuthiodit_1, Prufkick, 
karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, Akuckartz, Nandana, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Srdjan, MuhammadShuaib, LNDDYL, Psychoslave, Wikidata-bugs, aude, Gryllida, 
Shizhao, Arrbee, Mbch331, Jay8g
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T326297: Incorrect use of plural with 0 in MediaWiki:Wikibase-statementview-references-counter/sl

2023-01-05 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment.


  Also I don’t think this edit 

 is correct, `{{PLURAL:}}` doesn’t support explicitly naming the tags (“one”, 
“few”, etc.) as far as I can tell.

TASK DETAIL
  https://phabricator.wikimedia.org/T326297

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Aklapper, TadejM, Astuthiodit_1, Prufkick, 
karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, Akuckartz, Nandana, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Srdjan, MuhammadShuaib, LNDDYL, Psychoslave, Wikidata-bugs, aude, Gryllida, 
Shizhao, Arrbee, Mbch331, Jay8g
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T326297: Incorrect use of plural with 0 in MediaWiki:Wikibase-statementview-references-counter/sl

2023-01-05 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment.


  That’s interesting – it’s broken on that page (generated via {{Statement+}}) 
but working on item pages (e.g. Stolpersteine 
):
  
  F35990814: image.png 
  F35990816: image.png 
  
  Might be an issue with the `{{int:}}` parser function?

TASK DETAIL
  https://phabricator.wikimedia.org/T326297

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Aklapper, TadejM, Astuthiodit_1, Prufkick, 
karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, Akuckartz, Nandana, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Srdjan, MuhammadShuaib, LNDDYL, Psychoslave, Wikidata-bugs, aude, Gryllida, 
Shizhao, Arrbee, Mbch331, Jay8g
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T326297: Incorrect use of plural with 0 in MediaWiki:Wikibase-statementview-references-counter/sl

2023-01-05 Thread TadejM
TadejM created this task.
TadejM added projects: Wikidata, I18n, Plural-Support.
Restricted Application added a subscriber: Aklapper.
Restricted Application added a project: wdwb-tech.

TASK DESCRIPTION
  Hello. I would like to report a bug in relation to 
[[MediaWiki:Wikibase-statementview-references-counter/sl]]. At 
[https://www.wikidata.org/wiki/Wikidata:WikiProject_Public_art 
Wikidata:WikiProject Public art], it shows "0 sklica", which is incorrect. Of 
the forms listed at 
[https://translatewiki.net/w/i.php?title=MediaWiki:Wikibase-statementview-references-counter/sl=edit
 translatewiki], the parser evidently takes the second stated form ('sklica') 
for 0 whereas the correct one would be the last one ('sklicev'). Thank you for 
having a look into this.

TASK DETAIL
  https://phabricator.wikimedia.org/T326297

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: TadejM
Cc: Aklapper, TadejM, Astuthiodit_1, Prufkick, karapayneWMDE, Invadibot, 
maantietaja, ItamarWMDE, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, 
QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Srdjan, MuhammadShuaib, 
LNDDYL, Psychoslave, Wikidata-bugs, aude, Gryllida, Shizhao, Arrbee, Mbch331, 
Jay8g
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org