「言語」の版間の差分
Mitsuhiro Yoshida (トーク | 投稿記録) |
Mitsuhiro Yoshida (トーク | 投稿記録) |
||
12行目: | 12行目: | ||
時々、Moodleで使用されているデフォルトの表現や言語ストリングを変更したい場合もあることでしょう。例えば、すべての「コース」を「クラス」に置き換えたい場合です。新しいバージョンでは、表現や言語ストリングの変更は上書きされませんので注意してください。下記の手順にて、あなたのローカル言語パックを作成してください: | 時々、Moodleで使用されているデフォルトの表現や言語ストリングを変更したい場合もあることでしょう。例えば、すべての「コース」を「クラス」に置き換えたい場合です。新しいバージョンでは、表現や言語ストリングの変更は上書きされませんので注意してください。下記の手順にて、あなたのローカル言語パックを作成してください: | ||
* 言語フォルダ ( 例 moodledata/lang/ | * 言語フォルダ ( 例 moodledata/lang/parentlanguage_utf8 または lang/en_utf8 ) の「langconfig.php」を新しいフォルダ ( 例 moodledata/lang/parentlanguage_utf8_local ) にコピーしてください。この作業は、Moodle内で行うことはできませんので、直接サーバにアクセスして行ってください。 | ||
* | * 新しいフォルダにコピーした「langconfig.php」ファイルに、あなたの言語に最も近い言語を指定するストリングを追加してください ( 例 $string[''parentlanguage''] = ''parentlanguage_utf8'';). | ||
* | * 変更したいストリングを 管理 >> [[設定]] >> 言語設定 にある言語エディタで編集してください。 | ||
言語パックの階層は、3つのレベルまでサポートすることができます。親言語パック、サイト全体の言語パックおよびコースレベルの言語パックです。Moodleは最初にコースレベルの言語パックを探し、見つからない場合、サイト全体の言語パックを使用します。そして、親言語はデフォルトとして使用されます。 | |||
== '''Previous admin/lang''' == | == '''Previous admin/lang''' == |
2006年8月17日 (木) 08:04時点における版
翻訳中です - Mitsuhiro Yoshida 2006年8月10日 (木) 21:26 (WST)
言語の管理
Moodle 1.6
Moodle 1.6には、言語インポートユーティリティがあります。
ストリングの編集
Moodleの中のテキストは、管理 >> 設定 >> 言語設定 を使用または直接言語ストリングを編集 ( 例 moodledata/lang/ja_utf8 )することにより変更できます。
ローカル言語パック
時々、Moodleで使用されているデフォルトの表現や言語ストリングを変更したい場合もあることでしょう。例えば、すべての「コース」を「クラス」に置き換えたい場合です。新しいバージョンでは、表現や言語ストリングの変更は上書きされませんので注意してください。下記の手順にて、あなたのローカル言語パックを作成してください:
- 言語フォルダ ( 例 moodledata/lang/parentlanguage_utf8 または lang/en_utf8 ) の「langconfig.php」を新しいフォルダ ( 例 moodledata/lang/parentlanguage_utf8_local ) にコピーしてください。この作業は、Moodle内で行うことはできませんので、直接サーバにアクセスして行ってください。
- 新しいフォルダにコピーした「langconfig.php」ファイルに、あなたの言語に最も近い言語を指定するストリングを追加してください ( 例 $string[parentlanguage] = parentlanguage_utf8;).
- 変更したいストリングを 管理 >> 設定 >> 言語設定 にある言語エディタで編集してください。
言語パックの階層は、3つのレベルまでサポートすることができます。親言語パック、サイト全体の言語パックおよびコースレベルの言語パックです。Moodleは最初にコースレベルの言語パックを探し、見つからない場合、サイト全体の言語パックを使用します。そして、親言語はデフォルトとして使用されます。
Previous admin/lang
Moodle 1.5
Text in Moodle may be changed by editing the language strings, either via Administration >> Configuration >> Language or directly e.g. in lang/en.
Local language pack
To ensure that any changes are not overwritten by a new version when upgrading, you need to create your own local language pack as follows:
- Copy the contents of your language folder (e.g. lang/en) into a new folder (e.g. lang/en_local) - you will need access to the server to achieve this step, it cannot be done from within Moodle.
- Make your local language pack the default for the site via Administration >> Configuration >> Variables.
関連情報
- 翻訳
- Using Moodle 言語 - 英文 フォーラム
- Using Moodle ローカル言語 - 英文 フォーラムディスカッション