Translatable modules/ja

 Lua モジュールの翻訳は、どうすれば MediaWiki の翻訳あるいは translatewiki.net で扱う翻訳拡張機能のように簡便になるでしょうか？ ここでは 翻訳対象のモジュールの実施について、初期の協議を行います. 協議を行う時期は、コメント受付を2020年9月末までの予定です. ここに用意する一連の解説文書はオンウィキのLua モジュールを対象に開発者と利用者のニーズを把握し、今後、改善策の開発にあたるソフトウェア技術者の役に立てることです.

はじめに
翻訳対象モジュール Translatable modules というプロジェクトはモジュールをもっと翻訳しやすくしてシェアするため、フレームワークを固めて文書化と実施、実装を目指します. The goal is for user interface strings (messages) in Scribunto modules on multilingual wiki sites, such as Wikidata and Commons, to be easily localized, similarly to core MediaWiki, extensions, and translatable pages.

The questions we have for the community members:


 * 1)  to organize the code and the messages are suggested. What would be the best way to organize the module code?
 * 2) Once this framework is developed and deployed, will it be convenient to develop new modules using this framework and perhaps to convert existing modules to using it?
 * 3) Which existing modules would you prioritize translating?

If you mostly edit articles and other wiki pages, your user experience won’t be affected significantly, but your feedback is nevertheless welcome.

If you are involved in maintaining templates or Scribunto modules or in administering translatable pages, your user experience may change significantly in doing these tasks, so your feedback is very important.

背景
All Wikimedia projects have key features implemented as either or both wikitext templates and Lua modules: hatnotes, infoboxes, welcome messages, formatted links and references, image descriptions and license information, coordinates, and many others.

ここでいうテンプレートやモジュールとはコードの一種です. This code is developed by skilled, experienced members of the editing communities, and implements features that the communities want, need, and now regularly use. Though most are individually simple, collectively they are comparable in their complexity, criticality, and ubiquity to the code of MediaWiki extensions. Unlike extensions, however, templates and modules don’t have a robust, stable, and consistent framework for internationalization and localization, even though many of them are used in multiple languages.

All MediaWiki extensions and MediaWiki core are localized on translatewiki.net, where volunteer translators can conveniently see what messages (strings) in which components need translation into their language, and can translate them, without dealing with any code beyond simple wikitext. translatewiki.net を使うには、基本的なウィキ構文さえ理解すれば良いのです. The translatewiki.net software also checks the translation for technical validity and provides tools for updating outdated translations, translation statistics, searching, filtering, etc.

Conversely, templates or modules don’t have anything like this. If they are translatable at all, this is done by editing wiki pages with complex wiki syntax or Lua code. この過程はエラーが発生しやすく、発見しにくいために比較的、難易度が高くなります. Some templates are translatable as pages using the Translate extensions, which makes their localization experience similar for translators to the experience of localizing extensions, but the framework for doing this is not consistent for the template and module developers.

It is therefore desirable to make it possible to translate the human-readable user interface messages of modules and templates using a process that is comparable to the process of translating MediaWiki core and extensions.

担当範囲
The scope of this project only includes the translation of user interface messages used in modules, and only within a single wiki. This particularly pertains to Wikimedia sites that are already multilingual: Commons, Wikidata, Meta, mediawiki.org, Wikispecies, and others.

This current proposal does not deal with the following things:


 * テンプレートの翻訳. As mentioned above, this is closely related and probably desirable as well, but it is left for a later stage. The modules’ technology (Scribunto) is more autonomous, unlike templates, which are tightly integrated with core MediaWiki, and they have somewhat different localization requirements. However, the work on translatable modules should try to be forward compatible, so that whatever is done here will also be reusable for templates.
 * モジュールの名称と機能の識別の翻訳. Templates and their parameters usually have names in the content language of the wiki. Unlike templates, modules are usually invoked from templates and only rarely directly from content pages or discussion pages. It is therefore not necessary to allow their translation. This project only deals with the internationalization and localization of the messages that the modules show to the readers.
 * ガジェットの翻訳. Similarly to templates, gadgets should be conveniently localizable, but their technology is significantly different. It may be good to make it reusable, but it’s not the highest priority for this project.
 * ウィキ横断型のテンプレートやモジュールを採用 (“グローバル テンプレート”). This is desirable as well, and making modules robustly translatable will make the implementation of Global templates and modules much easier. This is not in the scope of the project described in this document, however. It makes sense to make modules translatable as one of the first steps towards global modules and templates, and the project should certainly try to be forward-compatible with global templates and modules, but it nevertheless stands on its own.
 * データ変換. ディジットの変換 (123 / ١٢٣ / १२३ / ၁၂၃)、単位 (km / マイル)、表記の異形 (セルビア語のラテン / キリル、中国語の簡体 / 繁体 etc.) その他の扱いは対象外です.  これらは既存の MediaWiki 国際化機能もしくはモジュールのコード、テンプレートで処理されます.  このプロジェクトの範囲はユーザーインターフェースのメッセージに限定されます.

その他の情報

 * 協議の場はトーク:翻訳対象のモジュール.
 * - 重点的な協議と審査の対象
 * - 重点的な協議と審査の対象
 * - 重点的な協議と審査の対象
 * - 重点的な協議と審査の対象