Quelques traductions de messages foireuses
This commit is contained in:
parent
df5500adfe
commit
42574d3cf2
|
@ -533,7 +533,7 @@ class m_bro {
|
|||
exec("sudo /usr/lib/alternc/fixperms.sh -u ".$cuid." -f '".$absolute."/".$_FILES['userfile']['name']."'");
|
||||
return $absolute."/".$_FILES['userfile']['name'];
|
||||
} else {
|
||||
$err->raise("bro",("Cannot create the requested file. Please check the permissions"));
|
||||
$err->raise("bro",_("Cannot create the requested file. Please check the permissions"));
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
|
@ -856,7 +856,7 @@ class m_bro {
|
|||
fputs($f,$texte,strlen($texte));
|
||||
fclose($f);
|
||||
} else {
|
||||
$err->raise("bro",("Cannot edit the requested file. Please check the permissions"));
|
||||
$err->raise("bro",_("Cannot edit the requested file. Please check the permissions"));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -715,7 +715,7 @@ class m_dom {
|
|||
$r["name"]=$dom;
|
||||
$db->query("SELECT * FROM domaines WHERE compte='$cuid' AND domaine='$dom'");
|
||||
if ($db->num_rows()==0) {
|
||||
$err->raise("dom",1,_("Domain '%s' not found"),$dom);
|
||||
$err->raise("dom",sprintf(_("Domain '%s' not found"),$dom));
|
||||
return false;
|
||||
}
|
||||
$db->next_record();
|
||||
|
@ -976,7 +976,7 @@ class m_dom {
|
|||
}
|
||||
$t=checkfqdn($dom);
|
||||
if ($t) {
|
||||
$err->raise("dom",("The domain name is syntaxically incorrect"));
|
||||
$err->raise("dom",_("The domain name is syntaxically incorrect"));
|
||||
return false;
|
||||
}
|
||||
if (!$r=$this->get_sub_domain_all($dom,$sub,$type)) {
|
||||
|
|
|
@ -349,7 +349,7 @@ class m_mem {
|
|||
$newpass=stripslashes($newpass);
|
||||
$newpass2=stripslashes($newpass2);
|
||||
if (!$this->user["canpass"]) {
|
||||
$err->raise("mem",("You are not allowed to change your password."));
|
||||
$err->raise("mem",_("You are not allowed to change your password."));
|
||||
return false;
|
||||
}
|
||||
if ($this->user["pass"]!=_md5cr($oldpass,$this->user["pass"])) {
|
||||
|
@ -381,7 +381,7 @@ class m_mem {
|
|||
global $db,$err,$cuid;
|
||||
$err->log("mem","admlist");
|
||||
if (!$this->user["su"]) {
|
||||
$err->raise("mem",("You must be a system administrator to do this."));
|
||||
$err->raise("mem",_("You must be a system administrator to do this."));
|
||||
return false;
|
||||
}
|
||||
$db->query("UPDATE membres SET admlist='$admlist' WHERE uid='$cuid';");
|
||||
|
@ -401,7 +401,7 @@ class m_mem {
|
|||
$err->log("mem","send_pass");
|
||||
$db->query("SELECT * FROM membres WHERE login='$login';");
|
||||
if (!$db->num_rows()) {
|
||||
$err->raise("mem",("This account is locked, contact the administrator."));
|
||||
$err->raise("mem",_("This account is locked, contact the administrator."));
|
||||
return false;
|
||||
}
|
||||
$db->next_record();
|
||||
|
|
|
@ -425,7 +425,7 @@ class m_mysql {
|
|||
$err->raise("mysql",_("Database name can contain only letters and numbers"));
|
||||
return false;
|
||||
} elseif (!$db->query("select db from db where db='$base';")){
|
||||
$err->raise("mysql","Database not found");
|
||||
$err->raise("mysql",_("Database not found"));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -443,7 +443,7 @@ class m_mysql {
|
|||
$db->query("select name from dbusers where name='".$user."' ;");
|
||||
|
||||
if(!$db->num_rows()){
|
||||
$err->raise("mysql","Database user not found");
|
||||
$err->raise("mysql",_("Database user not found"));
|
||||
return false;
|
||||
}
|
||||
if($rights == "FILE"){
|
||||
|
|
|
@ -261,7 +261,7 @@ class m_quota {
|
|||
if(empty($type)) return false;
|
||||
$type=strtolower($type);
|
||||
if (!preg_match("#^[a-z0-9]*$#",$type)) {
|
||||
$err->raise("quota", "Type can only contains characters a-z and 0-9");
|
||||
$err->raise("quota", _("Type can only contains characters a-z and 0-9"));
|
||||
return false;
|
||||
}
|
||||
while (list($key,$val)=each($qlist)) {
|
||||
|
|
Loading…
Reference in New Issue