Jump to content

Recommended Posts

Hmm...you could just have two tables, each with all your pages stored in it, but in different languages. The client could then choose their language, which sets a cookie. If the cookie is one language or doesn't exist, do a language, if it does, do the other.

 

Just  a suggestion. However...storing pages ina  database is a bit risky. Databases are a lot easier to hack than flat files.

storing pages ina  database is a bit risky. Databases are a lot easier to hack than flat files.

 

Risky? Not really, if you know what you're doing and secure your system...

 

SMARTY templates allow you to add in multi-lingual support, not by default but there are classes available you can add to give that support. We use it at work and our website is available in about 10 languages, I have no complaints. Generally the idea is in your templates you encase text in translation tags, something like {t}hello{/t}, and then the translations are looked up from an XML file or ".po" file. Definitely beats having several versions of the same file...

 

Regards

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.