OldWolf Posted February 7, 2009 Share Posted February 7, 2009 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 More sharing options...
juddy Posted February 7, 2009 Share Posted February 7, 2009 hi , if i where you i will use the same way you said. Link to comment https://forums.phpfreaks.com/topic/144180-language-translations-best-practice/#findComment-756689 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.