[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

PHP-Map of Skolelinux Schools: Update; l10n



Dear list,

yesterday I managed to update recently added schools (some needed fixing 
of coordinates) and created static jpeg-maps [1].

Of course, there is also the new php-maps displaying all schools in our 
database dynamically (up to date by definition) [2]

Its title can be localised like seen here:
 http://www.skolelinux.no/slschools/worldmap.php?lang=en

Till now, i18n is coded like this [3][4]. As you can see, there are 
translations for de,fr,es,pt. Further languages are welcome - but would 
probably suggest a better coding (using po-Files). Suggestions are very 
welcome - translations as well.

Thanks & regards.
Ralf

1. http://wiki.debian.org/DebianEdu/ReferenceSchools
2. http://www.skolelinux.no/slschools/worldmap.php
3. Direct acces from  
svn+ssh://user@svn.skolelinux.no/repos/skolelinux/trunk/www/www.skolelinux.no 
- I can't find this branch at 
http://svn.debian.org/wsvn/debian-edu/trunk/src/debian-edu/ - is there a 
web interface as well?
4. PHP:
if (isset($_GET['lang']) )  // only change labels if lang is given:
{
    if ( $_GET['lang'] == 'en')
        {
        $title = "Skolelinux schools";
        $units = "Country";
        }
    else if ($_GET['lang'] == 'de')
        {
        $title =  "Skolelinux-Schulen";
        $units = "Land";
        }
    else if ($_GET['lang'] == 'fr')
        {
        $title =   "Skolelinux: ecoles";
        $units = "Payes";
        }
    else if ($_GET['lang'] == 'es')
        {
        $title =  "Skolelinux: escuelas";
        $units = "Pais";
        }
    else if ($_GET['lang'] == 'pt')
        {
        $title =  "Skolelinux escolas";
        $units = "Paes";
        }
}



Reply to: