RE: [SMARTY] translations
| From: | Gary Loescher | Date: | Tue, 02 Jul 2002 01:56:52 +0000 |
| Subject: | RE: [SMARTY] translations | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5155@lists.php.net to get a copy of this message | ||
Step 1: Format hard drive.
Step 2: Install Linux.
Step 3: Make symlink.
;)
Gary
>-----Original Message-----
>From: Travis Low [mailto:travis@dawnstar.org]
>Sent: Monday, July 01, 2002 8:43 PM
>To: Monte Ohrt
>Cc: Smarty List
>Subject: Re: [SMARTY] translations
>
>
>How do I make a "symlink"? I right-clicked the file
>and selected "Properties",
>but I don't see it anywhere. It isn't in the
>"File->New" menu either.
>
>;)
>
>Travis
>
>Monte Ohrt wrote:
>> There probably isn't a way to do it "best", it
>depends on your needs.
>> For our (simple) purposes we use config files.
>>
>> example:
>>
>> lang_en.conf
>> lang_fr.conf
>> lang_de.conf
>> lang.conf -> lang_en.conf
>>
>>
>> We symlink the desired language file and load that in
>the templates. If
>> you need multiple languages available (site
>frontends), you could use a
>> cookie or session variable to keep track of which
>language file to use.
>>
>> The only thing we have in our language files is
>button/link names and
>> short blurbs of text. If you want to maintain
>multi-languages for all
>> the content of a site, something a bit more
>sophisticated may be in
>> order, more than just Smarty.
>>
>> Monte
>>
>> Robin Ericsson wrote:
>>
>>> Hi,
>>>
>>>
>>> I've been searching the archives, and found several
>ways of doing
>>> translations and have a site translated into
>different languages.
>>>
>>> The way I was thinking was using config file, but
>the pre-filter seemed
>>> nice as well, so I'm att little double-minded.
>>>
>>> Are there any "official" thoughts on this, or should
>each person use
>>> what the application demands :)
>>>
>>>
>>> best regards
>>> Robin
>>>
>>>
>>
>>
>
>
>--
>Travis Low
><mailto:travis@dawnstar.org>
><http://dawnstar.org/travis>
>
>
>--
>Smarty General Mailing List (http://smarty.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>