Help:Extension:Translate/Off-line translation/ja

This page explains how to translate off-line. If you're interested in this, you probably already know what Gettext PO files are. For this reason, we'll only discuss how to use them in a wiki with the Translate extension here. Otherwise, you're probably more interested in the How to translate tutorial for online translation.

More in general, you might want not to use the web interface if you have a very slow or limited internet connection or offline tools that you can't do without. Be aware, however, that the Translate extension is designed as a collaborative process. This means that you should not hold the files offline for long times, and you should always download a new file just before you start translating. Otherwise you might conflict with other translators who work in the wiki.

書き出し
You can download any message group as Gettext PO file by choosing the export for off-line translation task in Special:Translate. Some sites might have disabled this task. You should check any local guides how to process these files before you start.

The files are standard Gettext PO files with some extra information. The header contains some extra fields shown below; the  for each message contains an identifier that the Translate extension needs. Some editors are known to strip either the header comments or the  lines, so start with a small file to make sure that your editor does not remove these – it's not funny to realize the editor was buggy after translating hundreds of messages that you cannot import back into the online system! The message documentation is exported as translation comments.

重要なヘッダーフィールド: "X-Language-Code: nl\n" "X-Message-Group: ext-abc\n" この例では、「ext-abc」がメッセージ群名です.

Gettext po 翻訳ファイルのエントリの例を示します.
 * 1) . [Wiki] This text is used on the history tab.
 * 2) . [Wiki]

msgctxt "history_short" msgid "History" msgstr "Versionsgeschichte"

取り込み
ファイルを完全に翻訳する必要はありません. 部分的に翻訳されたメッセージをアップロードして大丈夫です. これらのファイルをインポートするには、2つの方法があります.

権限を持つユーザーは、翻訳をアップロード＆インポートするのに Special:ImportTranslations ページを使うことができます. このページはファイルを処理して変更点を示し、ユーザーがそれらをインポートすることができます. 多くの変更点を含む大きなファイルのインポートは、処理時間が限られているため複数のステップを取ることがあります.

インポートはコマンドラインスクリプト を使うこともできます. これは柔軟性は低いのですが、一度にすべてをインポートすることができます. また、サーバーへのシェルアクセスができる必要があります.

オフライン翻訳のインポートの仕方(か、インポートしない)、あなたのwiki次第です.

Gettext エディター
オフラインでファイルを編集できるツールをいくつか示します.

WARNING: make sure you are using version 1.4.2 or above, otherwise " " lines are dropped and your work cannot be processed.
 * POedit : Available for all platforms supporting the wxWidgets toolkit, tested on Unix with GTK+ and Windows.
 * gtranslator : Can be used in the GNOME desktop environment on Unix and Linux platforms.
 * gted : To be used as plugin in the Eclipse IDE on Linux, Windows and MAC OS X, has various tools integrated.
 * Lokalize : Uses the KDE 4 Desktop Environment on all platforms supporting it. Has a user wiki and online handbook
 * Translate Toolkit : Toolkit written in the python programming language which must be installed as well, usable on all platforms. Supports several other file formats as well.
 * Virtaal : Multi-format translation tool based on the toolkit above. Currently working in Windows and Linux.
 * OmegaT : Free tool for professional translators written in Java, requires Java installed; available on all platforms. Supports a variety of other file formats, glosssaries, fuzzy matching, and translation memories.
 * Gorm PO file editor : Small program, runs on Windows, no installation required.
 * Better PO Editor : Available for Windows, BSD, Unix, Linux, Mac OS X. Includes spell checker and Google Translate suggestions.