Source

cruge / models / ui / CrugeLogon.php

Diff from to

models/ui/CrugeLogon.php

 		// ademas de cargar sus campos de perfil (flag=true)
 		$this->_model = Yii::app()->user->um->loadUser($this[$arg],true);
 		if($this->_model == null)
-			$this->addError($arg,CrugeTranslator::t("el usuario no fue hallado"));
+			$this->addError($arg,CrugeTranslator::t('logon', 'User not found'));
 	}
 
 	public function authenticate($arg='password',$param=''){
 		// la etiqueta $label cambiara depende de como este configuado el sistema
 		//
 		return array(
-			'username'=>$this->_getUsernameLabel(),
-			'password'=>ucfirst(CrugeTranslator::t('clave de acceso').":"),
-			'rememberMe'=>ucfirst(CrugeTranslator::t('recordar en este equipo').":"),
-			'verifyCode' => ucfirst(CrugeTranslator::t('codigo de seguridad').":"),
+			'username' => $this->_getUsernameLabel(),
+			'password' => ucfirst(CrugeTranslator::t('logon', 'password').":"),
+			'rememberMe' => ucfirst(CrugeTranslator::t('logon', 'remember this machine').":"),
+			'verifyCode' => ucfirst(CrugeTranslator::t('logon', 'verify code').":"),
 		);
 	}
 	private function _getUsernameLabel() {
 		$label = ""; $sep="";
 		foreach(CrugeUtil::config()->availableAuthModes as $k=>$v){
-			$label .= $sep.CrugeTranslator::t(ucfirst(CrugeUtil::config()->availableAuthModes[$k]));
-			$sep=" ".CrugeTranslator::t("o")." ";
+			$label .= $sep.CrugeTranslator::t('logon', ucfirst(CrugeUtil::config()->availableAuthModes[$k]));
+			$sep = " ".CrugeTranslator::t('logon', 'or')." ";
 		}
 		$label .= ":";
 		return $label;