wikifab/auto-set-page-lang

There is no license information available for the latest version (1.5.0) of this package.

Mediawiki extension to automatically set page language at page creation with current user language.

Installs: 3 324

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:mediawiki-extension

1.5.0 2020-03-30 14:57 UTC

README

AutoSetPageLang is a mediawiki extension to set automatically the page lang attribute at page creation, using current language of user wich create the page.

Features

  • Set page language at creation of new page, using user's language

  • Add 'languageSource', 'Language', and 'isTranslation' properties on saving pages For now, this in only on template named "Tuto Details", this must be parametized

  • Automaticaly set Page revision as ready to be translate when property "complete" is set to "Yes" ( to activate it, set $wgAutoSetPageLangAutoMarkTranslate = true; )

  • remove tags for all tutorials that are not 'complete'

  • add a translate tab, to each page ready to be translated, and when user has translate rights

Installation

Extract extension ant place it in the 'extensions' directory of your installation. (the directory namme must be 'AutoSetPageLang')

Load extension and enable setting page Language in DB in file LocalSetting.php :

wfLoadExtension( 'AutoSetPageLang' );
$wgPageLanguageUseDB = true;
$wgGroupPermissions['user']['pagelang'] = true;

Configuration

To disable auto-mark page as ready to be translate :

$wgAutoSetPageLangAutoMarkTranslate = false;

To disable remove translate tags on all tutorial not complete :

$wgAutoSetPageLangTranslateOnCompleteOnly = false;

Namespace where page must be auto mark for translation : to set allowed namespaces : /!\ DeprecatedVariable use other below

$wgAutoSetPageLangAllowedNamespaces

default : []

Namespace where page must be auto mark for translation after edition : to set namespaces :

$wgAutoSetPageLangAutoMarkNamespaces

default : []

Namespace where page translation must be auto-updated at each edition (if allready marked) : to set namespaces :

$wgAutoSetPageLangAutoUpdateNamespaces

default : []