[opensuse-ruby] rubygem-gettext update to 3.0.1 breaks "rake gettext:pack"
Hi All, rubygem-gettext has been updated to version 3.0.1 in openSUSE:Factory, which seems to break "rake gettext:pack" with: rake aborted! cannot load such file -- gettext/utils AFACIT we need a newer rubygem-gettext_i18n_rails to accommodate recent changes in rubygem-gettext. Is anyone already looking at this? Thanks, Tim -- Tim Serong Senior Clustering Engineer SUSE tserong@suse.com -- To unsubscribe, e-mail: opensuse-ruby+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-ruby+owner@opensuse.org
Dne 2.10.2013 17:14, Tim Serong napsal(a):
Hi All,
rubygem-gettext has been updated to version 3.0.1 in openSUSE:Factory, which seems to break "rake gettext:pack" with:
rake aborted! cannot load such file -- gettext/utils
AFACIT we need a newer rubygem-gettext_i18n_rails to accommodate recent changes in rubygem-gettext.
Yes, I have already looked at it, my pull requested was not accepted, they changed the gettext API (therefore it was quickly updated to 3.0.1) for a better solution. It was recently fixed here: https://github.com/grosser/gettext_i18n_rails/pull/103 Version 1.0.0 has been released at September 30, so it should be enough just to update the gem in devel:languages:ruby:extensions from 0.10.1 to 1.0.0. -- Ladislav Slezák Appliance department / YaST Developer Lihovarská 1060/12 190 00 Prague 9 / Czech Republic tel: +420 284 028 960 lslezak@suse.com SUSE -- To unsubscribe, e-mail: opensuse-ruby+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-ruby+owner@opensuse.org
(dropped opensuse-factory from CC list, probably doesn't need the extra mail ;) On 10/03/2013 05:01 PM, Ladislav Slezak wrote:
Dne 2.10.2013 17:14, Tim Serong napsal(a):
Hi All,
rubygem-gettext has been updated to version 3.0.1 in openSUSE:Factory, which seems to break "rake gettext:pack" with:
rake aborted! cannot load such file -- gettext/utils
AFACIT we need a newer rubygem-gettext_i18n_rails to accommodate recent changes in rubygem-gettext.
Yes, I have already looked at it, my pull requested was not accepted, they changed the gettext API (therefore it was quickly updated to 3.0.1) for a better solution.
It was recently fixed here: https://github.com/grosser/gettext_i18n_rails/pull/103
Version 1.0.0 has been released at September 30, so it should be enough just to update the gem in devel:languages:ruby:extensions from 0.10.1 to 1.0.0.
I've done a local build of gettext_i18n_rails, which turned out to
require gettext 3.0.2, not 3.0.1, so I built that too. This now seems
to mean I need to run:
TEXTDOMAIN=hawk rake gettext:pack
Without setting TEXTDOMAIN=hawk, the text domain defaults to 'app' and
it can't find my hawk.po* files. I traced that back to this commit:
https://github.com/grosser/gettext_i18n_rails/commit/d1b02f734f9e0c96de50d1a...
See comment "# if your textdomain is not 'app': require the environment
before calling e.g. gettext:find OR add TEXTDOMAIN=my_domain.
I'm not sure how to "require the environment before calling
gettext:find". config/initializers/fast_gettext.rb does have:
FastGettext.add_text_domain 'hawk', :path => ...
FastGettext.default_text_domain = 'hawk'
But apparently this isn't picked up early enough.
I've also hit two other problems, one is that rake gettext:pack seems to
be mangling my hawk.pot file for some reason, in particular it rewrites
the copyright comment and mangles Project-Id-Version and Plural-Forms:
-# HA Web Konsole (Hawk)
-#
-# Copyright (c) 2009-2013 SUSE LLC
-#
-# This file is distributed under the same license as the Hawk package.
-#
-# Tim Serong
participants (2)
-
Ladislav Slezak
-
Tim Serong