Laajennus:MultiLanguageManager
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. If you are interested in taking on the task of developing and maintaining this extension, you can request repository ownership. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's {{Laajennus }} infobox. |
MultiLanguageManager Julkaisustatus: ei ylläpidetty |
|
---|---|
Toteutus | Tietokanta , Kieli |
Kuvaus | Add multi-languages capacities to a wiki |
Tekijä(t) | Marc Despland, Robert Vogel |
Viimeisin versio | 2.0 (2017-08-31) |
MediaWiki | 1.29 |
Tietokantamuutokset | Kyllä |
Lisenssi | GNU General Public License 2.0 |
Lataa | |
|
|
language |
|
Quarterly downloads | 9 (Ranked 124th) |
Voit kääntää MultiLanguageManager-laajennuksen mikäli se on saatavilla translatewiki.netissä | |
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.
Asennus
- Lataa ja siirrä purettu kansio nimeltä
MultiLanguageManager
extensions/
-kansioosi.
Kehittäjien ja koodipaikkauksia tekevien tahojen tulisi asentaa laajennos git-versionhallintaohjelmaa käyttäen:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/MultiLanguageManager - Lisää seuraava koodi LocalSettings.php -tiedostosi loppuosaan:
wfLoadExtension( 'MultiLanguageManager' );
- Suorita päivitysskripti, joka luo automaattisesti tarvittavat tietokantataulut, joita tämä laajennos käyttää.
- Tehty – Mene wikisi sivulle Special:Version vahvistaaksesi, että laajennoksen asennus onnistui.
Määritys
Saatavilla olevat kielet
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'
);
Käyttäjien oikeudet
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;
Katso myös
- Extension:PerPageLanguage - Displays the interface in the language of the content
- Unmaintained extensions/fi
- Database extensions/fi
- Internationalization extensions/fi
- GPL licensed extensions/fi
- Extensions in Wikimedia version control/fi
- Extensions which add rights/fi
- ArticleDelete extensions/fi
- BeforePageDisplay extensions/fi
- LoadExtensionSchemaUpdates extensions/fi
- SkinBuildSidebar extensions/fi
- SkinTemplateNavigation::Universal extensions/fi
- UserGetLanguageObject extensions/fi
- All extensions/fi