Show
Ignore:
Timestamp:
09/14/06 18:51:23 (2 years ago)
Author:
mbonetti
Message:

l10n of some error strings

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/admin/config.php

    r1571 r1580  
    188188    case 'CST_ADMIN_DEFAULT_ACTION': 
    189189        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); 
    191191            break; 
    192192        } 
     
    198198 
    199199        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); 
    201201            break; 
    202202        } 
     
    324324            case 'num': 
    325325                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); 
    327327                    break; 
    328328                } 
     
    331331            case 'boolean': 
    332332                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); 
    334334                    break; 
    335335                } 
     
    343343 
    344344                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); 
    346346                    break; 
    347347                } 
     
    362362                           ." where key_='$key'"; 
    363363                } 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); 
    365365                } 
    366366                break; 
    367367            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); 
    369369                //var_dump($_REQUEST); 
    370370                break;