Changeset 1580
- Timestamp:
- 09/14/06 18:51:23 (2 years ago)
- Location:
- trunk/gregarius
- Files:
-
- 4 modified
-
admin/config.php (modified) (6 diffs)
-
admin/tags.php (modified) (2 diffs)
-
cls/l10n.php (modified) (1 diff)
-
schema.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gregarius/admin/config.php
r1571 r1580 188 188 case 'CST_ADMIN_DEFAULT_ACTION': 189 189 if (!array_key_exists('key',$_REQUEST)) { 190 rss_error( 'Invalid config key specified.', RSS_ERROR_ERROR,true);190 rss_error(__('Invalid config key specified.'), RSS_ERROR_ERROR,true); 191 191 break; 192 192 } … … 198 198 199 199 if ($value == $default) { 200 rss_error( "The value for '$key' is the same as its default value!", RSS_ERROR_ERROR,true);200 rss_error(__("The value for '$key' is the same as its default value!"), RSS_ERROR_ERROR,true); 201 201 break; 202 202 } … … 324 324 case 'num': 325 325 if (!is_numeric($value)) { 326 rss_error( "Oops, I was expecting a numeric value, got '$value' instead!", RSS_ERROR_ERROR,true);326 rss_error(__("Oops, I was expecting a numeric value, got '$value' instead!"), RSS_ERROR_ERROR,true); 327 327 break; 328 328 } … … 331 331 case 'boolean': 332 332 if ($value != __('True') && $value != __('False')) { 333 rss_error( 'Oops, invalid value for ' . $key .": " . $value, RSS_ERROR_ERROR,true);333 rss_error(__("Oops, invalid value for $key : $value"), RSS_ERROR_ERROR,true); 334 334 break; 335 335 } … … 343 343 344 344 if (strstr($oldvalue,$value) === FALSE) { 345 rss_error( "Oops, invalid value '$value' for this config key", RSS_ERROR_ERROR,true);345 rss_error(__("Oops, invalid value '$value' for this config key"), RSS_ERROR_ERROR,true); 346 346 break; 347 347 } … … 362 362 ." where key_='$key'"; 363 363 } else { 364 rss_error( "Oops, invalid value '$value' for this config key", RSS_ERROR_ERROR,true);364 rss_error(__("Oops, invalid value '$value' for this config key"), RSS_ERROR_ERROR,true); 365 365 } 366 366 break; 367 367 default: 368 rss_error( 'Ooops, unknown config type: '. $type, RSS_ERROR_ERROR,true);368 rss_error(__('Ooops, unknown config type: ') . $type, RSS_ERROR_ERROR,true); 369 369 //var_dump($_REQUEST); 370 370 break; -
trunk/gregarius/admin/tags.php
r1561 r1580 160 160 echo "</table>\n"; 161 161 echo "<fieldset>\n" 162 ."<legend> Selected...</legend>\n"162 ."<legend>".__('Selected')."...</legend>\n" 163 163 ."<p>\n" 164 164 ."<input type=\"submit\" id=\"me_delete\" name=\"me_delete\" value=\"".__('Delete')."\" />\n" … … 178 178 179 179 echo "<div>\n" 180 ."<h2> Edit'$tag'</h2>\n"180 ."<h2>".ucfirst(__('edit'))." '$tag'</h2>\n" 181 181 ."<form method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."\" id=\"tagedit\">\n" 182 182 -
trunk/gregarius/cls/l10n.php
r1579 r1580 74 74 function __detectUserLang() { 75 75 if (isset($_REQUEST['lang']) && preg_match('#^[a-z]{2}_[A-Z]{2}$#',$_REQUEST['lang']) && file_exists(GREGARIUS_HOME .'intl/'.$_REQUEST['lang'])) { 76 setcookie(RSS_LOCALE_COOKIE,$_REQUEST['lang'],time()+3600*6,getPath()); 76 77 return $_REQUEST['lang']; 77 78 } elseif (isset($_COOKIE[RSS_LOCALE_COOKIE])) { -
trunk/gregarius/schema.php
r1571 r1580 65 65 66 66 if ($updated == count($missing_tables)) { 67 rss_error( "Successfully created $updated of $updated database tables!", RSS_ERROR_NOTICE);67 rss_error(__("Successfully created $updated of $updated database tables!"), RSS_ERROR_NOTICE); 68 68 } else { 69 69 rss_error(
