Multilangual support for websites

From: Date: Fri, 31 May 2002 09:57:50 +0000
Subject: Multilangual support for websites
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4478@lists.php.net to get a copy of this message
Are there any best practices or code-examples on supporting multilangual templates? The kind of solution I'm working on at the moment is as follows: [ show_users.tpl ] include [ app_header.tpl ] include [ app_footer.tpl ] Every tpl contains certain language-specific elements. However, I don't like to create a tpl for every language (and any browser). Instead I created a Smarty-function that retrieves content for the language elements in the requested language. This function uses tpl-specific files for caching, which are exported managed from a central database. This database is managed by the client using a webfrontend. In this way * templates are not language-specific, just define layout and interaction * language elements are bind to a specific (included) template If anyone is busy working on the same topic and like to exchange thoughts, feel free to toss your ideas this way =) Grtz!

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