wikifab / auto-set-page-lang
Mediawiki extension to automatically set page language at page creation with current user language.
Installs: 3 437
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:mediawiki-extension
- dev-master
- 1.5.0
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-ticket-1502
- dev-ticket-1482
- dev-ticket-1478
- dev-ticket-1426
- dev-booktranslation
- dev-julien
- dev-ticket-507
- dev-ticket-1238
- dev-ticket-1215
- dev-epic-1150
- dev-ticket-753
This package is auto-updated.
Last update: 2024-10-29 05:17:08 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 : []