MediaWiki - Pacote da Extensão de Idiomas

This page is a translated version of the page MediaWiki Language Extension Bundle and the translation is 69% complete.
Outdated translations are marked like this.


O pacote de extensão de idiomas do MediaWiki (MLEB) é um conjunto coadjutor das extensões do MediaWiki que oferece funcionalidades multilíngue. Este tenta fornecer uma forma fácil para trazer apoio linguístico para um MediaWiki.

Sinopse das extensões

A versão atual de MLEB contém seis extensões:

[1]

MLEB tem um calendário de lançamento trimestral, para poder facilmente manter-se na vanguarda com o apoio linguístico em constante melhoria. O pacote é testado em relação às versões recentes do MediaWiki, para que possa evitar a maioria das interrupções temporárias que ocorreriam se estivesse a utilizar as versões de desenvolvimento mais recentes de cada extensão.

Motivação

O 'Seletor de Idiomas Universal' é uma funcionalidade essencial para qualquer utilizador, independentemente do número de idiomas que falem: seleção de idiomas, suporte de tipos de letra para exibir scripts mal suportados pelos sistemas operativos comuns, e métodos de entrada para digitar idiomas que não utilizam o alfabeto Latino. Este inclui tipos de letra com licença livre, que abrangem a maioria dos idiomas principais da América, Europa, Médio Oriente, Índia e Sudeste Asiático.

Manter conteúdo multilíngue numa wiki é uma confusão sem a extensão 'Traduzir', que é utilizada pela Fundação Wikimedia, KDE, translatewiki.net e outros sites.

A extensão 'Alterações Limpas' mantém a sua página das alterações recentes livre da atividade de tradução e de outras confusões.

Não perca a oportunidade de praticar os seus conhecimentos linguísticos enferrujados: use a extensão Babel para marcar as línguas que fala e encontrar outros falantes do mesmo idioma no seu wiki. E, finalmente, a extensão cldr é uma base de dados de traduções de nomes de idiomas e países.


Notas de lançamento e transferências

Latest release

2024.01
Highlights
  • MediaWiki Language Extension Bundle 2024.01 no longer supports MediaWiki 1.39 and requires MediaWiki 1.40 or above.
  • The hook Translate:GettextFFS:headerFields has been deprecated, use Translate:GettextFormat:headerFields instead.

Previous releases

2023.12
Highlights
  • Translate extension: Fix broken Special:SpecialPages for MediaWiki 1.40, and 1.39 (task T351959).
2023.10
Highlights
  • Translate extension: Removed mirrors option when providing configuration for translation memory.
2023.07
Highlights
  • This release of MLEB now requires MediaWiki >= 1.39
2023.04
Highlights
  • This is the last release of MLEB supporting MediaWiki >= 1.38
2023.01
Highlights
  • MLEB now requires PHP >= 7.4 and MediaWiki >= 1.38
2022.10
Highlights
  • [SECURITY] Translate: Adds missing block checks to various pages and API (task T302479, Gerrit change 838940)
  • This will be the last MLEB release supporting PHP 7.3 and MediaWiki 1.37
2022.07
LocalisationUpdate
  • LocalisationUpdate extension is removed from MediaWiki Language Extension Bundle. Please read the announcement.
Translate
2022.04
LocalisationUpdate
  • We're planning to sunset the LocalisationUpdate extension from version 2022.07. Please read the announcement.
Translate
  • If you are using translation memory with ElasticSearch backend, we recommend rebuilding the translation memory index. This can be done by running php <path_to_mediawiki_core>/extensions/Translate/scripts/ttmserver-export.php

Show all releases.

Transferir com Git

Na sua diretoria de extensões faça o seguinte para obter ou atualizar a versão mais recente e siga as instruções de configuração abaixo.

 for ext in Babel cldr CleanChanges Translate UniversalLanguageSelector
 do
   if [ ! -d "$ext" ]
   then
     git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/$ext.git
   fi
   cd $ext; git fetch --tags; git checkout 2023.12; cd ..
 done


Installation

Installation requirements

Installation requirements of each piece of provided software are included in the respective documentation. See in particular the installation requirements.

Add/update your LocalSettings.php

Near the end of LocalSettings.php, you have to place this configuration:

wfLoadExtension( 'Babel' );

wfLoadExtension( 'cldr' );

wfLoadExtension( 'CleanChanges' );
$wgCCTrailerFilter = true;
$wgCCUserFilter = false;
$wgDefaultUserOptions['usenewrc'] = 1;

wfLoadExtension( 'Translate' );
$wgGroupPermissions['user']['translate'] = true;
$wgGroupPermissions['user']['translate-messagereview'] = true;
$wgGroupPermissions['user']['translate-groupreview'] = true;
$wgGroupPermissions['user']['translate-import'] = true;
$wgGroupPermissions['sysop']['pagetranslation'] = true;
$wgGroupPermissions['sysop']['translate-manage'] = true;
$wgTranslateDocumentationLanguageCode = 'qqq';
$wgExtraLanguageNames['qqq'] = 'Message documentation'; # No linguistic content. Used for documenting messages

wfLoadExtension( 'UniversalLanguageSelector' );

Update database tables

Command line

In the directory where your LocalSettings.php is located, run the following command:

php maintenance/update.php

Web browser

Go to example.com/mediawiki/mw-config/ (see Manual:Upgrading#Web browser) by using your domain and path and rerun install.

Configuring and using extensions

See the respective extension documentation pages.

Contexto

MLEB não utiliza ramificações de extensões específicas de versão. It's a snapshot from master which is verified to be working with the specified MediaWiki releases. This means all MLEB extensions must follow the compatibility policy of supporting two latest stable MediaWiki releases in the master branch.

MLEB releases are created with a tool called Melange. If you are interested in that code (e.g. you want to change its code), see the Melange repository in Git. We may drop support for EOL versions of PHP, but will have at least one compatible version for each MediaWiki version we support.

References

  1. LocalisationUpdate is no longer part of MLEB since 2022.07 release.