Actions

Multilingual survey/ja: Difference between revisions

From LimeSurvey Manual

(Created page with "結果を確認するには、プレビューボタンを使用してください。ようこそページは次のようになります。")
(Created page with "ようこそページが読み込まれると、2つの言語スイッチが表示されます。ここで、回答者は回答者に共有されたURLの言語と異なる言...")
Line 110: Line 110:




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.
ようこそページが読み込まれると、2つの言語スイッチが表示されます。ここで、回答者は回答者に共有されたURLの言語と異なる言語に変更することができます。言語スイッチもアンケートの右上にあります。


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 [[Multilingual survey#Hints & tips|hints & tips wiki subsection]].
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 [[Multilingual survey#Hints & tips|hints & tips wiki subsection]].

Revision as of 16:18, 2 March 2019


はじめに

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

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


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


言語を追加する

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

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



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

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



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



文字列の翻訳

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



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

同じタイプの"言語バー"が、テキスト要素やデータポリシー設定パネル、回答、質問テキストフィールドなど、他の多くの場所にあります。ただし、この方法を使用してフィールドを翻訳する場合、アンケートが長いと翻訳漏れが起こらないよう見逃さないよう注意が必要です。そのため、クイック翻訳ツールの使用を強く推奨しています。ツールにアクセスするには、アンケート関連の設定("概要"など)から、ツール -> クイック翻訳をクリックしてください。



クイック翻訳ツール

クイック翻訳ツールは、多言語アンケートに関わる人のために特別に設計されています。アクセスすると、次のパネルが読み込まれます。



最初のオプションでは、基本言語から翻訳したい言語を選択します。

次のオプションでは、翻訳するアンケートのコンテンツを選択します。

この節を書いている時点で(LimeSurvey 3.16.0)、次の節は翻訳可能ですがこのパネルには表示されません。 これらを翻訳するには、各オプションにアクセスし、前のウィキサブセクションで説明されている手順に従ってください。


フィールドの翻訳が終わったら、パネルの右上にある"保存"ボタンを忘れずにクリックしてください。


多言語アンケートの概要

結果を確認するには、プレビューボタンを使用してください。ようこそページは次のようになります。



ようこそページが読み込まれると、2つの言語スイッチが表示されます。ここで、回答者は回答者に共有されたURLの言語と異なる言語に変更することができます。言語スイッチもアンケートの右上にあります。

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 %}

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