2017 © Pedro Peláez
 

mediawiki-extension auto-set-page-lang

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

image

wikifab/auto-set-page-lang

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

  • Thursday, April 5, 2018
  • by pyro853
  • Repository
  • 2 Watchers
  • 0 Stars
  • 475 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 75 % Grown

The README.md

AutoSetPageLang

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

Features

  • Set page language at creation of new page, using user's language, (*2)

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

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

  • remove tags for all tutorials that are not 'complete', (*5)

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

Installation

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

Load extension and enable setting page Language in DB in file LocalSetting.php :, (*8)

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

Configuration

To disable auto-mark page as ready to be translate :, (*9)

$wgAutoSetPageLangAutoMarkTranslate = false;

To disable remove translate tags on all tutorial not complete :, (*10)

$wgAutoSetPageLangTranslateOnCompleteOnly = false;

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

$wgAutoSetPageLangAllowedNamespaces

default : [], (*12)

Namespace where page must be auto mark for translation after edition : to set namespaces :, (*13)

$wgAutoSetPageLangAutoMarkNamespaces

default : [], (*14)

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

$wgAutoSetPageLangAutoUpdateNamespaces

default : [], (*16)

The Versions

05/04 2018

dev-master

9999999-dev

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

  Sources   Download

05/04 2018

1.1.5

1.1.5.0

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

  Sources   Download

04/04 2018

1.1.4

1.1.4.0

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

  Sources   Download

26/03 2018

1.1.3

1.1.3.0

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

  Sources   Download

23/03 2018

1.1.2

1.1.2.0

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

  Sources   Download

23/03 2018

1.1.1

1.1.1.0

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

  Sources   Download

22/03 2018

1.1.0

1.1.0.0

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

  Sources   Download

08/03 2018

1.0.3

1.0.3.0

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

  Sources   Download

27/02 2018

1.0.2

1.0.2.0

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

  Sources   Download

25/10 2017

1.0.1

1.0.1.0

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

  Sources   Download

02/08 2017

1.0.0

1.0.0.0

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

  Sources   Download