rescue LoadError, GetTextVersionError
warn "failed to load ruby-gettext package: #{$!}; translations are disabled"
+ # undefine GetText, in case it got defined because the error was caused by a
+ # wrong version
+ if defined?(GetText)
+ Object.module_eval { remove_const("GetText") }
+ end
+
# dummy functions that return msg_id without translation
def _(s)
s