PHPackages                             wikifab/auto-set-page-lang - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. wikifab/auto-set-page-lang

ActiveMediawiki-extension[Localization &amp; i18n](/categories/localization)

wikifab/auto-set-page-lang
==========================

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

1.5.0(6y ago)03.5kPHP

Since Aug 2Pushed 6y ago2 watchersCompare

[ Source](https://github.com/Wikifab/AutoSetPageLang)[ Packagist](https://packagist.org/packages/wikifab/auto-set-page-lang)[ RSS](/packages/wikifab-auto-set-page-lang/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (34)Used By (0)

AutoSetPageLang
---------------

[](#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.

Features
--------

[](#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
------------

[](#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
-------------

[](#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 : \[\]

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 72.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~46 days

Recently: every ~5 days

Total

22

Last Release

2283d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/26b7c13f6509e6d6fdcddbc50c1e8e3d3bbd8dc905f84c83203687549a37dc15?d=identicon)[pyro853](/maintainers/pyro853)

---

Top Contributors

[![pierreboutet](https://avatars.githubusercontent.com/u/447459?v=4)](https://github.com/pierreboutet "pierreboutet (47 commits)")[![Exxelo](https://avatars.githubusercontent.com/u/33803181?v=4)](https://github.com/Exxelo "Exxelo (17 commits)")[![bnpoirier](https://avatars.githubusercontent.com/u/33154499?v=4)](https://github.com/bnpoirier "bnpoirier (1 commits)")

### Embed Badge

![Health badge](/badges/wikifab-auto-set-page-lang/health.svg)

```
[![Health](https://phpackages.com/badges/wikifab-auto-set-page-lang/health.svg)](https://phpackages.com/packages/wikifab-auto-set-page-lang)
```

###  Alternatives

[php-translation/translator

Translator services

25224.8k5](/packages/php-translation-translator)[smmoosavi/php-gettext

Wrapper for php-gettext by danilo segan. This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system.

1926.6k1](/packages/smmoosavi-php-gettext)[laradevs/spanish

labels translated to spanish

166.7k](/packages/laradevs-spanish)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
