| Package | jp.nium.lang |
| Class | public final class Locale |
| Inheritance | Locale Object |
| Property | Defined By | ||
|---|---|---|---|
| defaultLanguage : String [static] [read-only]
指定された言語に対応したストリングが存在しなかった場合に、代替言語として使用される言語を取得します。
| Locale | ||
| language : String [static]
現在設定されている言語を取得または設定します。
デフォルト設定は、Flash Player が実行されているシステムの言語コードになります。
Get or set the current language. | Locale | ||
| Method | Defined By | ||
|---|---|---|---|
getString(id:String):String [static]
指定した id に関連付けられたストリングを現在設定されている言語表現で返します。
Returns the string which relate to the specified id by the current language expression.
| Locale | ||
getStringByLang(id:String, language:String):String [static]
指定した id と言語に関連付けられたストリングを返します。
Returns the string which relates to the specified id and language.
| Locale | ||
setString(id:String, language:String, value:String):void [static]
ストリングを指定した id と言語に関連付けます。
Relate the specified string to the language.
| Locale | ||
| Constant | Defined By | ||
|---|---|---|---|
| EN : String = en [static]
言語設定が英語になるよう指定します。
Set the language configuration to "English".
| Locale | ||
| JA : String = ja [static]
言語設定が日本語になるよう指定します。
Set the language configuration to "Japanese".
| Locale | ||
| defaultLanguage | property |
defaultLanguage:String [read-only] 指定された言語に対応したストリングが存在しなかった場合に、代替言語として使用される言語を取得します。
public static function get defaultLanguage():String| language | property |
language:String現在設定されている言語を取得または設定します。 デフォルト設定は、Flash Player が実行されているシステムの言語コードになります。 Get or set the current language. The default setting will be same as System language code which executing the Flash Player.
public static function get language():String public static function set language(value:String):void| getString | () | method |
public static function getString(id:String):String指定した id に関連付けられたストリングを現在設定されている言語表現で返します。 Returns the string which relate to the specified id by the current language expression.
Parameters
id:String — ストリングに関連付けられた識別子です。
The identifier relates to the string.
|
String —
関連付けられたストリングです。
Related string.
|
| getStringByLang | () | method |
public static function getStringByLang(id:String, language:String):String指定した id と言語に関連付けられたストリングを返します。 Returns the string which relates to the specified id and language.
Parameters
id:String — ストリングに関連付けられた識別子です。
The identifier relates to the string.
| |
language:String — ストリングに関連付けられた言語です。
The language relates to the string.
|
String —
関連付けられたストリングです。
Related string.
|
| setString | () | method |
public static function setString(id:String, language:String, value:String):voidストリングを指定した id と言語に関連付けます。 Relate the specified string to the language.
Parameters
id:String — ストリングに関連付ける識別子です。
The identifier relates to the string.
| |
language:String — ストリングに関連付ける言語です。
The language relates to the string.
| |
value:String — 関連付けるストリングです。
Related string.
|
| EN | Constant |
public static const EN:String = en言語設定が英語になるよう指定します。 Set the language configuration to "English".
| JA | Constant |
public static const JA:String = ja言語設定が日本語になるよう指定します。 Set the language configuration to "Japanese".