Translating LimeSurvey/ja: Difference between revisions
From LimeSurvey Manual
Bravehorse (talk | contribs) (Created page with "==既存の翻訳をカスタマイズする==") |
Bravehorse (talk | contribs) (Created page with "場合により、既存の翻訳を更新して、特定のアンケートの状況に適合させたいことがあるでしょう。このような場合は次のように...") |
||
Line 15: | Line 15: | ||
==既存の翻訳をカスタマイズする== | ==既存の翻訳をカスタマイズする== | ||
場合により、既存の翻訳を更新して、特定のアンケートの状況に適合させたいことがあるでしょう。このような場合は次のようにします。 | |||
# | #[https://translate.limesurvey.org https://translate.limesurvey.org]にアクセスし、翻訳したいLimeSurveyのバージョンと更新したい言語を選択します。 | ||
# | #翻訳ページの一番下に、すべての文字列を*.poファイルとしてエクスポートする機能があります。Exportをクリックして、ローカルハードディスクに*.poファイルとして保存します。<br />[[File:export_po_file.png]] | ||
# | #[http://www.poedit.net/download.php Poedit]をダウンロードしてインストールします。 | ||
# | #Poeditを開始し、ダウンロードした.poファイルを編集し、翻訳を行います。 | ||
# | #*.poファイルを保存する際、*.moファイルも自動的に作成されます。後者はLimeSurveyが読み込みます。 | ||
# | #最後のステップとして、*.moファイルを/localeフォルダーの所定の言語のフォルダーに配置(既存のものと入れ替え)します。 | ||
{{Note| | {{Note|例えば、フランス語の配置場所は<LimeSurvey_root_directory>/locale/fr/LC_MESSAGES/fr.poとなります。}} | ||
<div class="simplebox"> Note: If you are using [https://www.limesurvey.org/editions-and-prices/limesurvey-pro/editions-and-prices-professional LimeSurvey Pro], the team will be happy to place the file for you. Just create a [mailto:support@limesurvey.org support ticket] and attach the *.po file (<u>'''not''' the .*mo</u>).</div> | <div class="simplebox"> Note: If you are using [https://www.limesurvey.org/editions-and-prices/limesurvey-pro/editions-and-prices-professional LimeSurvey Pro], the team will be happy to place the file for you. Just create a [mailto:support@limesurvey.org support ticket] and attach the *.po file (<u>'''not''' the .*mo</u>).</div> |
Revision as of 13:58, 10 June 2018
LimeSurveyの翻訳
LimeSurvey があなたの母語に翻訳されることはすばらしいことではありませんか? LimeSurveyのチームは、常に新しいものを翻訳したり、既存のもの更新したりすることを手伝ってくれる人を探しています。これらの説明を読んで、疑問や質問がある場合は、ためらわずにtranslations@limesurvey.org にメールしてください。
翻訳のしかた - ステップバイステップ
既存の翻訳のアップデート
- LimeSurvey ウェブサイトにサインアップし、アカウントにログインします。
- https://translate.limesurvey.orgにアクセスし、同じユーザー名・パスワードでログインします。
- 翻訳する対象のLimeSurveyのバージョンを選択し、翻訳を始めます。翻訳が承認されると、週次の安定リリースに自動的に組み込まれ、変更ログにあなたのユーザー名が記録されます。
- 新しく翻訳された文字列を承認する役割を持つ主幹翻訳者に関心をお持ちの場合は、translations@limsurvey.orgあてにメールでコンタクトしてください。あなたがこの役割を果たすため、週に最大1時間ほどの時間を割いていただきます。
既存の翻訳をカスタマイズする
場合により、既存の翻訳を更新して、特定のアンケートの状況に適合させたいことがあるでしょう。このような場合は次のようにします。
- https://translate.limesurvey.orgにアクセスし、翻訳したいLimeSurveyのバージョンと更新したい言語を選択します。
- 翻訳ページの一番下に、すべての文字列を*.poファイルとしてエクスポートする機能があります。Exportをクリックして、ローカルハードディスクに*.poファイルとして保存します。
- Poeditをダウンロードしてインストールします。
- Poeditを開始し、ダウンロードした.poファイルを編集し、翻訳を行います。
- .poファイルを保存する際、*.moファイルも自動的に作成されます。後者はLimeSurveyが読み込みます。
- 最後のステップとして、*.moファイルを/localeフォルダーの所定の言語のフォルダーに配置(既存のものと入れ替え)します。
Note: If you are using LimeSurvey Pro, the team will be happy to place the file for you. Just create a support ticket and attach the *.po file (not the .*mo).
Creating a new translation
- First of all, get access to the development version of LimeSurvey. For detailed instructions, access the source code.
- Download and install Poedit .
- Now you have to find out the language-code for your language - you can search for your language-code in the IANA Language Subtag Registry.
- Go into the /locale directory (located in the LimeSurvey root directory) and create a directory named after your language code.
- Download your language template by going to on the following link https://www.limesurvey.org/community/contribute/translations-status and scroll to the bottom. Once you receive the language template file, rename it to <your_language_code>.po.
- Copy the <your_language_code>.po file to the newly created folder located in the /locale directory.
- Open the file with Poedit and translate everything you need to translate.
- To make LimeSurvey know about your language, you must add it in application/helpers/surveytranslator_helper.php (located in the LimeSurvey root directory). Open that file with a text editor and add your language in the same way the other languages are defined in that file.
- Save - in order to allow LimeSurvey to see the newly added language, save the modified *.po file. This will automatically generate the *.mo file in the same folder, which will be read by LimeSurvey.
- Send the new *.po file and the updated surveytranslator_helper.php file to translations@limesurvey.org.