「Moodle1.6へのアップグレード」の版間の差分

提供:MoodleDocs
移動先:案内検索
57行目: 57行目:


*[[翻訳]] - 1.6も言語パックに関する詳細情報、特にカスタマイズ言語パックに関して
*[[翻訳]] - 1.6も言語パックに関する詳細情報、特にカスタマイズ言語パックに関して
*[[Converting files to UTF-8]] - General text on how to convert files, like non-standard language packs, to UTF-8
*[[ファイルをUTF-8に変換する]] - 非標準言語パックのようなファイルをUTF-8にコンバートする方法に関して


Using Moodleフォーラムディスカッション:
Using Moodleフォーラムディスカッション:

2006年8月21日 (月) 07:37時点における版

翻訳中です - Mitsuhiro Yoshida 2006年8月17日 (木) 04:28 (WST)

Moodle 1.6

データベース構造のみでは無く、データベースコンテンツも変更 ( すべてUTF8へ変換 ) されたため、Moodle 1.5.x からMoodle 1.6へのアップグレードを始める前に考慮すべき点がいくつかあります。あなたが本当に重要なサイトをアップグレードする場合、間違いなくアップグレードできるか、既存のサイトをコピーした環境でテストアップグレードする価値はあります。

システム要件の確認

管理 >> 動作環境 ( 最近のMoodleバージョン1.5 ) に移動して、Moodle1.6 を選択してください。;-) あなたのサーバのスペックがMoodle1.6に適合しているか、またあなたが何をやる必要があるのかレポートが表示されます。基本的に、PHP 4.3.0またはそれ以上 ( PHP5の場合、バージョン5.1.0またはそれ以上が必須 )、MySQL 4.1.16またはそれ以上 ( あなたのサイトがラテン文字のみ使用する場合、4.1.12でもOKです ) またはPostgreSQLを使用してください。PHPのネイティブiconvサポート ( コンパイル時に指定してください ) により、処理速度を上げることができますが必須ではありません。

Moodleファイルの更新

最初にデータベースをバックアップした後、あなたのMoodleを通常どおりアップグレードしてください。利用中のMoodleにあなたがインストールしたすべての非標準モジュールも忘れずにバックアップしてください。非標準モジュールのバックアップを忘れた場合、それらのモジュールに関するデータは、UTF-8コンバージョンされません。

データベース移行

厳密に必要であるわけではありませんが、アップブレード後にあなたのデータベースをUTF-8へ移行することを強くお勧めします。データベース移行に関するリンクは、管理ページの上部に表示されます。詳細は、データベース移行をご覧ください。

言語

Moodle1.6で、全く新しい言語インターフェースが設計されました。デフォルトでは、Moodlehは1つの言語 ( 英語 ) のみ含まれ、個々の言語パックは必要に応じてインストールする必要があります。新しいインターフェースにより、この作業は簡単になりました - あなたのためにmoodle.orgより言語パックをダウンロードして、データディレクトリにインストールします。

データベースの移行後、管理 >> 設定 >> 言語設定 に移動し、言語インポートユーティリティリンクに従ってください。右のウィンドウ枠から希望する言語パックを選択して、直接インストールすることができます。「利用中のすべての言語パックを更新する」リンクをクリックすることで、言語パックを簡単に更新することができます。

あなたのデータベースコンテンツと合致する言語パックを常に使用するようにしてください:

  • アップグレード: 最初にデータベースの移行、そしてUTF-8言語パックの移行を行ってください。
  • 新しいMoodle 1.6のインストール: すぐにUTF-8言語パックを使用することができます。

You will not find the en_utf8 language pack in your moodledata/lang folder. It is in the moodle/lang folder and is not to be modified at all. It should never be upgraded, since it is part of the installation. All other language packs, even modifications for the en language pack go in the moodledata/lang folder (and are in the case of the en language pack called en_utf8_local or en_xx_utf8 but then with parent language string in moodle.php)

If you use the langlist variable on the config variables page, don't forget to change the language names from xx to xx_utf8 or the languages will not be shown in the language drop down menu.

IMPORTANT: There is a bug in 1.6 and 1.6.1 that blocks the locales specified in language packs. Workaround is to override locale for all languages by setting it in Administration >> Configuration >> Variables >> locale. You can find suitable values in the Table of locales (en.UTF-8 , es_ES.UTF-8,...). If you are using 1.6.1+ and later the correct value is usually empty field.

Localisations of existing language packs

Localisations of an existing xx_utf8 language pack should be called xx_utf8_local, should be UTF-8 encoded and should also be put in the moodledata/lang folder. It is still possible to give it another name like xx_mypack_utf8, but then you should add the parentlanguage string in moodle.php from your localisation.

カスタム言語パック

Custom made new language packs go in moodledata/lang. They have to be in a xx_utf8 folder and MUST be UTF-8 encoded (Unicode). We no longer support other encodings, especially when mixed with UTF-8 packs.

If you are using custom language packs before the UTF-8 migration, please remember that they need to include either 1) thischarset or 2) parentlanguage in their moodle.php. Please also rename them from xx to xx_utf8 after the migration. You might need to convert the custom packs into UTF-8 format before using them in a migrated Moodle 1.6.

Advanced languages

If you want to download all the languages at once, we suggest checking the whole lang directory out directly from CVS into your moodledata/lang directory.

 cvs -z3 -d:ext:myusername@moodle.cvs.sourceforge.net:/cvsroot/moodle co lang

This is the recommended method for translators, as you can edit these packs within Moodle and just check them straight back into CVS.

最後の仕上げ

Congratulations! After migrating your database and updating your languages you should have a functional 1.6 site. You'll probably want to visit the various admin pages (especially Variables) to turn some of the features on and off.

関連情報

  • 翻訳 - 1.6も言語パックに関する詳細情報、特にカスタマイズ言語パックに関して
  • ファイルをUTF-8に変換する - 非標準言語パックのようなファイルをUTF-8にコンバートする方法に関して

Using Moodleフォーラムディスカッション: