From: Jason C. <cam...@xp...> - 2001-11-30 15:46:22
|
Hey guys! I haven't posted anything on here in a long time. Thought I'd just pop in and say hey! I've been working on a few different projects, one being Sinapze, a CMS system from scratch....anyways... One thing I did see discussion about was on-the-fly language system. I currently have this type of system built into Sinapze. Brian is right about just having strings like "Main Menu" show up in a native language could be possibly pointless. The way I currently have it setup in Sinapze is with the module being one class and the language file(s) being a class within the module's class, based on the user's language that language file is the extension of the module's class. This makes the calls to the variables really easy $this- >menutitle for example. The language file(s) for the module are more or less just glorified text files that just happen to be classes. The way I have this setup for users, they can switch from language to language on the fly from the user control panel or the admin can force the users to all use the same language. I think just having all the actual "text" displaying stuff out of the actual module code is time saving in itself and easier to maintain it that way. Just my two cents on everything....keep up the good work guys!! -- Jason Campbell Soarion Technologies www.soarion.com www.sinapze.com |