Last modified: 2014-09-08 11:39:55 UTC
It is possible to use multilingual text using {{int:...}}. At the moment the {{int:...}} gets not substituted in the summary. It would be nice to support substitution of the {{int:...}} in summary. This would also fix anchor links. Testcase: * [[MediaWiki:Foo/en]] with the content "Foobar" * [[MediaWiki:Foo/de]] with the content "Blabla" Wikipage with the content == Text {{int:Foo}} == With uselang=en the wikitext gets rendered to <h2><span id="Text_Foobar" class="mw-headline">Text Foobar</span></h2> With uselang=de the wikitext gets rendered to <h2><span id="Text_Blabla" class="mw-headline">Text Blabla</span></h2> When you use the edit section function you get the prefilled summary /* Text {{int:Foo}} */ When you save the changes you get in the history or in the summary preview the content "→Text {{int:Foo}}" and "→" is a link to #Text_.7B.7Bint:Foo.7D.7D. The link does not work because is anchor does not exist. Expected result: With uselang=en you get "→Text Foobar" and "→" is a link to #Text_Foobar. With uselang=de you get "→Text Blabla" and "→" is a link to #Text_Blabla.
This would lead to inconsistent behaviour of {{int:}}. This is essentially a feature request for a new parser function that would substitute a UI message in user language, like {{substint:}} ;).
(In reply to Siebrand Mazeland from comment #1) > This would lead to inconsistent behaviour of {{int:}}. This is essentially a > feature request for a new parser function that would substitute a UI message > in user language, like {{substint:}} ;). I don't understand. At the moment {{int:...}} is not consistent. In the wikitext it gets substituted and in the summary it gets not substituted. The summary contains a link to an anchor that does not exist.
(In reply to Fomafix from comment #2) > (In reply to Siebrand Mazeland from comment #1) > > This would lead to inconsistent behaviour of {{int:}}. This is essentially a > > feature request for a new parser function that would substitute a UI message > > in user language, like {{substint:}} ;). > > I don't understand. At the moment {{int:...}} is not consistent. In the > wikitext it gets substituted and in the summary it gets not substituted. The > summary contains a link to an anchor that does not exist. A page is output. An edit summary input is not processed, except when it's output again. It's working consistently.
But the result is not consistent and the link is wrong. Maybe a special parser for the summary is needed which only substitutes {{int:...}}.
Change 141941 had a related patch set uploaded by Gerrit Patch Uploader: Substitute messages in comment https://gerrit.wikimedia.org/r/141941
Maybe the headline should be processed into anchor-ish text (in content language?) when the edit summary is created, instead of when the edit summary is displayed. [Just a thought. Not sure if that makes sense]