forked from science-ation/science-ation
Fix i18n on the date config errors
This commit is contained in:
parent
fca6ce64b0
commit
59d42980e1
@ -74,9 +74,9 @@ $dates = array('fairdate' => array() ,
|
||||
$v = $r->date;
|
||||
/* See if $v is something resembling a valid date */
|
||||
if(!ereg("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $v, $d)) {
|
||||
$error_ids[$r->id] = "Invalid date format";
|
||||
$error_ids[$r->id] = i18n("Invalid date format");
|
||||
} else if($d[3]==0 || $d[2]==0 || $d[1]==0) {
|
||||
$error_ids[$r->id] = "Invalid date";
|
||||
$error_ids[$r->id] = i18n("Invalid date");
|
||||
}
|
||||
}
|
||||
|
||||
@ -111,7 +111,7 @@ chkafter('fairdate','postwinners');
|
||||
foreach($dates as $d) {
|
||||
$e = '';
|
||||
if($error_ids[$d['id']]) {
|
||||
$e = "<font color=red size=-1>* ".i18n($error_ids[$d['id']])."</font>";
|
||||
$e = "<font color=red size=-1>* ".$error_ids[$d['id']]."</font>";
|
||||
}
|
||||
echo "<tr><td>".i18n($d['description'])."</td><td><input type=\"text\" name=\"savedates[{$d['id']}]\" value=\"{$d['date']}\" />{$e}</td></tr>";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user