IT翻訳 Nobuyuki の仕事部屋

ボランティアでソフトウエアーローカライズのために翻訳をしている。

Gecko Runtime Environment(GRE) を和訳する -7

2005-05-09 20:07:17 | InTranslated
本日は、最後まで行くつもりです。一見長いように見えますが、コードのスナップショットが挿入されているので、そうでもないでしょう。(^-^; 

/*翻訳作業につきましては、本日の作業対象部分のみを以下に表示しておりますが、全体の原文と翻訳文(翻訳作業が完了している部分まで)は、直下のリンクをご参照ください。*/

原題: Gecko Runtime Environment(GRE)
訳題: Gecko ランタイム環境 (GRE)

原文:  青色表示
訳文:  黒色表示
*n(=int)校正コメント:赤色表示


#
GRE Installation on Windows platforms

The GRE for Windows platforms will be bundled with it's own installer program. This installation program will use the Windows registry to record key information such as the GRE version number and the GRE's installation path.

When installed, the GRE installer creates the following Windows registry key:

HKEY_LOCAL_MACHINESoftwareMozillaGRE

In addition, identical registry subkeys are created using both the major/minor versions for each version of GRE installed:

HKEY_LOCAL_MACHINESoftwareMozillaGRE1.0
# HKEY_LOCAL_MACHINESoftwareMozillaGRE1.1

Each of these keys will contain the following string values which give additional information about a specific version of the GRE:


#
Windows プラットフォームへの GRE インストール

Windows プラットフォーム用の GRE は、GRE 自体のインストールプログラムとバンドルされます。このインストールプログラムは、Windows レジストリを使って、GRE バージョン情報、GRE の設定パスなどの重要情報を記録します。

インストールされる時、GRE インストラーは、下記の Windows レジストリ・キーを作成します:

HKEY_LOCAL_MACHINESoftwareMozillaGRE

さらに、インストールされた GRE の各バージョンの major/minor 2つのバージョンを使い、レジストリの同じサブキーが作成されます:

HKEY_LOCAL_MACHINESoftwareMozillaGRE1.0
# HKEY_LOCAL_MACHINESoftwareMozillaGRE1.1

これらのキーの各々は、GRE の固有のバージョンについての追加情報を提供する下記のような文字列の値を保持します。



Name         Default Value
Version     1.0
GreHome     C:Program FilesCommon Filesmozilla.orgGRE1.0
GreComponentsDir C:Program FilesCommon Filesmozilla.orgGRE1.0Components



名称        デフォルト値
Version     1.0
GreHome     C:Program FilesCommon Filesmozilla.orgGRE1.0
GreComponentsDir C:Program FilesCommon Filesmozilla.orgGRE1.0Components


Embedding applications can use this information in the Windows registry to determine the path of the GRE version they are compatible with and use it to set their own PATH environment var. accordingly. Doing so will ensure that the embedding application picks up the correct GRE components the application is compatible with - when there are several versions of GRE's installed on a machine.

The same registry information can also be used by embedding application installer programs to determine whether or not to install a GRE as part of the application installation. This is described in more detail in the Installing a GRE based Application section above.

Here is a code snippet to find all versions of the GRE installed


埋め込みアプリケーションは、自分が、互換性のある GRE のバージョンのパスを決めるのに、Windows レジストリ内のこれらの情報を使用することで、自分の環境パス変数を設定できます。それによって、マシン上に複数の GRE のバージョンが存在する時、アプリケーションと互換性のある正しい GRE コンポーネントを間違えることなく選定します。

同じレジストリ情報は、埋め込みアプリケーションのインストラープログラムを埋め込むことで、アプリケーションの設定の一部として GRE をインストールするかどうか決定するのにも使われます。この事は、上記の GRE をベースとしたアプリケーションをインストールするの節で詳細に説明されています。

下記のコードでインストールされている GRE のすべてのバージョンを調べることができます。


//→コードのスナップショットは省略。冒頭のリンクを参照のこと//

And here is a snippet that returns the location of the GRE directory given a version string:

バージョンの文字列を備えた GRE ディレクトリのロケーションを返すのは以下のコードです:

//→コードのスナップショットは省略。冒頭のリンクを参照のこと//

Note that this code probably should just be used in an installer as the generic GRE startup code we mentioned above already does this for you.

上述した汎用的 GRE 立ち上げコードがすでにそうなっているように、おそらくこのコードは、インストラーで使われるべきことに注意してください。

やれやれ、とりあえず訳し終えました\(~o~)/。この原稿は、これから Mozilla Japan において、草稿として公開することになります。また、当翻訳について、何かご意見があれば、是非コメントを書き込んでください。よろしくお願いしますm(__)m。