Jump to content

Language translations best practice?


OldWolf

Recommended Posts

Howdy all,

 

I'm working on a website that needs to support several different languages.  There is a good chance of a lot of load on the website, so I'd like the design to be fairly sleek.  What is the best method I could apply for different languages?

 

Here's my intial thought, feel free to explain why this is a bad idea.  :)

 

Class lang:

- stores the lang strings in the simple format of array("lang string goes here" => "translation goes here").

- Loads new strings by a method that gets files and merges the stored and new arrays.

 

Within the files - $lang->i18n("Translate this string");

Link to comment
https://forums.phpfreaks.com/topic/144180-language-translations-best-practice/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.