CC-1960: Internationalize Airtime / Support translations
-added i18n to serverbrowser.js -fixed small typo in SmartBlockCriteria.php
This commit is contained in:
parent
e475c2e99e
commit
9689c75bed
6 changed files with 425 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue