fixes #3005 - restrict gettext to Ruby 1.8 compatible version

(cherry picked from commit bdaf88803294f4442b44e7184e65ac42c1ea6bd7)
fixes #3010 - use the correct helper function name

(cherry picked from commit 3d321a7f91d096b649cc88ec8cdaba35fe1a70be)