Displays options for automatically translating your UI language files.
Static Public Member Functions | |
| static void | ShowWindow () |
| static void | LoadAvailableLanguages () |
| Loads the set of translate to languages from the languages.txt file. More... | |
| static string | GetLanguagePath () |
| Attempts to find the Languages/UI folder. More... | |
| static string | GetLanguagePath (string relativeTo) |
| Attempts to find the Languages/UI folder within the given directory. More... | |
| static void | Perform (bool allowExists) |
| Performs the translation using options selected in the open window. More... | |
| static bool | Perform (string from, string to, string toName, bool allowExists) |
| Performs the translation. More... | |
| static bool | Perform (string languageFile, string from, string to, string toName, bool allowExists) |
| Performs the translation. More... | |
| static void | SaveTranslationKey () |
| Saves the TranslationKey into TranslationKeyFile. More... | |
| static void | SaveTranslationKey (string key) |
| Saves the given TranslationKey into the TranslationKeyFile. More... | |
| static string | GetTranslationKey () |
| Loads the translation key from the TranslationKeyFile. More... | |
Static Public Attributes | |
| static bool | FileExists |
| True when the target language file is found, and we'd like to check if overwriting it is ok. More... | |
| static bool | Translating |
| Set to true if a translation is in progress. More... | |
| static int | SelectedSource |
| The selected source file index in the AvailableSource array. More... | |
| static string | PowerUIPath |
| The path to PowerUI. More... | |
| static int | SelectedTarget |
| The selected target langauge index in the AvailableTargets array. More... | |
| static string | LanguagePath |
| The path to the Languages/UI folder. More... | |
| static string | TranslationKey |
| The access key to use when translating. More... | |
| static string[] | AvailableSource |
| The available source languages. More... | |
| static string[] | AvailableTargets |
| The available target languages. Loaded from the languages.txt file. More... | |
| static EditorWindow | TranslateWindow |
| The last opened translate window. More... | |
| static string[] | AvailableTargetCodes |
| The available target language codes. Loaded from the languages.txt file. More... | |
Properties | |
| static string | TranslationsPath [get] |
| The filepath to the Translations editor folder. More... | |
| static string | TranslationKeyFile [get] |
| The filepath to the file that holds the translation key. More... | |
Private Member Functions | |
| void | Update () |
| void | OnGUI () |
Static Private Member Functions | |
| static void | OnTranslationDone (TranslationInfo info) |
Static Private Attributes | |
| static bool | ShowAPIKey |
| True if the API key section is visible. More... | |
|
inlinestatic |
Attempts to find the Languages/UI folder.
|
inlinestatic |
Attempts to find the Languages/UI folder within the given directory.
| relativeTo | The directory to search from. |
|
inlinestatic |
Loads the translation key from the TranslationKeyFile.
|
inlinestatic |
Loads the set of translate to languages from the languages.txt file.
|
inlineprivate |
|
inlinestaticprivate |
|
inlinestatic |
Performs the translation using options selected in the open window.
| allowExists | True if we can safely overwrite the file if it exists. |
|
inlinestatic |
Performs the translation.
| from | The filename of the file in the Languages/UI folder, without it's type. |
| to | The language code that will be translated to, e.g. "fr". |
| toName | The language name that will be translated to, e.g. "French". |
| allowExists | True if we can safely overwrite the file if it exists. |
|
inlinestatic |
Performs the translation.
| languageText | The text to be translated. <v> should be used here. |
| from | The language code to translate from, e.g. EN. |
| to | The language code to translate to, e.g. FR. |
| toName | The language name that will be translated to, e.g. "French". |
| allowExists | True if we can safely overwrite the file if it exists. |
|
inlinestatic |
Saves the TranslationKey into TranslationKeyFile.
|
inlinestatic |
Saves the given TranslationKey into the TranslationKeyFile.
| key | The key to save. |
|
inlinestatic |
|
inlineprivate |
|
static |
The available source languages.
|
static |
The available target language codes. Loaded from the languages.txt file.
|
static |
The available target languages. Loaded from the languages.txt file.
|
static |
True when the target language file is found, and we'd like to check if overwriting it is ok.
|
static |
The path to the Languages/UI folder.
|
static |
The path to PowerUI.
|
static |
The selected source file index in the AvailableSource array.
|
static |
The selected target langauge index in the AvailableTargets array.
|
staticprivate |
True if the API key section is visible.
|
static |
The last opened translate window.
|
static |
Set to true if a translation is in progress.
|
static |
The access key to use when translating.
|
staticget |
The filepath to the file that holds the translation key.
|
staticget |
The filepath to the Translations editor folder.