Cts_Translate

Summary
Cts_Translate
AuthorRich Joslin
Licensehttp://communit.as/docs/license
Static Methods
translate
cleanZendLocaleCodePrepares a locale code string for use with the Zend_Translate or Zend_Locale classes.
validateLocaleCodeUses a regular expression to see if the supplied locale code is a valid one.

Author

Rich Joslin

Static Methods

translate

static function translate($locale_code,  
$module_name,  
$key,  
$replace =  null,
$do_translation =  true)

cleanZendLocaleCode

static function cleanZendLocaleCode($locale_code)

Prepares a locale code string for use with the Zend_Translate or Zend_Locale classes.

Returns: string

validateLocaleCode

static function validateLocaleCode($code)

Uses a regular expression to see if the supplied locale code is a valid one.  Considers any locale code format as valid, not just Zend-friendly.

Returns: boolean

static function translate($locale_code,  
$module_name,  
$key,  
$replace =  null,
$do_translation =  true)
static function cleanZendLocaleCode($locale_code)
Prepares a locale code string for use with the Zend_Translate or Zend_Locale classes.
static function validateLocaleCode($code)
Uses a regular expression to see if the supplied locale code is a valid one.
Close