Changeset 1701

Show
Ignore:
Timestamp:
08/26/08 17:59:11 (3 months ago)
Author:
momo-i
Message:

Updated tempalate, po files, and Install process.

Location:
trunk
Files:
38 modified

Legend:

Unmodified
Added
Removed
  • trunk/install.php

    r1635 r1701  
    6868switch ($_REQUEST['action']) {  
    6969        case 'create_db': 
    70                 if (!install_insert_db($username,$password,$hostname,$database)) {  
     70                /* Get the variables for the language */ 
     71                $htmllang = $_REQUEST['htmllang']; 
     72                $charset  = $_REQUEST['charset']; 
     73 
     74                // Set the lang in the conf array 
     75                Config::set('lang', $htmllang,'1'); 
     76                Config::set('site_charset', $charset, '1'); 
     77                load_gettext(); 
     78 
     79                if (!install_insert_db($username,$password,$hostname,$database)) { 
    7180                        require_once 'templates/show_install.inc.php'; 
    7281                        break; 
    7382                } 
    74  
    75                 /* Get the variables for the language */ 
    76                 $htmllang = $_REQUEST['htmllang']; 
    77                 $charset  = $_REQUEST['charset']; 
    7883                 
    7984                header ("Location: " . $php_self . "?action=show_create_config&local_db=$database&local_host=$hostname&htmllang=$htmllang&charset=$charset"); 
     
    126131                Config::set_by_array($results,'1'); 
    127132 
     133                /* Get the variables for the language */ 
     134                $htmllang = $_REQUEST['htmllang']; 
     135                $charset  = $_REQUEST['charset']; 
     136 
     137                // Set the lang in the conf array 
     138                Config::set('lang', $htmllang,'1'); 
     139                Config::set('site_charset', $charset, '1'); 
     140                load_gettext(); 
     141 
    128142                $password2 = scrub_in($_REQUEST['local_pass2']);  
    129143 
     
    143157         
    144158                $results = parse_ini_file($configfile); 
     159 
     160                /* Get the variables for the language */ 
     161                $htmllang = $_REQUEST['htmllang']; 
     162                $charset  = $_REQUEST['charset']; 
     163 
     164                // Set the lang in the conf array 
     165                Config::set('lang', $htmllang,'1'); 
     166                Config::set('site_charset', $charset, '1'); 
     167                load_gettext(); 
    145168 
    146169                /* Make sure we've got a valid config file */ 
     
    211234        break; 
    212235        default: 
    213                 /* Do some basic tests here... most common error, no mysql */ 
    214                 if (!function_exists('mysql_query')) {  
    215                         header ("Location: test.php"); 
    216                 } 
    217                 $htmllang = "en_US"; 
    218                 header ("Content-Type: text/html; charset=UTF-8"); 
     236                if ($_ENV['LANG']) { 
     237                        $lang = $_ENV['LANG']; 
     238                } else { 
     239                        $lang = "en_US"; 
     240                } 
     241                if(strpos($lang, ".")) { 
     242                        $langtmp = split("\.", $lang); 
     243                        $htmllang = $langtmp[0]; 
     244                        $charset = $langtmp[1]; 
     245                } else { 
     246                        $htmllang = $lang; 
     247                        $charset = "UTF-8"; 
     248                } 
     249                Config::set('lang',$htmllang,'1'); 
     250                Config::set('site_charset', $charset, '1'); 
     251                load_gettext(); 
     252                //header ("Content-Type: text/html; charset=$charset"); 
    219253                /* Show the language options first */ 
    220254                require_once 'templates/show_install_lang.inc.php'; 
  • trunk/locale/base/LANGLIST

    r1694 r1701  
    11Localization Status Report for Ampache. 
     2Generated: 08/27/2008 00:55:43 GMT 
    23 
    34LANG    Trans   Fuzzy   Untrans Obsolete 
    4 ca_CA   496     43      194     134 
    5 de_DE   645     43      45      14 
    6 el_GR   634     42      57      32 
    7 en_GB   249     181     303     187 
    8 es_ES   182     133     418     150 
    9 fr_FR   671     43      19      141 
    10 it_IT   288     161     284     180 
    11 ja_JP   726     0       11      0 
    12 nl_NL   341     158     234     187 
    13 ru_RU   635     40      58      77 
    14 tr_TR   3       59      671     49 
    15 zh_CN   0       5       728     6 
     5ca_CA   500     53      198     129 
     6de_DE   649     53      49      10 
     7el_GR   638     51      62      29 
     8en_GB   252     192     307     183 
     9es_ES   184     137     430     148 
     10fr_FR   675     55      21      136 
     11it_IT   291     172     288     176 
     12ja_JP   723     13      15      2 
     13nl_NL   345     168     238     183 
     14ru_RU   639     51      61      72 
     15tr_TR   3       60      688     49 
     16zh_CN   0       5       746     6 
    1617 
  • trunk/locale/base/messages.pot

    r1694 r1701  
    99"Project-Id-Version: PACKAGE VERSION\n" 
    1010"Report-Msgid-Bugs-To: translations at ampache.org\n" 
    11 "POT-Creation-Date: 2008-08-25 13:02+0900\n" 
     11"POT-Creation-Date: 2008-08-27 09:56+0900\n" 
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
     
    13271327 
    13281328#: ../../templates/show_install_config.inc.php:32 
    1329 #: ../../templates/show_install_lang.inc.php:32 
     1329#: ../../templates/show_install_lang.inc.php:33 
    13301330#: ../../templates/show_install.inc.php:32 
    13311331#: ../../templates/show_install_account.inc.php:32 
     
    13341334 
    13351335#: ../../templates/show_install_config.inc.php:38 
    1336 #: ../../templates/show_install_lang.inc.php:39 
     1336#: ../../templates/show_install_lang.inc.php:40 
    13371337#: ../../templates/show_install.inc.php:40 
    13381338#: ../../templates/show_install_account.inc.php:39 
     
    13441344 
    13451345#: ../../templates/show_install_config.inc.php:41 
    1346 #: ../../templates/show_install_lang.inc.php:42 
     1346#: ../../templates/show_install_lang.inc.php:43 
    13471347#: ../../templates/show_install.inc.php:43 
    13481348#: ../../templates/show_install_account.inc.php:42 
     
    13521352 
    13531353#: ../../templates/show_install_config.inc.php:42 
    1354 #: ../../templates/show_install_lang.inc.php:43 
     1354#: ../../templates/show_install_lang.inc.php:44 
    13551355#: ../../templates/show_install.inc.php:44 
    13561356msgid "" 
     
    13601360 
    13611361#: ../../templates/show_install_config.inc.php:44 
    1362 #: ../../templates/show_install_lang.inc.php:46 
     1362#: ../../templates/show_install_lang.inc.php:47 
    13631363#: ../../templates/show_install.inc.php:47 
    13641364#: ../../templates/show_install_account.inc.php:45 
     
    15621562msgstr "" 
    15631563 
    1564 #: ../../templates/show_install_lang.inc.php:37 
     1564#: ../../templates/show_install_lang.inc.php:38 
     1565#: ../../templates/show_install_lang.inc.php:52 
    15651566#: ../../templates/show_install.inc.php:38 
    15661567msgid "Requirements" 
    15671568msgstr "" 
    15681569 
    1569 #: ../../templates/show_install_lang.inc.php:72 
     1570#: ../../templates/show_install_lang.inc.php:51 
     1571msgid "System Checks" 
     1572msgstr "" 
     1573 
     1574#: ../../templates/show_install_lang.inc.php:53 
     1575msgid "PHP Version:" 
     1576msgstr "" 
     1577 
     1578#: ../../templates/show_install_lang.inc.php:63 
     1579msgid "Mysql for PHP:" 
     1580msgstr "" 
     1581 
     1582#: ../../templates/show_install_lang.inc.php:77 
     1583msgid "PHP Session Support:" 
     1584msgstr "" 
     1585 
     1586#: ../../templates/show_install_lang.inc.php:87 
     1587msgid "PHP ICONV Support:" 
     1588msgstr "" 
     1589 
     1590#: ../../templates/show_install_lang.inc.php:97 
     1591msgid "PHP PCRE Support:" 
     1592msgstr "" 
     1593 
     1594#: ../../templates/show_install_lang.inc.php:107 
     1595msgid "PHP PutENV Support:" 
     1596msgstr "" 
     1597 
     1598#: ../../templates/show_install_lang.inc.php:120 
     1599msgid "PHP Safe Mode:" 
     1600msgstr "" 
     1601 
     1602#: ../../templates/show_install_lang.inc.php:130 
     1603msgid "Optional" 
     1604msgstr "" 
     1605 
     1606#: ../../templates/show_install_lang.inc.php:131 
     1607msgid "PHP GetText Support:" 
     1608msgstr "" 
     1609 
     1610#: ../../templates/show_install_lang.inc.php:140 
     1611msgid "PHP Mbstring Support:" 
     1612msgstr "" 
     1613 
     1614#: ../../templates/show_install_lang.inc.php:152 
     1615msgid "Choose installation language." 
     1616msgstr "" 
     1617 
     1618#: ../../templates/show_install_lang.inc.php:173 
    15701619msgid "Start configuration" 
     1620msgstr "" 
     1621 
     1622#: ../../templates/show_install_lang.inc.php:179 
     1623msgid "Ampache does not <strong>run</strong> correctly by this server." 
     1624msgstr "" 
     1625 
     1626#: ../../templates/show_install_lang.inc.php:180 
     1627msgid "Please contact your server administrator, and fix them." 
    15711628msgstr "" 
    15721629 
     
    23032360#: ../../templates/show_random.inc.php:52 
    23042361#, php-format 
    2305 msgid "%s minute" 
    2306 msgid_plural "%s minutes" 
     2362msgid "%d minute" 
     2363msgid_plural "%d minutes" 
    23072364msgstr[0] "" 
    23082365msgstr[1] "" 
     
    23142371#: ../../templates/show_random.inc.php:57 
    23152372#, php-format 
    2316 msgid "%s hour" 
    2317 msgid_plural "%s hours" 
     2373msgid "%d hour" 
     2374msgid_plural "%d hours" 
    23182375msgstr[0] "" 
    23192376msgstr[1] "" 
     
    24212478#, php-format 
    24222479msgid "%s by %s" 
    2423 msgid_plural "%ss by %s" 
    2424 msgstr[0] "" 
    2425 msgstr[1] "" 
     2480msgstr "" 
    24262481 
    24272482#: ../../templates/show_artist.inc.php:35 
     
    34053460msgstr "" 
    34063461 
    3407 #: ../../admin/mail.php:84 
     3462#: ../../admin/mail.php:90 
    34083463msgid "E-mail Sent" 
    34093464msgstr "" 
    34103465 
    3411 #: ../../admin/mail.php:85 
     3466#: ../../admin/mail.php:91 
    34123467msgid "Your E-mail was successfully sent." 
    34133468msgstr "" 
     
    36363691msgstr "" 
    36373692 
    3638 #: ../../bin/print_tags.inc:67 
     3693#: ../../bin/print_tags.inc:66 
    36393694msgid "" 
    36403695"[print_tags.php.inc]\n" 
     
    36453700msgstr "" 
    36463701 
    3647 #: ../../bin/print_tags.inc:73 
     3702#: ../../bin/print_tags.inc:72 
    36483703msgid "Filename:" 
    36493704msgstr "" 
  • trunk/locale/ca_CA/LC_MESSAGES/messages.po

    r1694 r1701  
    1818"Project-Id-Version: Ampache 3.5.0\n" 
    1919"Report-Msgid-Bugs-To: translations at ampache.org\n" 
    20 "POT-Creation-Date: 2008-08-25 10:44+0900\n" 
     20"POT-Creation-Date: 2008-08-27 09:09+0900\n" 
    2121"PO-Revision-Date: 2008-01-04 16:41+0100\n" 
    2222"Last-Translator: Guillem Lluch Moll <glluch@ya.com>\n" 
     
    13581358 
    13591359#: ../../templates/show_install_config.inc.php:32 
    1360 #: ../../templates/show_install_lang.inc.php:32 
     1360#: ../../templates/show_install_lang.inc.php:33 
    13611361#: ../../templates/show_install.inc.php:32 
    13621362#: ../../templates/show_install_account.inc.php:32 
     
    13651365 
    13661366#: ../../templates/show_install_config.inc.php:38 
    1367 #: ../../templates/show_install_lang.inc.php:39 
     1367#: ../../templates/show_install_lang.inc.php:40 
    13681368#: ../../templates/show_install.inc.php:40 
    13691369#: ../../templates/show_install_account.inc.php:39 
     
    13781378 
    13791379#: ../../templates/show_install_config.inc.php:41 
    1380 #: ../../templates/show_install_lang.inc.php:42 
     1380#: ../../templates/show_install_lang.inc.php:43 
    13811381#: ../../templates/show_install.inc.php:43 
    13821382#: ../../templates/show_install_account.inc.php:42 
     
    13881388 
    13891389#: ../../templates/show_install_config.inc.php:42 
    1390 #: ../../templates/show_install_lang.inc.php:43 
     1390#: ../../templates/show_install_lang.inc.php:44 
    13911391#: ../../templates/show_install.inc.php:44 
    13921392msgid "" 
     
    13981398 
    13991399#: ../../templates/show_install_config.inc.php:44 
    1400 #: ../../templates/show_install_lang.inc.php:46 
     1400#: ../../templates/show_install_lang.inc.php:47 
    14011401#: ../../templates/show_install.inc.php:47 
    14021402#: ../../templates/show_install_account.inc.php:45 
     
    16041604msgstr "Temps del catàleg" 
    16051605 
    1606 #: ../../templates/show_install_lang.inc.php:37 
     1606#: ../../templates/show_install_lang.inc.php:38 
     1607#: ../../templates/show_install_lang.inc.php:52 
    16071608#: ../../templates/show_install.inc.php:38 
    16081609msgid "Requirements" 
    16091610msgstr "Requisits" 
    16101611 
    1611 #: ../../templates/show_install_lang.inc.php:72 
     1612#: ../../templates/show_install_lang.inc.php:51 
     1613#, fuzzy 
     1614msgid "System Checks" 
     1615msgstr "Sistema" 
     1616 
     1617#: ../../templates/show_install_lang.inc.php:53 
     1618#, fuzzy 
     1619msgid "PHP Version:" 
     1620msgstr "Versió PHP" 
     1621 
     1622#: ../../templates/show_install_lang.inc.php:63 
     1623#, fuzzy 
     1624msgid "Mysql for PHP:" 
     1625msgstr "Mysql per PHP" 
     1626 
     1627#: ../../templates/show_install_lang.inc.php:77 
     1628#, fuzzy 
     1629msgid "PHP Session Support:" 
     1630msgstr "Sessió de PHP suportada" 
     1631 
     1632#: ../../templates/show_install_lang.inc.php:87 
     1633#, fuzzy 
     1634msgid "PHP ICONV Support:" 
     1635msgstr "PHP ICONV suportat" 
     1636 
     1637#: ../../templates/show_install_lang.inc.php:97 
     1638#, fuzzy 
     1639msgid "PHP PCRE Support:" 
     1640msgstr "Suport PHP PCRE" 
     1641 
     1642#: ../../templates/show_install_lang.inc.php:107 
     1643#, fuzzy 
     1644msgid "PHP PutENV Support:" 
     1645msgstr "Suport PHP PutENV" 
     1646 
     1647#: ../../templates/show_install_lang.inc.php:120 
     1648msgid "PHP Safe Mode:" 
     1649msgstr "" 
     1650 
     1651#: ../../templates/show_install_lang.inc.php:130 
     1652#, fuzzy 
     1653msgid "Optional" 
     1654msgstr "Opcions" 
     1655 
     1656#: ../../templates/show_install_lang.inc.php:131 
     1657#, fuzzy 
     1658msgid "PHP GetText Support:" 
     1659msgstr "Suport PHP PutENV" 
     1660 
     1661#: ../../templates/show_install_lang.inc.php:140 
     1662#, fuzzy 
     1663msgid "PHP Mbstring Support:" 
     1664msgstr "Sessió de PHP suportada" 
     1665 
     1666#: ../../templates/show_install_lang.inc.php:152 
     1667msgid "Choose installation language." 
     1668msgstr "" 
     1669 
     1670#: ../../templates/show_install_lang.inc.php:173 
    16121671msgid "Start configuration" 
    16131672msgstr "Configuració inicial" 
     1673 
     1674#: ../../templates/show_install_lang.inc.php:179 
     1675msgid "Ampache does not <strong>run</strong> correctly by this server." 
     1676msgstr "" 
     1677 
     1678#: ../../templates/show_install_lang.inc.php:180 
     1679msgid "Please contact your server administrator, and fix them." 
     1680msgstr "" 
    16141681 
    16151682#: ../../templates/rightbar.inc.php:28 
     
    23622429#: ../../templates/show_random.inc.php:52 
    23632430#, fuzzy, php-format 
    2364 msgid "%s minute" 
    2365 msgid_plural "%s minutes" 
     2431msgid "%d minute" 
     2432msgid_plural "%d minutes" 
    23662433msgstr[0] "Minuts" 
    23672434msgstr[1] "Minuts" 
     
    23732440#: ../../templates/show_random.inc.php:57 
    23742441#, fuzzy, php-format 
    2375 msgid "%s hour" 
    2376 msgid_plural "%s hours" 
     2442msgid "%d hour" 
     2443msgid_plural "%d hours" 
    23772444msgstr[0] "hora" 
    23782445msgstr[1] "hora" 
     
    24802547#, php-format 
    24812548msgid "%s by %s" 
    2482 msgid_plural "%ss by %s" 
    2483 msgstr[0] "" 
    2484 msgstr[1] "" 
     2549msgstr "" 
    24852550 
    24862551#: ../../templates/show_artist.inc.php:35 
     
    34833548msgstr "Inici de Reproducció local fallada" 
    34843549 
    3485 #: ../../admin/mail.php:84 
     3550#: ../../admin/mail.php:90 
    34863551msgid "E-mail Sent" 
    34873552msgstr "Enviar e-mail" 
    34883553 
    3489 #: ../../admin/mail.php:85 
     3554#: ../../admin/mail.php:91 
    34903555msgid "Your E-mail was successfully sent." 
    34913556msgstr "El teu e-mail s'ha enviat correctament" 
     
    37163781msgstr "Finalitzat la cerca de portades" 
    37173782 
    3718 #: ../../bin/print_tags.inc:67 
     3783#: ../../bin/print_tags.inc:66 
    37193784msgid "" 
    37203785"[print_tags.php.inc]\n" 
     
    37303795"            \n" 
    37313796 
    3732 #: ../../bin/print_tags.inc:73 
     3797#: ../../bin/print_tags.inc:72 
    37333798msgid "Filename:" 
    37343799msgstr "Nom de l'arxiu:" 
     
    41314196#~ msgstr "Streaming" 
    41324197 
    4133 #~ msgid "System" 
    4134 #~ msgstr "Sistema" 
    4135  
    41364198#~ msgid "XML-RPC" 
    41374199#~ msgstr "XML-RPC" 
  • trunk/locale/de_DE/LC_MESSAGES/messages.po

    r1694 r1701  
    1111"Project-Id-Version: messages\n" 
    1212"Report-Msgid-Bugs-To: translations at ampache.org\n" 
    13 "POT-Creation-Date: 2008-08-25 12:59+0900\n" 
     13"POT-Creation-Date: 2008-08-27 09:09+0900\n" 
    1414"PO-Revision-Date: 2008-08-24 09:26+0200\n" 
    1515"Last-Translator: Nikolai Försterling <devel@fosternet.de>\n" 
     
    13561356 
    13571357#: ../../templates/show_install_config.inc.php:32 
    1358 #: ../../templates/show_install_lang.inc.php:32 
     1358#: ../../templates/show_install_lang.inc.php:33 
    13591359#: ../../templates/show_install.inc.php:32 
    13601360#: ../../templates/show_install_account.inc.php:32 
     
    13631363 
    13641364#: ../../templates/show_install_config.inc.php:38 
    1365 #: ../../templates/show_install_lang.inc.php:39 
     1365#: ../../templates/show_install_lang.inc.php:40 
    13661366#: ../../templates/show_install.inc.php:40 
    13671367#: ../../templates/show_install_account.inc.php:39 
     
    13771377 
    13781378#: ../../templates/show_install_config.inc.php:41 
    1379 #: ../../templates/show_install_lang.inc.php:42 
     1379#: ../../templates/show_install_lang.inc.php:43 
    13801380#: ../../templates/show_install.inc.php:43 
    13811381#: ../../templates/show_install_account.inc.php:42 
     
    13871387 
    13881388#: ../../templates/show_install_config.inc.php:42 
    1389 #: ../../templates/show_install_lang.inc.php:43 
     1389#: ../../templates/show_install_lang.inc.php:44 
    13901390#: ../../templates/show_install.inc.php:44 
    13911391msgid "" 
     
    13971397 
    13981398#: ../../templates/show_install_config.inc.php:44 
    1399 #: ../../templates/show_install_lang.inc.php:46 
     1399#: ../../templates/show_install_lang.inc.php:47 
    14001400#: ../../templates/show_install.inc.php:47 
    14011401#: ../../templates/show_install_account.inc.php:45 
     
    16101610msgstr "Katalog Spielzeit" 
    16111611 
    1612 #: ../../templates/show_install_lang.inc.php:37 
     1612#: ../../templates/show_install_lang.inc.php:38 
     1613#: ../../templates/show_install_lang.inc.php:52 
    16131614#: ../../templates/show_install.inc.php:38 
    16141615msgid "Requirements" 
    16151616msgstr "Anforderungen" 
    16161617 
    1617 #: ../../templates/show_install_lang.inc.php:72 
     1618#: ../../templates/show_install_lang.inc.php:51 
     1619msgid "System Checks" 
     1620msgstr "" 
     1621 
     1622#: ../../templates/show_install_lang.inc.php:53 
     1623#, fuzzy 
     1624msgid "PHP Version:" 
     1625msgstr "PHP Version" 
     1626 
     1627#: ../../templates/show_install_lang.inc.php:63 
     1628#, fuzzy 
     1629msgid "Mysql for PHP:" 
     1630msgstr "MySQL für PHP" 
     1631 
     1632#: ../../templates/show_install_lang.inc.php:77 
     1633#, fuzzy 
     1634msgid "PHP Session Support:" 
     1635msgstr "PHP Session Unterstützung" 
     1636 
     1637#: ../../templates/show_install_lang.inc.php:87 
     1638#, fuzzy 
     1639msgid "PHP ICONV Support:" 
     1640msgstr "PHP ICONV Unterstützung" 
     1641 
     1642#: ../../templates/show_install_lang.inc.php:97 
     1643#, fuzzy 
     1644msgid "PHP PCRE Support:" 
     1645msgstr "PHP PCRE Unterstützung" 
     1646 
     1647#: ../../templates/show_install_lang.inc.php:107 
     1648#, fuzzy 
     1649msgid "PHP PutENV Support:" 
     1650msgstr "PHP PutENV Unterstützung" 
     1651 
     1652#: ../../templates/show_install_lang.inc.php:120 
     1653#, fuzzy 
     1654msgid "PHP Safe Mode:" 
     1655msgstr "Sicherheitsmodus" 
     1656 
     1657#: ../../templates/show_install_lang.inc.php:130 
     1658#, fuzzy 
     1659msgid "Optional" 
     1660msgstr "Optionen" 
     1661 
     1662#: ../../templates/show_install_lang.inc.php:131 
     1663#, fuzzy 
     1664msgid "PHP GetText Support:" 
     1665msgstr "Gettext Unterstützung" 
     1666 
     1667#: ../../templates/show_install_lang.inc.php:140 
     1668#, fuzzy 
     1669msgid "PHP Mbstring Support:" 
     1670msgstr "PHP Session Unterstützung" 
     1671 
     1672#: ../../templates/show_install_lang.inc.php:152 
     1673msgid "Choose installation language." 
     1674msgstr "" 
     1675 
     1676#: ../../templates/show_install_lang.inc.php:173 
    16181677msgid "Start configuration" 
    16191678msgstr "Starte Konfiguration"