sylae / ligrev

XMPP MUC Utility bot
GNU General Public License v3.0
2 stars 1 forks source link

Build system for i18n #23

Open sylae opened 8 years ago

sylae commented 8 years ago

(Blocks #4)

Currently we have all text strings wrapped in _() as needed, we just need a system to actually translate these stings.

It appears that php's gettext should be able to do this (hence _()), we just need a way to ensure language settings don't "leak" into other areas/MUCs/whatever. The best method I have so far is setting the language in the class constructor or some such.

sylae commented 8 years ago

I did a push or two earlier which add primitive language support. Right now all we are doing is translating strings, before this can be closed we'll need to be able to handle different number and date formats as well.