Page MenuHomePhabricator

Option to redirect from missing (red link) translation page to translation interface
Closed, DeclinedPublic

Description

The option $wgTranslatePageTranslationULS exists https://www.mediawiki.org/wiki/Help:Extension:Translate/Configuration#Page_translation_feature

It would be nice to have a similar option for redirecting on red link click.

Event Timeline

Hi @Buovjaga, please see https://www.mediawiki.org/wiki/How_to_report_a_bug and provide an example URL for such a "page link". Thanks!

Why don't you use Special:MyLanguage links?

Why don't you use Special:MyLanguage links?

Good question. I did not know this existed, because I had not RTFM hard enough. I guess it is a fine alternative to this feature request. In the more special cases of wanting to access a page in a certain language without changing one's own UI language, the link will just have to be manually tweaked in the browser.

Do you still find this a useful request, though? I should ask our contributor community about their opinion.

We didn't get a lot of feedback from translators. It became clear, though, that most people are not aware of the language switcher. I think this unawareness contributed to the confusion regarding my explanation of the constraints around using Special:MyLanguage. Considering all this, I think using Special:MyLanguage would be too restrictive for us.

Can you clarify what you mean with "too restrictive"?

Can you clarify what you mean with "too restrictive"?

It would require everyone to use the language switcher.

I don't still fully understand. You have the list of languages the page is available visible on every page. Special:MyLanguage makes it so that it displays the page in the requested language, or in a fallback language. I think this is what readers generally want to do.

I don't still fully understand. You have the list of languages the page is available visible on every page. Special:MyLanguage makes it so that it displays the page in the requested language, or in a fallback language. I think this is what readers generally want to do.

Well, from last year's very small sample I got the anecdata that "most people are not aware of the language switcher" and I had never used it myself, but of course that is not a good argument. Maybe there exists some proper usage data for the language switcher in popular wikis. If you want to close this as wontfix, I'm ok with it.

If you edit the translatable page source to link to [[Special:MyLanguage/TargetPageName]], there is no language switcher involved. Users just click on the links.

If you edit the translatable page source to link to [[Special:MyLanguage/TargetPageName]], there is no language switcher involved. Users just click on the links.

Sure, I just became concerned about the seeming corner case I mentioned last year "the more special cases of wanting to access a page in a certain language without changing one's own UI language, the link will just have to be manually tweaked in the browser" (I don't know why I forgot the language menu can also be used). After I asked around and nobody seemed to be aware of the switcher, this started to look like a bigger issue.

But I am fine to try Special:MyLanguage more widely now in our wiki and make noise about it properly.

Yes indeed, the in-page language list still allows easy access to any language version. And you don't really need to tweak the browser's language settings either if you use the top-of-the-page language selector to change the interface language.