RE: translating in different languages

From: Date: Mon, 05 Mar 2001 06:10:42 +0000
Subject: RE: translating in different languages
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-296@lists.php.net to get a copy of this message
Hi, Smarty is a template system, so I don't really see why it should be able to handle translation as well. As with OOP, 'keep it simple' :). Anyway, there's no problem at all with using stphp and smarty together, for instance. Or using several template files (file_en.tpl, file_fr.tpl, file_de.tpl) for different languages. Or am I missing the point here ? > -----Message d'origine----- > De : Maciek Uhlig [mailto:muhlig@us.edu.pl] > Envoyé : dimanche 4 mars 2001 21:41 > À : Roel Vanhout; smarty@lists.ispi.net > Objet : [smarty] RE: translating in different languages > > > First, thank you for mentioning Polish in your text :-) > > Second, I think it's not a flexible method. I'm in no way a specialist in > translations, but you could find the careful description of the problem of > translating at http://stphp.sourceforge.net . In brief, to > correctly > translate a string from English to Polish simple string > substitution is not > enough. You need to supply a function, which allows the translator to > manipulate texts. Just look at the very simple example (life is more > complicated than that): > > in English: > > there is 1 apple in the basket > there are 2 apples in the basket > there are 5 apples in the basket > > in Polish, respectively: > > w koszyku jest 1 jablko /* look at 'jest' */ > w koszyku sa 2 jablka /* look at 'sa' */ > w koszyku jest 5 jablek /* look at 'jest' */ > > Funny, eh? Do you feel it? > > Third, the real problem is not related to Smarty at all. > > Maciek > > > -----Original Message----- > > From: Roel Vanhout [mailto:roel@2e-systems.com] > > Sent: Sunday, March 04, 2001 9:25 PM > > To: smarty@lists.ispi.net > > Subject: [smarty] translating in different languages > > > > > > Hi, > > > > I'm in the process of adding multi-language support to Smarty. I have > > written a preliminary design text on this, which I have attached. I also > > have code to implement the described functionality, but I haven't > > attached it yet as I want to refine it a bit first before releasing. I > > was hoping someone would have some time to read this text, and give some > > thought/remarks about it. I think it is configurable enough for pretty > > much every situation, but if you think it can be made more generic, let > > me know. I hope to be ready with the rest of the code tomorrow or the > > day after, I just wanted to get this text out to get some feedback on > > it. > > > > cheers, > > > > roel > > > > > --- > You are currently subscribed to smarty as: alain@nvision.lu > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ >

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