Smarty and SmartyMultilanguageSupport

From: Date: Tue, 06 May 2003 13:32:38 +0000
Subject: Smarty and SmartyMultilanguageSupport
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9483@lists.php.net to get a copy of this message
Hello, with some help from André (thanks), I got the "SmartyMultilanguageSupport" (http://smarty.incutio.com/?page=SmartyMultilanguageSupport) working. I got two little questions and I could anybody help me please? =============================================== 1. I Try to change the language, when I hit a link: So I use $smarty = new smartyML($_GET[language]); instead of $smarty = new smartyML(); THE Problem: If he visits the next site the language changes back to the default language. ============================================== 2. I Try to change some of the "Preferences" in the script (e.g. the default language) ... var $_translationTable; // currently loaded translation table var $_supportedLanguages; // array of all supported languages var $_defaultLocale; // the default language var $_currentLanguage; // currently loaded language var $_languageTable; // array of language to file associations var $_loadedTranslationTables; // array of all loaded translation tables ... I try to change these values in the .php File or the .tpl file, but I'm always use the wrong "commands" and it wont do what I want. Could you please tell me how to call the values in the right way? Does anybody understand what I want to ask you? *g* Thanks anyway! Rene

« previous php.smarty.general (#9483) next »