Topic on Project:Current issues

Jump to navigation Jump to search
Want (talkcontribs)

Does anyone know why an anonymous user can't switch the interface language?

I was surprised that doesn't work for including templates into localization page according to the interface language. I use on my wiki more four years the really easy trick for it. I use the system message Langcode, what do return language code accordance with a current choice language interface of the user.

But in messages of MediaWiki core was nothing the message similar for this use. I created a message Langcode in localization files for it and sent it for a review into Gerrit. I hope for a merging.

Shirayuki (talkcontribs)

Why don't you change the following files?

  • chy.json
  • cr.json
  • de-at.json
  • de-formal.json
  • eml.json
  • en-ca.json
  • gan.json
  • ii.json
  • ik.json
  • ki.json
  • kk.json
  • ks-deva.json
  • ku-arab.json
  • lbe.json
  • nl-informal.json
  • om.json
  • pih.json
  • rw.json
  • tw.json
  • zh.json
  • zh-sg.json
  • zh-tw.json
Want (talkcontribs)

I added missing languages.

Want (talkcontribs)

User:Dvorapa came up with a better solution. His patch has be add new magic word {{USERLANGUAGE}}. If you may support to be included, do it please. Thank you.

Dvorapa (talkcontribs)

Another solution would be to generate {{int:Lang}} by some MediaWiki extension automatically instead of a magic word or changing all json files

Want (talkcontribs)

Oops. I changed files over command line by script with using the message 'searchbutton' as anchors, and this message apparently is not present in all files.

Shirayuki (talkcontribs)

{{int:lang}} returns the user interface language code.

Want (talkcontribs)

Thanks. But it not generally usable, because for another languages missing language code. I tryed it on Sandbox. I.e. polski exists, but for čeština not. It is only local solution. Moreover without documentation. I not found any info about message {{int:lang}} before send my changes into Gerrit.

Original name which I use on my wiki is MediaWiki:LanguageCode. Here is MediaWiki:Lang.

I want add message "langcode" into MediaWiki core as universally solution for all instances MediaWiki for all languages.

Shirayuki (talkcontribs)
Want (talkcontribs)
Shirayuki (talkcontribs)
Want (talkcontribs)

Yes, now it is ok.

Want (talkcontribs)

And my question about switch language of interface by anonymous users? Has any reason, for disable?

I think that is good feature for new visitors, because they may read content in native language. Is not easy find language name in header of page, if is page translated into much languages.

Shirayuki (talkcontribs)
Want (talkcontribs)

Ok. Cite from page Universal Language Selector/FAQ: "We are looking into making this possible in the future. There is no timeline for this." I see, that task Phabricator:T134592 is open 3 years. But I yet not fully understand a flows for acceptation of changes.

Reply to "Switch language of interface"