Topic on Extension talk:Translate

Translate URLs in target language

4
Tuxxic (talkcontribs)

Hi,

Is there any means to translate a page URL written in a language to another language ?

For instance, I have : https://mywiki/index.php?title=Mon_titre_en_français

The English version is : https://mywiki/index.php?title=Mon_titre_en_français/en

I would like to have : https://mywiki/index.php?title=My_title_in_English

I already translate the page titles, so I have the translation.

I also use a model to display translated title in the translated pages, which is as follows :

{{#ifexist: Translations:{{{1}}}/Page display title{{#translation:}}<!-- 
     then -->|[[Special:MyLanguage/{{{1}}}|{{Translations:{{{1}}}/Page display title{{#translation:}}}}]]<!-- 
     else -->|[[Special:MyLanguage/{{{1}}}|{{{1}}}]]
     }}
   

So when people use this model and a page name, it is translated to the display page (ex: {{Traduction|Ma page en français}} will display My page in English as a link.

My first guess was to use redirections, but as there are too many pages to redirect, is there a way to do it automatically with Translate module or another technique ?

Nikerabbit (talkcontribs)

No, changing the links is not supported, because there is no way to avoid conflicts with identical translations in different languages.

Tuxxic (talkcontribs)

Thanks,

Do you think my first idea using redirections is usable ?

Nikerabbit (talkcontribs)

It may work in some restricted situations, but not as a general solutions.

Reply to "Translate URLs in target language"