Page MenuHomePhabricator

Grammar doesn't work in few places
Closed, ResolvedPublic

Description

Author: krixel

Description:
[[MediaWiki:aboutsite/pl]] reads ‘O Wikipedia’ instead of ‘O Wikipedii’.

This should be fixed by adding

$wgGrammarForms['pl']['MS.lp']['Wikipedia'] = 'Wikipedii';

to configuration settings.


Version: unspecified
Severity: enhancement
URL: http://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)&oldid=258330482#Polish_grammar_forms

Details

Reference
bz16669

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:29 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz16669.
bzimport added a subscriber: Unknown Object (MLST).

$wgGrammarForms['pl'] = array(
...

'MS.lp' => array(

...

'Wikipedia'    => 'Wikipedii',

The error is somewhere else.

It works properly, but no in the MediaWiki namespace, because those messages are not parsed using the language in question.

krixel wrote:

That makes sense; the nouns is properly inflected on Polish Wikipedia only.
Localized messages should be processed using their language. Alternatively, they should not use GRAMMAR at all, e.g.:
aboutsite/pl = 'O nas…'
It is worth noting that inflection of proper names in Polish is so unwieldy that only the most popular proper names get inflected e.g. in newscasts, others undergo periphrastic inflection. Otherwise, given there can be a wikiportal with a name that is not a noun, it is impossible to come up with a locative case, or any dependent case.

It works on preview, and when actually used, but not when viewing the MediaWiki page itself.

krixel wrote:

It does not work when actually used, except on Polish Wikipedia, that is why I reported this bug. I would not bother you with the MediaWiki page no one has any reason to view.

Created attachment 5589
Screenshot of the message in use in English Wikipedia

Then provide more details, because it working fine on English Wikipedia using Polish as an interface language.

Attached:

about-pl.png (178×782 px, 30 KB)

krixel wrote:

The problem is in the side bar, not in the footer.
Also note that the attribution note is "Z Wikipedia" — which is even worse because it is likely to be printed.

(In reply to comment #7)

The problem is in the side bar, not in the footer.
Also note that the attribution note is "Z Wikipedia" — which is even worse
because it is likely to be printed.

Exactly! This however very different problem you first reported. The only place where MediaWiki itself uses "About Wikipedia" is in the footer and without this information we couldn't now even where to look for.

Fixed sidebar and all four uses of tagline I could find.

(In reply to comment #9)

Fixed sidebar and all four uses of tagline I could find.

For the record: r44800

Marking as fixed. What comes to parsing the mediawiki language subpages in correct language, let's open a new bug for that.