[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 <tserong@suse.com>, 2011. +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the hawk package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: hawk 0.6.0\n" +"Project-Id-Version: hawk 1.0.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-04-19 21:25+1000\n" -"PO-Revision-Date: 2009-12-10 02:48+1100\n" +"POT-Creation-Date: 2013-10-04 05:51+0000\n" +"PO-Revision-Date: 2013-10-04 05:51+0000\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1;\n" +"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" The other problem is that it dies horribly when trying to update the french translations (see attached log), but if I run "rake gettext:pack" a *second* time, it completes successfully. You wouldn't happen to have any idea what's going on with the above would you? :) Thanks, Tim -- Tim Serong Senior Clustering Engineer SUSE tserong@suse.com
participants (2)
-
Ladislav Slezak
-
Tim Serong