Actions

Multilingual survey/ja: Difference between revisions

From LimeSurvey Manual

(Created page with "文字列の翻訳を開始するには、それぞれの質問のエディターパネルにアクセスしてください。以下のスクリーンショットでは、質...")
(Created page with "このうちのどれかをクリックして、質問欄を翻訳してください。")
Line 57: Line 57:




Click on any of them and start translating the question field.
このうちのどれかをクリックして、質問欄を翻訳してください。


The same type of "language bar" is located in many other places such as in the text elements and data policy settings panels, answer and subquestion text fields, and so on. However, translating fields using this method can get tricky if your survey is long and you wish not to miss anything. That is why we heavily recommend our users to use the quick translation tool. To access it, click on any survey-related setting (such as "Overview") -> [[Tools]] -> [[Quick-translation]]
The same type of "language bar" is located in many other places such as in the text elements and data policy settings panels, answer and subquestion text fields, and so on. However, translating fields using this method can get tricky if your survey is long and you wish not to miss anything. That is why we heavily recommend our users to use the quick translation tool. To access it, click on any survey-related setting (such as "Overview") -> [[Tools]] -> [[Quick-translation]]

Revision as of 07:25, 2 March 2019


はじめに

LimeSurveyには、アンケートを迅速かつ手軽に翻訳できる組み込み機能があります。この機能は、アンケートを基本言語から指定された言語に簡単に翻訳できるように設計されています。

このウィキセクションでは、多言語アンケートを作成する方法について簡単に説明します。このガイドでは、次のトピックについて説明しています。


ウィキセクション全体で紹介した例は、ここからダウンロードできます。LS3 多言語アンケートサンプル。それを解凍し、.lssファイルをLimeSurveyにインポートします。


言語を追加する

アンケートの既定の言語は、基本言語設定で選択したものです。既定では、LimeSurveyの全体設定で指定されている言語となります。

どの言語が基本言語であるかは、アンケート一般設定パネルにアクセスし、基本言語フィールドで確認します。この例では、基本言語は"英語"です。アンケートで翻訳する言語を新たに追加するには、追加言語フィールドを確認してください。この例では、基本言語の他に、フランス語、ドイツ語、イタリア語の3つの言語が選択されています。



完了したら、画面の右上にある"保存"ボタンをクリックしてください。

一番上のツールバーの"アンケートプレビュー"の隣に小さい矢印があります。この例では、アンケートは4つの言語でプレビューできることがわかります。



概要パネルにアクセスすると、4つのアンケートリンクが表示されます。これらは先ほど追加した言語に対応します。



文字列の翻訳

文字列の翻訳を開始するには、それぞれの質問のエディターパネルにアクセスしてください。以下のスクリーンショットでは、質問コードフィールドの上に3つの追加言語が表示されていることがわかります。



このうちのどれかをクリックして、質問欄を翻訳してください。

The same type of "language bar" is located in many other places such as in the text elements and data policy settings panels, answer and subquestion text fields, and so on. However, translating fields using this method can get tricky if your survey is long and you wish not to miss anything. That is why we heavily recommend our users to use the quick translation tool. To access it, click on any survey-related setting (such as "Overview") -> Tools -> Quick-translation



クイック翻訳ツール

The quick-translation tool has been specifically designed for those that work with multilingual surveys. Once accessed, the following panel will be loaded:



The first option, translate to, gives you the possibility to select the language you wish to translate into from your base language.

The next options refer to the translation of your survey content. They refer to:

Please note that at the moment of writing this section (LimeSurvey 3.16.0), the following sections are translatable but not displayed in this panel: To translate them, please access each option and follow the steps described in the previous wiki subsection.


Once you are done translating these fields, do not forget to click on the "Save" button located in the upper right part of the panel.


多言語アンケートの概要

To check your work, use the preview button. The welcome page will look like this:



Two language switcher can be observed once the welcome page is loaded. LimeSurvey offers the possibility to your respondents to change the language of instructions even though you shared with them the corresponding link for a specific language. A language switcher will also be located on the top right-side of your survey.

In the case in which you wish to hide the two "language switcher" buttons, edit the theme of your survey. For more details, see the hints & tips wiki subsection.


In the case in which a string is not translated, the respective string will be displayed in the base language of your survey.


ヒントとTIP

  • If you wish to grant users translation permissions to access the quick-translation tool, check the following wiki subsection.
  • The "Auto-translate" feature makes use of the Google translate web service for automatic translation of a survey. You must enter your Google Translate API Key under global settings to access this feature. Google currently charges $20 US per 1 million characters submitted for translation.


ようこそページから言語スイッチを隠す方法

In the case in which you decide to launch a multilingual survey, you will observe on the welcome page a drop-down menu that permits your respondents to select the language in which they wish to fill in your survey:



However, in certain scenarios you wish to hide the respective option. There are many ways in which you can hide the language switcher. The "twig" way is displayed below.

Access Themes from the global Configuration menu:



Click on the Theme editor button to edit the desired theme:



LimeSurvey does not allow you to edit the standard themes! If you wish to add changes to a standard theme, click on the Extend button located on the top bar to create an editable copy of it.


Look on the left side of the screen for the language_changer.twig file.



Go to the line that contains the following function:

{% if aSurveyInfo.alanguageChanger.show == true %}

Comment it out (replace "%" with "#") and copy the following line below it:

{% if false == true %}


The line should look like this in the end:



Click on "Copy to local theme and save changes".


Access your survey and select the edited theme from the general settings panel. Now, the welcome page should look like this:



トップメニューにある言語スイッチを隠す方法

To hide the top language switcher, we will follow pretty much the same steps as described above. We just have to access the right twig file to edit it. Access again the theme you wish to change, and then go to Screen which is located in the upper-right part of the window and select Navigation from the dropdown list. Now, look on the left side of the window for "language_changer_top_menu.twig". Click on it and comment out:

{% if aSurveyInfo.alanguageChanger.show == true %}

その下に次の行を追加します。

{% if false == true %}

画面の右側に言語スイッチが表示されなくなります。