Smarty Internationalization- Best Methods
Posted: Wed Jul 07, 2004 12:08 pm
Hi. I want to make my installation of smarty internationalized. I want it so that the user can pick from a drop down menu , which language he wishes to view the site in, then when he does, the site will see whatever language he picks, then SWAP all the words, headings,formatting of the page/site with the words from the respective language file. Each language file should contain all variables to store the words of each desired language, aka:
FRENCH:
This is an example of one of the language files. I need to make all headings, titles and words on my templates into Variable calls so that it can swap the variables with whatever language is desired.
Now, this is not a small process, and I dont expect for someone to come up with some sort of answer. I am just looking for advise on where to start, or maybe if someone has done something like this before maybe could offer some advise on internationizaion, or EVEN if you have any thoughts on how to make all my titles, headings and words into variable calls , gimme some feedback. Smarty Enthuiseassts!!!
?>
FRENCH:
Code: Select all
<?php
$string['active'] = 'Actif';
$string['activities'] = 'Activités';
$string['activity'] = 'Activité';
$string['activityclipboard'] = 'Activité en cours de déplacement : <b>$a</b>';
$string['activityiscurrentlyhidden'] = 'Désolé, cette activité n''est pas visible actuellement';
$string['activitymodule'] = 'Module d''activité';
$string['activityreport'] = 'Rapport d''activité';
$string['activityselect'] = 'Sélectionner cette activité pour la déplacer';
$string['activitysince'] = 'Activités observées';
$string['add'] = 'Ajouter';
$string['addadmin'] = 'Désigner comme administrateur';
$string['addcreator'] = 'Désigner comme responsable de cours';
$string['added'] = '$a ajouté(e)';
$string['addedtogroup'] = 'Ajouté au groupe $a';
$string['addedtogroupnot'] = 'Non ajouté au groupe $a';
$string['addedtogroupnotenrolled'] = 'Non ajouté au groupe $a, parce que non inscrit au cours';
$string['addinganew'] = 'Ajouter un(e) $a';
$string['addinganewto'] = 'Ajouter un(e) $a->what à $a->to';
$string['addingdatatoexisting'] = 'Ajout à des données existantes';
$string['addnewcategory'] = 'Ajouter une discipline';
$string['addnewcourse'] = 'Ajouter un cours';
?>This is an example of one of the language files. I need to make all headings, titles and words on my templates into Variable calls so that it can swap the variables with whatever language is desired.
Now, this is not a small process, and I dont expect for someone to come up with some sort of answer. I am just looking for advise on where to start, or maybe if someone has done something like this before maybe could offer some advise on internationizaion, or EVEN if you have any thoughts on how to make all my titles, headings and words into variable calls , gimme some feedback. Smarty Enthuiseassts!!!
?>