Detailed Description

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...
 

Constructor & Destructor Documentation

PowerUI.Languages.Languages ( HtmlDocument  doc)
inline

Member Function Documentation

Language PowerUI.Languages.get ( string  code)
inline

Get a language by its code.

Member Data Documentation

Language [] PowerUI.Languages.all_
package

The raw language set which is loaded from this documents meta tag.

Language PowerUI.Languages.current_
package

Cached current language.

readonly string PowerUI.Languages.DEFAULT ="/Languages/"
static
HtmlDocument PowerUI.Languages.document

The document that this languages API is for.

PowerUILanguageLoader PowerUI.Languages.globalLoader_
staticprivate

A loader which pulls localised text. This loader is used whenever the default URI resources://Languages/ is in use.

PowerUILanguageLoader PowerUI.Languages.loader_
private

A loader which pulls localised text.

string PowerUI.Languages.location_
private

Property Documentation

Language [] PowerUI.Languages.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.

Language PowerUI.Languages.current
get

The currently active language for this document. Note that it's never null.

PowerUILanguageLoader PowerUI.Languages.globalLoader
staticgetpackage

Gets a loader which tells PowerUI where to look for language specific UI text ( content).

PowerUILanguageLoader PowerUI.Languages.loader
getpackage

Gets a loader which tells PowerUI where to look for language specific UI text ( content).

string PowerUI.Languages.location
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/".