Jump to content

Extension talk:PageLanguage/Flow

About this board

AssetDenmark (talkcontribs)

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 (talkcontribs)

It looks like this tag do not change the value of the page_lang field of page table?

Sophivorus (talkcontribs)

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!

Reply to "What will this do?"
There are no older topics