Class org_geoprisma_locale_Locale

Description

Implements interfaces:

  • com_borealis_foundation_util_Singleton

Return text based on language and domain name

  • author: Pascal Martin
  • abstract:

Located in /org/geoprisma/locale/Locale.php (line 24)


	
			
Direct descendents
Class Description
org_geoprisma_locale_PhpGetTextLocale Return text based on language and domain name
org_geoprisma_locale_GetTextLocale Return text based on language and domain name using the php gettext fonction
Method Summary
static string getText (string $pstrMsg, string $pstrDomainName, [string $pstrType = null])
static string jsEncode (string $pstrText)
string getDefaultLanguage ()
string getLanguage ()
string getTranslation (string $pstrMsg, string $pstrDomainName)
void setLanguage (string $pstrLanguage)
Methods
static method getText (line 96)

Return text based on domainName for right language

  • access: public
static string getText (string $pstrMsg, string $pstrDomainName, [string $pstrType = null])
  • string $pstrMsg: Message Key
  • string $pstrDomainName: Name of the
  • string $pstrType: Type encoding "JS" "HTML"
static method jsEncode (line 120)

Encode la string recu pour être imprimer dans du code Javascritp

  • access: public
static string jsEncode (string $pstrText)
  • string $pstrText: Chaine de texte
getDefaultLanguage (line 55)

Retourne le language par défaut

  • access: public
string getDefaultLanguage ()
getLanguage (line 33)

Return the current use langage for traduction (e.g. en_US , fr_CA)

  • access: public
string getLanguage ()
getTranslation (line 85)

Return text based on domainName for right language

  • abstract:
  • access: public
string getTranslation (string $pstrMsg, string $pstrDomainName)
  • string $pstrMsg: Message Key
  • string $pstrDomainName: Name of the

Redefined in descendants as:
setLanguage (line 45)

Set the current use langage for traduction (e.g. en_US , fr_CA)

  • access: public
void setLanguage (string $pstrLanguage)
  • string $pstrLanguage: Language

Redefined in descendants as:

Documentation generated on Thu, 19 Jan 2012 00:08:37 +0400 by phpDocumentor 1.4.1