summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/load-gettext.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/rbot/load-gettext.rb b/lib/rbot/load-gettext.rb
index 2c65f197..b37369c1 100644
--- a/lib/rbot/load-gettext.rb
+++ b/lib/rbot/load-gettext.rb
@@ -10,6 +10,11 @@ end
# try to load gettext, or provide fake getttext functions
begin
+# workaround for gettext not checking empty LANGUAGE
+if ENV["LANGUAGE"] and ENV["LANGUAGE"].empty?
+ ENV.delete "LANGUAGE"
+end
+
require 'gettext/version'
gettext_version = GetText::VERSION.split('.').map {|n| n.to_i}