Extension:MultiLanguageManager/pt-br

From mediawiki.org
This page is a translated version of the page Extension:MultiLanguageManager and the translation is 86% complete.
Manual de extensões do MediaWiki
MultiLanguageManager
Estado da versão: sem manutenção
Implementação Banco de dados , Idiomas
Descrição Adicionar capacidade de múltiplos idiomas em uma wiki
Autor(es) Marc Despland, Robert Vogel
Última versão 2.0 (2017-08-31)
MediaWiki 1.29
Modifica o banco
de dados
Sim
Composer mediawiki/multi-language-manager
Licença GNU GPL (Licença Pública Geral) 2.0
Download

  • $mgAvailableLanguage
  • $mgLanguagePermisionsKey
language
Quarterly downloads 9 (Ranked 136th)
Para traduzir a extensão MultiLanguageManager, verifique sua disponibilidade no 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.

Instalação

  • Baixe e coloque o(s) arquivo(s) num diretório chamado MultiLanguageManager na sua pasta 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
  • Adicione o seguinte código ao final do seu arquivo LocalSettings.php :
    wfLoadExtension( 'MultiLanguageManager' );
    
  • Execute o script de atualização que criará automaticamente as tabelas de banco de dados necessárias a essa extensão.
  • Yes Concluído – Navegue à página Special:Version em sua wiki para verificar se a instalação da extensão foi bem sucedida.

Configuração

Linguagens disponíveis

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

Direitos de usuário

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;

Veja também