Extension talk:PageLanguage
This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
What will this do?
Thanks, I need this - or similar - for adding multiple pages that are not in the ... but what is the process.
Say I have a wiki with 'ge' as the language - and I add {{PAGELANGUAGE:en}}
I guess that the page will be stored with as language 'en'.
However - what will happen in these cases:
- I remove the tag.. will the page still be there as en ?
- I change the tag to 'ge' (or perhaps even a third language)... will the 'en' page then remain, or will the original page be preserved as-is?
My challenge is that I have 160-200 pages that are in 'en' that I need to import and translate to 'da' ... if I can simply import with the tag then that will save me a lot of time.
However if it is not possible to translate to the language of the Wiki then I need to do this in some different way.
AssetDenmark (talk) 07:37, 28 May 2019 (UTC)
- It looks like this tag do not change the value of the
page_lang
field ofpage table
? AssetDenmark (talk) 08:13, 28 May 2019 (UTC) - I too think this tag should set the page_lang field of the page table, at least when $wgPageLanguageUseDB is set. I'll try to send a patch for review soon. In the meantime, here's a useful snippet:
if ( $config->get( 'PageLanguageUseDB' ) ) { SpecialPageLanguage::changePageLanguage( $context, $title, $language ); }
- See the documentation for changePageLanguage here. Cheers! Sophivorus (talk) 13:47, 6 September 2024 (UTC)