Show
Ignore:
Timestamp:
08/29/06 12:34:21 (6 years ago)
Author:
max-horvath
Message:

"2006-08-29 Max Horvath <max.horvath@…>

  • Cleaned up PHPdoc tags
  • Updated german translation
  • Updated portuguese translation, thanks to Gabriel Hahmann
  • Added spanish translation, thanks to Ricardo Jose Guevara Ochoa"
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/classes/Locale.php

    r1031 r1084  
    219219         global $AVAIL_LOCALE_ARRAY; 
    220220        $retval = false; 
    221   
     221 
    222222        // Get new locale ID, assume default if null 
    223223        if ($locale != null) { 
     
    245245            $candidate_locale_array[] = $lang_only_locale_id; 
    246246 
    247               
     247 
    248248            $current_locale = setlocale(LC_ALL, $candidate_locale_array); 
    249249               //echo sprintf("Warning in /classes/Locale.php setCurentLocale: Unable to setlocale() to %s: %s.  I tried %s, %s, %s, %s, and got return value: %s, current locale is: %s",$q, $locale_id, $candidate_locale_array[0], $candidate_locale_array[1], $candidate_locale_array[2], $candidate_locale_array[3], $current_locale, setlocale(LC_ALL, 0))."<br/>"; 
     
    381381        switch ($preflang_result['languages_iso_639_1_id']) { 
    382382            case ('fr') : 
    383                 { 
    384                     $str .= "$resultats[french_name], $resultats[country_french_name]"; 
    385                     break; 
    386                 } 
     383                $str .= "$resultats[french_name], $resultats[country_french_name]"; 
     384                break; 
     385 
    387386            case ('en') : 
    388                 { 
    389                     $str .= "$resultats[english_name], $resultats[country_english_name]"; 
    390                     break; 
    391                 } 
     387                $str .= "$resultats[english_name], $resultats[country_english_name]"; 
     388                break; 
     389 
     390            case ('es') : 
     391                $str .= "$resultats[spanish_name], $resultats[country_spanish_name]"; 
     392                break; 
     393 
    392394            case ('de') : 
    393                 { 
    394                     $str .= "$resultats[german_name], $resultats[country_german_name]"; 
    395                     break; 
    396                 } 
     395                $str .= "$resultats[german_name], $resultats[country_german_name]"; 
     396                break; 
     397 
     398            case ('ja') : 
     399                $str .= "$resultats[japanese_name], $resultats[country_japanese_name]"; 
     400                break; 
     401 
    397402            case ('pt') : 
    398                 { 
    399                     $str .= "$resultats[portuguese_name], $resultats[country_portuguese_name]"; 
    400                     break; 
    401                 } 
     403                $str .= "$resultats[portuguese_name], $resultats[country_portuguese_name]"; 
     404                break; 
     405 
    402406            default : 
    403                 { 
    404                     $str .= "$resultats[french_name], $resultats[country_french_name]"; 
    405                     break; 
    406                 } 
     407                $str .= "$resultats[french_name], $resultats[country_french_name]"; 
     408                break; 
    407409        } 
    408410