Holds information about a particular translation.
Public Member Functions | |
| TranslationInfo (string languagePath, string languageText, string from, string to, string toName) | |
| Holds the given information about a translation. More... | |
| void | Complete (string translation) |
| Called when the translation is complete. More... | |
| void | WriteToFile () |
| Writes this translation result to it's file. Fails if there is no result. More... | |
Public Attributes | |
| string | Key |
| The authentication key to use. Currently obtained from Bing. More... | |
| string | ToCode |
| The lower case language code to translate to, e.g. fr. More... | |
| string | ToName |
| The language tag to append to the start of the result. More... | |
| string | Result |
| The resulting translated text. More... | |
| string | FromCode |
| The lower case language code to translate from, e.g. en. More... | |
| bool | LeftToRight |
| True if the result should be marked left to right. More... | |
| string | ToTranslate |
| The text to be translated. <v> should be used here. More... | |
| string | LanguagePath |
| The path to the Languages/UI folder. More... | |
| OnTranslated | OnComplete |
| A delegate triggered when the translation is complete. More... | |
Properties | |
| string | LanguageTag [get] |
| Gets the language tag. That's the small >language< tag at the top of the resulting file. More... | |
| string | Filepath [get] |
| The path to the newly translated file. More... | |
|
inline |
Holds the given information about a translation.
| languagePath | The path to the Languages/UI folder. |
| languageText | The text to be translated. <v> should be used here. |
| from | The lower case language code to translate from, e.g. en. |
| to | The lower case language code to translate to, e.g. fr. |
| toName | The language tag to append to the start of the result. |
|
inline |
Called when the translation is complete.
| translation | The translated result. |
|
inline |
Writes this translation result to it's file. Fails if there is no result.
| string PowerUI.TranslationInfo.FromCode |
The lower case language code to translate from, e.g. en.
| string PowerUI.TranslationInfo.Key |
The authentication key to use. Currently obtained from Bing.
| string PowerUI.TranslationInfo.LanguagePath |
The path to the Languages/UI folder.
| bool PowerUI.TranslationInfo.LeftToRight |
True if the result should be marked left to right.
| OnTranslated PowerUI.TranslationInfo.OnComplete |
A delegate triggered when the translation is complete.
| string PowerUI.TranslationInfo.Result |
The resulting translated text.
| string PowerUI.TranslationInfo.ToCode |
The lower case language code to translate to, e.g. fr.
| string PowerUI.TranslationInfo.ToName |
The language tag to append to the start of the result.
| string PowerUI.TranslationInfo.ToTranslate |
The text to be translated. <v> should be used here.
|
get |
The path to the newly translated file.
|
get |
Gets the language tag. That's the small >language< tag at the top of the resulting file.