|
SV: [SMARTY] Internationalization: msg#00377php.smarty.general
Hi, I'm not sure this is an answer to your question, however this is what I'm doing, and you might get some idea, or the other way around: I wanted to have a parallel tree for the different language versions. Based on the url the DB returns a specific content_id and based on a session var the content_id requests english, danish or whater language text. Doing so I have only one tree. Then the problem was that different language versions may very well require small changes to the template. Like you I wanted to use the same basic templates. For instance some language may not have some functionality available, then I must not show the corresponding links or boxes. For every piece of design corresponding to things that might be different in the different languages I design subtemplates to be included (or not). These are fetched by a db resource handler. That is, these are not files but DB records. In this way they get only included if they are defined in the database as part of that language implementation. Paolo > -----Oprindelig meddelelse----- > Fra: Andrew S. Nagy [mailto:asnagy@xxxxxxxxxxx] > Sendt: 27. januar 2003 22:12 > Til: smarty-general@xxxxxxxxxxxxx > Emne: [SMARTY] Internationalization > > > I was reading a thread about internationalization that took place in July > and august of 2002, I am trying to design a large scale web application > using multiple languages. I don't want to have a template for each > language, because that can get very messy considering I have two sets of > templates already for 2 different look and feels. > > Has anyone accomplished this feat? I was wondering if anyone has > any ideas > on an implementation of gettext for smarty? > For now I am planning to create a large associative array, but it would be > nice to follow some sort of standard. Has anyone tried running gettext on > tpl files? > > I tried looking into the binary cloud information, but I couldn't find too > much in the documentation. Maybe I'll download it and take a look at the > code. > > Could this be a new possible feature in smarty, a gettext implementation? > > > > ____________________________________________ > Andrew S. Nagy > Lead Applications Developer > Living SchoolBook > (315) 443-3450 > http://lsb.syr.edu > > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [SMARTY] foreach and multidimensional arrays: 00377, m guckeyson |
|---|---|
| Next by Date: | Re: [SMARTY] Internationalization: 00377, Monte Ohrt |
| Previous by Thread: | [SMARTY] Internationalizationi: 00377, Andrew S. Nagy |
| Next by Thread: | Re: [SMARTY] Internationalization: 00377, Monte Ohrt |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |