CC-1960: Internationalize Airtime / Support translations

-added i18n to serverbrowser.js
-fixed small typo in SmartBlockCriteria.php
This commit is contained in:
denise 2012-11-28 11:54:22 -05:00
parent e475c2e99e
commit 9689c75bed
6 changed files with 425 additions and 9 deletions

View file

@ -40,12 +40,12 @@ Class Application_Form_Helper_ValidationTypes {
public static function overrideRegexValidator($p_pattern, $p_msg)
{
$validator = new Zend_Validate_Regex($p_pattern);
$validator->setMessage(
$p_msg,
Zend_Validate_Regex::NOT_MATCH
);
return $validator;
}
@ -54,17 +54,17 @@ Class Application_Form_Helper_ValidationTypes {
$validator = new Zend_Validate_StringLength();
$validator->setMin($p_min);
$validator->setMax($p_max);
$validator->setMessage(
_("'%value%' is less than %min% characters long"),
Zend_Validate_StringLength::TOO_SHORT
);
$validator->setMessage(
_("'%value%' is less than %max% characters long"),
Zend_Validate_StringLength::TOO_LONG
);
return $validator;
}