Changeset 1580

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

l10n of some error strings

Location:
trunk/gregarius
Files:
4 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; 
  • trunk/gregarius/admin/tags.php

    r1561 r1580  
    160160    echo "</table>\n"; 
    161161    echo "<fieldset>\n" 
    162     ."<legend>Selected...</legend>\n" 
     162    ."<legend>".__('Selected')."...</legend>\n" 
    163163    ."<p>\n" 
    164164    ."<input type=\"submit\" id=\"me_delete\" name=\"me_delete\" value=\"".__('Delete')."\" />\n" 
     
    178178 
    179179    echo "<div>\n" 
    180     ."<h2>Edit '$tag'</h2>\n" 
     180    ."<h2>".ucfirst(__('edit'))." '$tag'</h2>\n" 
    181181    ."<form method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."\" id=\"tagedit\">\n" 
    182182 
  • trunk/gregarius/cls/l10n.php

    r1579 r1580  
    7474    function __detectUserLang() { 
    7575       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()); 
    7677            return  $_REQUEST['lang']; 
    7778        } elseif (isset($_COOKIE[RSS_LOCALE_COOKIE])) { 
  • trunk/gregarius/schema.php

    r1571 r1580  
    6565         
    6666        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); 
    6868        } else { 
    6969            rss_error(