Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

11
  • I see that I've confused you with "Front-end Translations", what I meant was a way to parse the translated strings on screen. I'm definitly not looking for a way to translate it on the client side! What I meant was the easiest way to switch languages on the front-end, but that's obviously using a cookie or a user setting :) Commented Oct 17, 2013 at 14:02
  • Oh, and by Database-Driven I was more aiming on the method of managing all translations, so my ideal solution would be a back-end which writes translations to a database followed by a function that generates the pre-processing component which generates the PHP file. Why?: simple.. I want don't want to be bother by little changes in text, the users should be able to do so themselfs without using a code editor and/or ftp programm :) Commented Oct 17, 2013 at 14:05
  • @PENDO I know you didn't mean front-end translations, that was a thinly veiled comment towards the user who suggested front-end translation frameworks using JS. ;) Commented Oct 17, 2013 at 15:16
  • @PENDO I agree, I'd use the backend as you suggested but instead of a database I'd use a flat file for performance reasons. Of course, the core suggestion here is pre-rendering the templates upon change so you could replace the .INI files with a 3-column database table with placeholder, replacement, language. Compound key on placeholder and language. Then have another 2-col with tempfile (path to template) and modified (DATETIME). Commented Oct 17, 2013 at 15:19
  • 1
    @PENDO Thanks. I've put 250 back up and I plan to award it to teresko in 24 hours when the site lets me, as you selected both answers as correct, and I think a split would best represent your intentions. Commented Oct 18, 2013 at 9:01