Actions

Translations

Translating LimeSurvey/9/ja: Difference between revisions

From LimeSurvey Manual

No edit summary
No edit summary
 
Line 4: Line 4:
#該当の言語の言語コードを[https://r12a.github.io/app-subtags/ IANA Language Subtag Registry]から検索します。
#該当の言語の言語コードを[https://r12a.github.io/app-subtags/ IANA Language Subtag Registry]から検索します。
#/locale directory(LimeSurveyのルートディレクトリー)に入り、言語コードと同じ名前のディレクトリーを作成します。
#/locale directory(LimeSurveyのルートディレクトリー)に入り、言語コードと同じ名前のディレクトリーを作成します。
#次のリンク[https://translate.limesurvey.org/projects/]にアクセスして、言語テンプレートをダウンロードします。プロジェクトを選択し、次に任意の言語を選択して(たとえば、英語のエントリーに移動)、一番下までスクロールします。そこから、言語ファイルを<言語コード>.poファイルとしてエクスポートすることができます。
#次のリンク[https://translate.limesurvey.org/projects/]にアクセスして、言語テンプレートをダウンロードします。プロジェクトを選択し、次に任意の言語を選択して(たとえば、英語のエントリーに移動)、一番下までスクロールします。そこから、<言語コード>.poファイルとして言語ファイルをエクスポートすることができます。
#<言語コード>.poファイルを/localeディレクトリーの下に新たに作成したフォルダーにコピーします。
#<言語コード>.poファイルを/localeディレクトリーの下に新たに作成したフォルダーにコピーします。
#Poeditでファイルを開き、翻訳したいものをすべて翻訳します。
#Poeditでファイルを開き、翻訳したいものをすべて翻訳します。

Latest revision as of 23:34, 12 November 2019

Message definition (Translating LimeSurvey)
==Creating a new translation==
#First of all, get access to the development version of LimeSurvey. For detailed instructions, access the [[Accessing the source code|source code]].
#Download and install [https://www.poedit.net/download.php Poedit] .
#Now you have to find out the language-code for your language - you can search for your language-code in the [https://r12a.github.io/app-subtags/ 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://translate.limesurvey.org/projects/]. Select the project, then any language (e.g. go for the English entry), and scroll to the bottom. There you have the possibility to export the language file as <your_language_code>.po file.
#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 [mailto:translations@limesurvey.org translations@limesurvey.org].

新しい翻訳を作成する

  1. まずはじめに、LimeSurveyの開発バージョンにアクセスします。詳しくは、ソースコードにアクセスしてください。
  2. Poeditをダウンロードしてインストールします。
  3. 該当の言語の言語コードをIANA Language Subtag Registryから検索します。
  4. /locale directory(LimeSurveyのルートディレクトリー)に入り、言語コードと同じ名前のディレクトリーを作成します。
  5. 次のリンク[1]にアクセスして、言語テンプレートをダウンロードします。プロジェクトを選択し、次に任意の言語を選択して(たとえば、英語のエントリーに移動)、一番下までスクロールします。そこから、<言語コード>.poファイルとして言語ファイルをエクスポートすることができます。
  6. <言語コード>.poファイルを/localeディレクトリーの下に新たに作成したフォルダーにコピーします。
  7. Poeditでファイルを開き、翻訳したいものをすべて翻訳します。
  8. LimeSurveyに言語を認識させるため、application/helpers/surveytranslator_helper.php(LimeSurveyのルートディレクトリにあります)に追記します。テキストエディターでファイルを開き、他の言語と同じように言語を追加します。
  9. 保存、すなわち、LimeSurveyが新たな言語を認識するため、修正した".poファイルを保存します。これにより、同じフォルダーに*.moファイルが自動的に生成され、LimeSurveyが読み込みます。
  10. 新しい*.poファイルとアップデートしたsurveytranslator_helper.phpファイルをtranslations@limesurvey.orgに送信します。