gertdorn Posted December 9, 2007 Share Posted December 9, 2007 Hi all. I try to develop my webbpage in different languages. If i use french so i have always a problem with quotes and special characters. "êtes annoncé pour un compte sur des Alp un transit cargaison. utilisez l'adresse de " I find SPIP but it looks like i can't use it with ZEND and DB2. I find gettext discription, but its not working with Zend. Did you have a solution how can i translate my text with Zed in different languages ? Thanks for help gert My conzept looks like this so i can use an format my text once a time in my scripts. <?php function login(){ if($_SESSION['LANG'] == 'de') { $GLOBALS['login'] = '<font color="red">Fehler bei LOGIN</font>'; $GLOBALS['pw'] = ' Password'; }elseif ($_SESSION['LANG'] == 'it') { $GLOBALS['login'] = 'Ancora prova ?<br>'; $GLOBALS['pw'] = '<font color="red">Errore con LOGIN</font>'; }elseif ($_SESSION['LANG'] == 'en') { $GLOBALS['login'] = '<font color="red">Error with login</font>'; $GLOBALS['pw'] = 'password'; }elseif ($_SESSION['LANG'] == 'fr') { $GLOBALS['login'] = 'Essayer encore ?<br>'; $GLOBALS['pw'] = 'Mot de passe'; }elseif ($_SESSION['LANG'] == 'es') { $GLOBALS['login'] = '<font color="red">Error con LOGIN</font>'; $GLOBALS['pw'] = 'Contraseña'; } } ?> Quote Link to comment Share on other sites More sharing options...
CaseyC1 Posted December 9, 2007 Share Posted December 9, 2007 I use a shopping cart program called "CubeCart". There is a drop down menu on the main page which let's the visitor choose the language. Once he chooses, the "Cart" language changes to that language. They do it by having duplicate text strings in each language in a different folder for each language. You can get a look at it by going to www.cubecart.com . Click on the "Free unlimited Trial" link under "Version 3" to download. The source is not protected and you are permitted to modify it as you wish. That should give you some food for thought. Hope this helps, Klaus Cook Houston, Texas Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.