Rozšíření:MultiLanguageManager
Toto rozšíření není v současné době aktivně udržováno! Ačkoli to může stále fungovat, jakákoli hlášení o chybách nebo požadavky na funkce budou pravděpodobně ignorovány. Pokud máte zájem převzít úkol vývoje a údržby tohoto rozšíření, můžete požádat o vlastnictví úložiště. Jako laskavost můžete kontaktovat autora. Měli byste také odstranit tuto šablonu a uvést se jako správce rozšíření v informačním poli stránky {{Extension}}. |
Stav rozšíření: neudržované |
|
|---|---|
| Implementace | Databáze, Národní prostředí |
| Popis | Přidání vícejazyčných možností do wiki |
| Autoři | Marc Despland, Robert Vogel |
| Nejnovější verze | 2.0 (2017-08-31) |
| MediaWiki | 1.29 |
| Změny v databázi | Ano |
|
|
|
|
language |
|
| Licence | GNU General Public License 2.0 |
| Stáhnout | |
| Přeložte rozšíření MultiLanguageManager, používá-li lokalizaci z translatewiki.net | |
The MultiLanguageManager extension allows you to add multi-languages capacities to a wiki:
- You can define a list of available languages
- You can define a page to be a variant of another page within the same wiki
- On a page with variants a special navigation will be displayed ("flags") that allow to switch between those pages
- The interface language for anonymous users will automatically be changed to match the language of the page
ATTENTION: This extension does not use the built-in Page content language mechanism of MediaWiki. If that is desired, use the PerPageLanguage extension.
Instalace
- Stáhněte soubor/y a vložte je do adresáře pojmenovaného
MultiLanguageManagerve vaší složceextensions/.
Vývojáři a přispěvatelé kódu by si místo toho měli nainstalovat rozšíření from Git pomocí:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/MultiLanguageManager
- Na konec vašeho souboru LocalSettings.php přidejte následující kód:
wfLoadExtension( 'MultiLanguageManager' );
- Spusťte aktualizační skript, který automaticky provede všechny nezbytné databázové změny, jaké rozšíření vyžaduje.
Dokončeno – Přejděte na stránku Special:Versionvaší wiki a zkontrolujte, zda bylo rozšíření úspěšně nainstalováno.
Nastavení
Dostupné jazyky
The configuration is done using the $mgAvailableLanguages variable which contains the code of language and the code of its name in the file MultiLanguageManager_setup.php.
$mgAvailableLanguages = array(
'en',
'fr'
);
Uživatelská práva
You can manage who has the rights to modify the linguistic parameters of the pages. You can set those users rights to match with an existing right using the $mgLanguagePermisionsKey variable. For example to set the linguistic rights to match the edition article rights:
$mgLanguagePermisionsKey = 'edit';
But you could also choose an other rights language:
$mgLanguagePermisionsKey = 'language';
Then think of set the rights according to the groups:
$wgGroupPermissions['*'][$mgLanguagePermisionsKey] = false;
$wgGroupPermissions['user'][$mgLanguagePermisionsKey] = true;
$wgGroupPermissions['sysop'][$mgLanguagePermisionsKey] = true;
Související odkazy
- Extension:PerPageLanguage - Displays the interface in the language of the content
- Unmaintained extensions/cs
- Database extensions/cs
- Internationalization extensions/cs
- Extensions which add rights/cs
- ArticleDelete extensions/cs
- BeforePageDisplay extensions/cs
- LoadExtensionSchemaUpdates extensions/cs
- SkinBuildSidebar extensions/cs
- SkinTemplateNavigation::Universal extensions/cs
- UserGetLanguageObject extensions/cs
- GPL licensed extensions/cs
- Extensions in Wikimedia version control/cs
- All extensions/cs
