]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Workaround for not fully natively set up locales with native gettext...
authorBrion Vibber <brion@pobox.com>
Fri, 16 Oct 2009 17:42:27 +0000 (17:42 +0000)
committerBrion Vibber <brion@pobox.com>
Fri, 16 Oct 2009 17:42:27 +0000 (17:42 +0000)
commit531c0738daab2d5f9b8324b85b45af7131aec0da
treec89880e24d1aaa913294c7ba984ad0fec4d1472e
parent4ef0665408aee19d9ae69758e02fc98003e202ff
Workaround for not fully natively set up locales with native gettext...

Set "en_US" locale first, then the locale we want for our user.
This seems to initialize gettext properly somehow, which I could see when the languages would come up briefly on settings save when changing from a supported language.
Definitely works for ga_ES on my Ubuntu system (8.10 intrepid), hopefully reasonably consistent.
lib/util.php