Comment Re:Arrays.... (Score 1) 7
The project I'm working on is not that big and limited to a few Western languages. Most of the things that need translation are part of the static user interface, users won't be able to edit it.
I have done some simple tests using gettext, but not used it for any serious work. Do you know how fast it is?
For a start I will separate the user interface from the application logic and probably use a template engine like Smarty as recommended by KingOfBLASH in his replies above. That would allow me to at least use separate template files for each language. I could also use the templates just for the layout and then use gettext or include files with arrays for the strings, as you suggest, from the templates.
Maybe it is also possible to define some custom tags for the templates to mark strings that need translation and then pass the strings to gettext. That could be a rather elegant solution, at least in theory. I clearly need to do more research/testing