Class SystemLanguageUtil
Inheritance
SystemLanguageUtil
Assembly: Glitch9.dll
Syntax
public static class SystemLanguageUtil
Methods
|
Edit this page
View Source
GetInspectorNameWithIso639_1(SystemLanguage, string)
Declaration
public static string GetInspectorNameWithIso639_1(this SystemLanguage language, string unknownName = "Unknown Language")
Parameters
| Type |
Name |
Description |
| SystemLanguage |
language |
|
| string |
unknownName |
|
Returns
|
Edit this page
View Source
ParseIetfTag(string)
Declaration
public static SystemLanguage ParseIetfTag(string ietf)
Parameters
| Type |
Name |
Description |
| string |
ietf |
|
Returns
| Type |
Description |
| SystemLanguage |
|
|
Edit this page
View Source
ParseIso(string)
Declaration
public static SystemLanguage ParseIso(string code)
Parameters
| Type |
Name |
Description |
| string |
code |
|
Returns
| Type |
Description |
| SystemLanguage |
|
|
Edit this page
View Source
ParseIso639_1(string)
Declaration
public static SystemLanguage ParseIso639_1(string iso1)
Parameters
| Type |
Name |
Description |
| string |
iso1 |
|
Returns
| Type |
Description |
| SystemLanguage |
|
|
Edit this page
View Source
ParseIso639_3(string)
Declaration
public static SystemLanguage ParseIso639_3(string iso3)
Parameters
| Type |
Name |
Description |
| string |
iso3 |
|
Returns
| Type |
Description |
| SystemLanguage |
|
|
Edit this page
View Source
ToCultureInfo(SystemLanguage)
Declaration
public static CultureInfo ToCultureInfo(this SystemLanguage language)
Parameters
| Type |
Name |
Description |
| SystemLanguage |
language |
|
Returns
|
Edit this page
View Source
ToIetfTag(SystemLanguage, string)
IETF Language Tag (e.g., "en-US").
Declaration
public static string ToIetfTag(this SystemLanguage language, string unknown = "auto")
Parameters
| Type |
Name |
Description |
| SystemLanguage |
language |
|
| string |
unknown |
|
Returns
|
Edit this page
View Source
ToIso639_1(SystemLanguage, string)
Get ISO-639-1 code (e.g., "en"). For Chinese, returns "zh" for all variants.
Declaration
public static string ToIso639_1(this SystemLanguage language, string unknown = "en")
Parameters
| Type |
Name |
Description |
| SystemLanguage |
language |
|
| string |
unknown |
|
Returns
|
Edit this page
View Source
ToSystemLanguage(CultureInfo)
Declaration
public static SystemLanguage ToSystemLanguage(this CultureInfo cultureInfo)
Parameters
Returns
| Type |
Description |
| SystemLanguage |
|
|
Edit this page
View Source
TryParseIetfTag(string, out SystemLanguage)
Declaration
public static bool TryParseIetfTag(string ietf, out SystemLanguage lang)
Parameters
| Type |
Name |
Description |
| string |
ietf |
|
| SystemLanguage |
lang |
|
Returns
|
Edit this page
View Source
TryParseIso(string, out SystemLanguage)
Parse ISO-639-1/-2(B/T)/-3 or IETF language tag to SystemLanguage.
Declaration
public static bool TryParseIso(string code, out SystemLanguage lang)
Parameters
| Type |
Name |
Description |
| string |
code |
|
| SystemLanguage |
lang |
|
Returns
|
Edit this page
View Source
TryParseIso639_1(string, out SystemLanguage)
Declaration
public static bool TryParseIso639_1(string iso1, out SystemLanguage lang)
Parameters
| Type |
Name |
Description |
| string |
iso1 |
|
| SystemLanguage |
lang |
|
Returns
|
Edit this page
View Source
TryParseIso639_3(string, out SystemLanguage)
Declaration
public static bool TryParseIso639_3(string iso3, out SystemLanguage lang)
Parameters
| Type |
Name |
Description |
| string |
iso3 |
|
| SystemLanguage |
lang |
|
Returns