Re[2]: [SMARTY] Internationalization -- again?!

From: Date: Tue, 06 Aug 2002 17:57:12 +0000
Subject: Re[2]: [SMARTY] Internationalization -- again?!
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5606@lists.php.net to get a copy of this message
"Hendy Irawan" <ceefour@gauldong.net> wrote in message news:4817310250.20020731133705@gauldong.net... > There is only one single *source*. From one source we will have > several different *builds*, based on language (maybe on some other > criteria). It's just like when you develop a software, your source is > only one, but you can build different programs based on several > defines: release or debug, which languages, which libraries to use, > etc. > > So you modify the sources, then "compile" language-specific sites. > These sites are very fast and does not have ANY overhead due to > localization. The only overhead is that you have to compile the sites > everytime you want to make a change. But this is only for production > use. For development/debugging, there will be an on-demand compilation > only for files that are changed. > > >> http://www.binarycloud.com/ > Visit this site. Download the PDF specs. Just skip right into > Localization,... I think it's really great. Ok, I agree with you that this is the best approach, but how do I implement it? I understand I have a template with the variable language dependant strings inside {} just like any other template. The translation strings should come form a differente source (config files, PHP vars?). Then I should compile it once for every language with differents compile id each, so the compiled templates would end in different directories (one for each supported language). So far so good, but the compiled templates all look the same, they still use variables in place of the translated strings. There should be a way to transform these variables into literals in the resulting compiled template, but I don't know how. I have looked into the binaryclouds pdf, but the bcc string compiler part is still empty. Thanks, Ale.

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