By: RwD
Date: 2005-10-06
Time: 14:49
|
i18n, l10n; gettext and tbs
Hi Skrol29,
I was wondering how exactly to use internationalization (i18n) and possibly localization (l10n) with tbs. I found in a thread that you say "TinyButStrong gives several useful features to make easily Multilanguage applications.
- The MergeField() method enables you to merge a group of fields using a custom user function which is able to get field’s parameters and sub-names.
- You can also define a known Html charset that will be used to merge data. If you wan to use an unsupported charset, you can define a custom user function instead.
- You can use parameter 'local' to change the date/Number format displaying, another issue is to merge the formats first, and then the data."
I remember you gave an example of this in another thread which I cannot find.
But my question is what would be the optimum method of doing this? Do you have some examples perhaps??
|
By: Skrol29
Date: 2005-10-06
Time: 15:00
|
Re: i18n, l10n; gettext and tbs
Hi RwD,
There is an example at the Tips & Tricks forum.
There is no optimum method because there are several technics to perform multilanguage, and they are independant from the Template System. Each coder has its own way of doing it.
For example, you can have a table with id containing all label's translations. You can have translations stored into text files organized by pages Id instead of label Id, which is a different technic.
Some coders prefere to have the transations into the template itself.
|
By: RwD
Date: 2005-10-07
Time: 08:59
|
Re: i18n, l10n; gettext and tbs
Ow yeah, that's where I saw it. I forgot searching the forum doesn't find stuff in all forums.
i18n and l10n are only about gettext, so one method that is the same for everybody... With regards to static website text it is a good way to handle stuff...
|
|
Posting in progress.
Please wait...
|