Resources

Resources

Source:
Contains static methods that are used to translate text displayed by the PMA.UI framework

Members

(static) Labels :Object

Source:
Static hashmap that holds one array per available culture, e.g. PMA.UI.Resources.Labels['en-US'] or PMA.UI.Resources.Labels.en-US
Type:
  • Object

(static) Labels :Object

Source:
Static hashmap that holds one array per available culture, e.g. PMA.UI.Resources.Labels['en-US'] or PMA.UI.Resources.Labels.en-US
Type:
  • Object

Methods

(static) setCulture(culture)

Source:
Sets the current culture
Parameters:
Name Type Description
culture string E.g. "en-US"

(static) setCulture(culture)

Source:
Sets the current culture
Parameters:
Name Type Description
culture string E.g. "en-US"

(static) translate(text, oopt) → {string}

Source:
Translates a string
Parameters:
Name Type Attributes Description
text string The text to translate. It can be a simple string literal or it can also contain values that should be interpolated such as "{pageCount} of {totalResultCount} items"
o object <optional>
If text needs interpolation, o then holds all the properties that should be replaced within it
Returns:
The translated string
Type
string

(static) translate(text, oopt) → {string}

Source:
Translates a string
Parameters:
Name Type Attributes Description
text string The text to translate. It can be a simple string literal or it can also contain values that should be interpolated such as "{pageCount} of {totalResultCount} items"
o object <optional>
If text needs interpolation, o then holds all the properties that should be replaced within it
Returns:
The translated string
Type
string

Resources

Source:
Contains static methods that are used to translate text displayed by the PMA.UI framework

Members

(static) Labels :Object

Source:
Static hashmap that holds one array per available culture, e.g. PMA.UI.Resources.Labels['en-US'] or PMA.UI.Resources.Labels.en-US
Type:
  • Object

(static) Labels :Object

Source:
Static hashmap that holds one array per available culture, e.g. PMA.UI.Resources.Labels['en-US'] or PMA.UI.Resources.Labels.en-US
Type:
  • Object

Methods

(static) setCulture(culture)

Source:
Sets the current culture
Parameters:
Name Type Description
culture string E.g. "en-US"

(static) setCulture(culture)

Source:
Sets the current culture
Parameters:
Name Type Description
culture string E.g. "en-US"

(static) translate(text, oopt) → {string}

Source:
Translates a string
Parameters:
Name Type Attributes Description
text string The text to translate. It can be a simple string literal or it can also contain values that should be interpolated such as "{pageCount} of {totalResultCount} items"
o object <optional>
If text needs interpolation, o then holds all the properties that should be replaced within it
Returns:
The translated string
Type
string

(static) translate(text, oopt) → {string}

Source:
Translates a string
Parameters:
Name Type Attributes Description
text string The text to translate. It can be a simple string literal or it can also contain values that should be interpolated such as "{pageCount} of {totalResultCount} items"
o object <optional>
If text needs interpolation, o then holds all the properties that should be replaced within it
Returns:
The translated string
Type
string