Extension:MultiLanguageManager/pl

Category:Unmaintained extensions/pl#MultiLanguageManager/pl Category:GPL licensed extensions/pl
Podręcznik rozszerzeń MediaWiki
MultiLanguageManager
Status wydania: niewspieraneCategory:Unmaintained extensions/pl
Realizacja Bazy danych Category:Database extensions/pl, Tłumaczenia i języki Category:Internationalization extensions/pl
Opis Add multi-languages capacities to a wiki
Autor(zy) Marc Despland, Robert Vogel
Ostatnia wersja 2.0 (2017-08-31)
MediaWiki 1.29Category:Extensions with manual MediaWiki version
Zmiany w bazie danych Tak
Licencja Licencja GNU General Public License 2.0
Pobieranie Category:Extensions in Wikimedia version control/pl
  • $mgAvailableLanguage
  • $mgLanguagePermisionsKey
Quarterly downloads 0
Przetłumacz rozszerzenie MultiLanguageManager jeżeli jest dostępne na translatewiki.net
Category:All extensions/pl

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.

Instalacja

  • Pobierz i umieść plik(i) w katalogu o nazwie MultiLanguageManager w folderze extensions/.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/MultiLanguageManager
  • Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
    wfLoadExtension( 'MultiLanguageManager' );
    
  • Uruchom skrypt aktualizujący, który automatycznie stworzy potrzebne tabele dla tego rozszerzenia.
  • Yes Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.

Konfiguracja

Available languages

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'
);

The users rights

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;

Zobacz też

Category:All extensions/pl Category:ArticleDelete extensions/pl Category:BeforePageDisplay extensions/pl Category:Database extensions/pl Category:Extensions in Wikimedia version control/pl Category:Extensions which add rights/pl Category:Extensions with manual MediaWiki version Category:GPL licensed extensions/pl Category:Internationalization extensions/pl Category:LoadExtensionSchemaUpdates extensions/pl Category:SkinBuildSidebar extensions/pl Category:SkinTemplateNavigation::Universal extensions/pl Category:Unmaintained extensions/pl Category:UserGetLanguageObject extensions/pl