Translations/Internatonalizations
I need to translate the script interface in Italian.
At the moment,what I intend to do is to surround EVERY string used literally in the script with a short named function, eg, "Hello World" becomes t_("Hello Word"), then use the english string you provide as a key for a table. Values are going to be memcached.
Of course this will break my possibility to easy upgrade in the future.
Any better option?
If you want I can provide my work back (the translation function is quite stupid, but the source with the t_ function around all string can be valuable imho.
At the moment,what I intend to do is to surround EVERY string used literally in the script with a short named function, eg, "Hello World" becomes t_("Hello Word"), then use the english string you provide as a key for a table. Values are going to be memcached.
Of course this will break my possibility to easy upgrade in the future.
Any better option?
If you want I can provide my work back (the translation function is quite stupid, but the source with the t_ function around all string can be valuable imho.
This discussion has been closed.
Comments
Support for other languages, even if it means translating myself, would be great as upgrading would be easier.
I am resorting to a output filter that i process after all processes are terminated (with php ob_function help, but it's very easy to mess up); this way I have a single entry point and don't have to modify all sources ...
I hope a solution is on the go, this is not viable in the mid/long term ...
Translation support is now available in Sendy 1.1.5 and above.