gettext: support version 2
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 20 Apr 2009 18:48:07 +0000 (20:48 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 20 Apr 2009 20:23:39 +0000 (22:23 +0200)
commitbeefd7fc3973320ee6ecc6ac0b6201343ed2549d
treecac4a617a5234d9b3563105b13b6cce08fd9a0e5
parentffef18a2e81a0fff2c4dbf4c0b78fc54881d06f8
gettext: support version 2

GetText version 2 has some significant difference from earlier version.

* different syntax to set the default locale path
* different syntax to set non-cached mode
* different way to handle bound targets

Most of the changes are relative to significant functionality split
between the GetText submodules (LocalePath, TextDomain etc), so most of
the changes are just a matter of moving the defines where appropriate.
The bound_targets patch needed to cope with anonymous modules is not
needed with gettext >= 2.0.0
lib/rbot/load-gettext.rb