Kroc/NoNonsenseForum — Issue #77: Multilingual support
Author: rvanvelzen
Created: 2011-12-01 12:22:36+00:00
State: open

I'm in the process of deploying NNF as an internal forum at my company. However, most people are terrible at English here so it has to be translated.

Even though most people tend to speak English, I think it may be wise to look at easy-to-implement solutions for supporting multiple languages. One of the first things that came to mind was [gettext](http://www.php.net/gettext) but that usually isn't installed at shared hosts in which case it wouldn't be user-friendly.

Some of the other solutions (arrays for each language-dependent message) scare me a little bit as they tend to make your code look like spaghetti. Still, it is a viable and very usable approach, certainly when you centralise it (`text('my original string') === 'mijn originele string'` for example, in the style of gettext).