The non-standard document.languages API. It provides localization information.
Public Member Functions | |
Language | get (string code) |
Get a language by its code. More... | |
Languages (HtmlDocument doc) | |
Public Attributes | |
HtmlDocument | document |
The document that this languages API is for. More... | |
Static Public Attributes | |
static readonly string | DEFAULT ="/Languages/" |
Package Attributes | |
Language[] | all_ |
The raw language set which is loaded from this documents meta tag. More... | |
Language | current_ |
Cached current language. More... | |
Properties | |
static PowerUILanguageLoader | globalLoader [get] |
Gets a loader which tells PowerUI where to look for language specific UI text ( content). More... | |
PowerUILanguageLoader | loader [get] |
Gets a loader which tells PowerUI where to look for language specific UI text ( content). More... | |
Language | current [get] |
The currently active language for this document. Note that it's never null. More... | |
string | location [get, set] |
Set this either with a <meta name="languages" src="x"> tag, or use this API directly. If it's not been set, it will return the default value which is the domain relative URI "/Languages/". More... | |
Language[] | all [get] |
Gets all languages available to this document. Originates from your meta name='languages' tag or a parent document if this is in an iframe. More... | |
Private Attributes | |
string | location_ |
PowerUILanguageLoader | loader_ |
A loader which pulls localised text. More... | |
Static Private Attributes | |
static PowerUILanguageLoader | globalLoader_ |
A loader which pulls localised text. This loader is used whenever the default URI resources://Languages/ is in use. More... | |
|
inline |
|
inline |
Get a language by its code.
|
package |
The raw language set which is loaded from this documents meta tag.
|
package |
Cached current language.
|
static |
HtmlDocument PowerUI.Languages.document |
The document that this languages API is for.
|
staticprivate |
A loader which pulls localised text. This loader is used whenever the default URI resources://Languages/ is in use.
|
private |
A loader which pulls localised text.
|
private |
|
get |
Gets all languages available to this document. Originates from your meta name='languages' tag or a parent document if this is in an iframe.
|
get |
The currently active language for this document. Note that it's never null.
|
staticgetpackage |
|
getpackage |
|
getset |
Set this either with a <meta name="languages" src="x"> tag, or use this API directly. If it's not been set, it will return the default value which is the domain relative URI "/Languages/".