Forum Moderators: coopster

Message Too Old, No Replies

template engine and multi language

         

hozyali

7:47 am on Aug 3, 2010 (gmt 0)

10+ Year Member



Hello,

We have an existing web based application which is written in traditional php.

I am now implementing a template engine into and also want to implement multi language support.

I wanted to know a few things before I actually start.

1- I am using TinyButStrong template engine. I personally found is easier. Is it a good one for others out there too?

2- For multi-lang, what is the most efficient way, static php language files or mysql database?

3- I am just fluent in English, so is there a very good online translator available to translate the English stuff into french and spanish? I tried Google translator but found it giving different results comparing to Yahoo BabelFish. So I am not sure which one is the most accurate.

Please help.

Thanks

enigma1

9:02 am on Aug 3, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



2- For multi-lang, what is the most efficient way, static php language files or mysql database?

You will need to do both. The database that keeps the dynamic content must handle switching languages and retrieving the right content and then the language files/folders for any pages/modules will also require dynamic switching.

Assuming you have a proper user interface and proper language structure you shouldn't need to do translations because you leave that to the user of the application (to create languages and modify the content/file strings).

hozyali

10:18 am on Aug 3, 2010 (gmt 0)

10+ Year Member



thanks enigma1,

well, my site is not user driven contents. its a web based application which sells tickets for listed events.

the content is entered by administrator and special permitted members only.

I know the database will have itself language specified data depending what member or admin is entering. But I wanted to know about the static language contents.

thanks

penders

10:45 am on Aug 3, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



3- I am just fluent in English, so is there a very good online translator available to translate the English stuff into french and spanish? I tried Google translator but found it giving different results comparing to Yahoo BabelFish. So I am not sure which one is the most accurate.


For any kind of professional translation you need to use real people.