babel egg: epiphany locale setting fix
Dear list, I encountered problems when using galaxy with ubuntu's epiphany browser. It seems that when using this browser, HTTP_ENVIRON's locale setting is sometimes 'en-us', but sometimes ' en-us'. That's a whitespace before the locale. I solved the problem by adding a simple .strip() in eggs/babel/core.py on line 763: lang = parts.pop(0).lower().strip() I assume the egg is not maintained by the galaxy team, so maybe I should forward this to Babel developers, but if anyone runs into the same problem, here's a solution. cheers, jorrit
On Feb 24, 2012, at 9:51 AM, Jorrit Boekel wrote:
Dear list,
I encountered problems when using galaxy with ubuntu's epiphany browser. It seems that when using this browser, HTTP_ENVIRON's locale setting is sometimes 'en-us', but sometimes ' en-us'. That's a whitespace before the locale. I solved the problem by adding a simple .strip() in eggs/babel/core.py on line 763:
lang = parts.pop(0).lower().strip()
I assume the egg is not maintained by the galaxy team, so maybe I should forward this to Babel developers, but if anyone runs into the same problem, here's a solution.
Hi Jorrit, This seems like more of a bug in Epiphany than in Babel, but Babel might accept the patch too. Regardless, this is not a Galaxy bug (but if neither responsible party will fix it, we could implement the workaround). Thanks for the heads up. --nate
cheers, jorrit
___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at:
participants (2)
-
Jorrit Boekel
-
Nate Coraor