Jump to content

Translation multilingual (de, fr, es, ....)


gertdorn

Recommended Posts

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';

 

}

}

?>

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.