Your message dated Mon, 13 Sep 2010 03:17:32 +0000
with message-id <e1ouzxw-0006fc...@franck.debian.org>
and subject line Bug#588757: fixed in liblocale-rails-ruby 2.0.5-3
has caused the Debian Bug report #588757,
regarding liblocale-rails-ruby1.8: Locale class clash
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
588757: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=588757
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: liblocale-rails-ruby1.8
Version: 2.0.5-2
Severity: grave
Tags: patch
Coin,
I recently upgraded an application using the new split rails 2.3.5-1,
and gettext for translations, so i installed this package to get rails
translated. The app complained about missing methods, and after
looking at the problem, i found libi18n-ruby1.8 provides a Locale
class in the I18n namespace, and liblocale-rails-ruby1.8 is also in
this namespace when it calls the Locale class, but it is requiring
'locale' in '/usr/lib/ruby/1.8/locale_rails.rb', so the Locale class
wanted is not I18n::Locale but ::Locale provided by liblocale-ruby1.8
(and the wanted methods match).
The following patch fixes this issue, even if the use of the I18n
namespace should probably be sorted out.
Regards.
--
Marc Dequènes (Duck)
--- /usr/lib/ruby/1.8/locale_rails/i18n.rb.orig 2010-07-11 17:09:41.000000000 +0200
+++ /usr/lib/ruby/1.8/locale_rails/i18n.rb 2010-07-11 17:11:23.000000000 +0200
@@ -13,35 +13,35 @@
# Gets the supported locales.
def supported_locales
- Locale.app_language_tags
+ ::Locale.app_language_tags
end
# Sets the supported locales.
# I18n.set_supported_locales("ja-JP", "ko-KR", ...)
def set_supported_locales(*tags)
- Locale.set_app_language_tags(*tags)
+ ::Locale.set_app_language_tags(*tags)
end
# Sets the supported locales as an Array.
# I18n.supported_locales = ["ja-JP", "ko-KR", ...]
def supported_locales=(tags)
- Locale.set_app_language_tags(*tags)
+ ::Locale.set_app_language_tags(*tags)
end
# Sets the locale.
# I18n.locale = "ja-JP"
def locale=(tag)
- Locale.clear
- tag = Locale::Tag::Rfc.parse(tag.to_s) if tag.kind_of? Symbol
- Locale.current = tag
- Thread.current[:locale] = Locale.candidates(:type => :rfc)[0]
+ ::Locale.clear
+ tag = ::Locale::Tag::Rfc.parse(tag.to_s) if tag.kind_of? Symbol
+ ::Locale.current = tag
+ Thread.current[:locale] = ::Locale.candidates(:type => :rfc)[0]
end
# Sets the default locale.
# I18n.default_locale = "ja"
def default_locale=(tag)
- tag = Locale::Tag::Rfc.parse(tag.to_s) if tag.kind_of? Symbol
- Locale.default = tag
+ tag = ::Locale::Tag::Rfc.parse(tag.to_s) if tag.kind_of? Symbol
+ ::Locale.default = tag
@@default_locale = tag
end
@@ -50,7 +50,7 @@
# MissingTranslationData is overrided to fallback messages in candidate locales.
def locale_rails_exception_handler(exception, locale, key, options) #:nodoc:
ret = nil
- Locale.candidates(:type => :rfc).each do |loc|
+ ::Locale.candidates(:type => :rfc).each do |loc|
begin
ret = backend.translate(loc, key, options)
break
pgpbb7Yob7TnB.pgp
Description: PGP Digital Signature
--- End Message ---
--- Begin Message ---
Source: liblocale-rails-ruby
Source-Version: 2.0.5-3
We believe that the bug you reported is fixed in the latest version of
liblocale-rails-ruby, which is due to be installed in the Debian FTP archive:
liblocale-rails-ruby1.8_2.0.5-3_all.deb
to main/libl/liblocale-rails-ruby/liblocale-rails-ruby1.8_2.0.5-3_all.deb
liblocale-rails-ruby_2.0.5-3.debian.tar.gz
to main/libl/liblocale-rails-ruby/liblocale-rails-ruby_2.0.5-3.debian.tar.gz
liblocale-rails-ruby_2.0.5-3.dsc
to main/libl/liblocale-rails-ruby/liblocale-rails-ruby_2.0.5-3.dsc
liblocale-rails-ruby_2.0.5-3_all.deb
to main/libl/liblocale-rails-ruby/liblocale-rails-ruby_2.0.5-3_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 588...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Gunnar Wolf <gw...@debian.org> (supplier of updated liblocale-rails-ruby
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sun, 12 Sep 2010 22:06:42 -0500
Source: liblocale-rails-ruby
Binary: liblocale-rails-ruby liblocale-rails-ruby1.8
Architecture: source all
Version: 2.0.5-3
Distribution: unstable
Urgency: low
Maintainer: Gunnar Wolf <gw...@debian.org>
Changed-By: Gunnar Wolf <gw...@debian.org>
Description:
liblocale-rails-ruby - Pure ruby library with basic functions for Rails
localization
liblocale-rails-ruby1.8 - Pure ruby library with basic functions for Rails
localization
Closes: 588757
Changes:
liblocale-rails-ruby (2.0.5-3) unstable; urgency=low
.
* Fully qualify module calls to avoid name clash with I18N class
(Closes: #588757)
* Standards-version 3.8.4→3.9.1.0 (no changes needed)
Checksums-Sha1:
39a0cb564bdfecdd46c7e737cb97a67af3978bcd 2122 liblocale-rails-ruby_2.0.5-3.dsc
73fb6a3f88606d14bc4250bdc8667f72dfe00ea1 4931
liblocale-rails-ruby_2.0.5-3.debian.tar.gz
1e57bbb0a2a27b7557496f36e479451891495241 4616
liblocale-rails-ruby_2.0.5-3_all.deb
295aebaf88dd6326c79768e8ad6b009d312f12cc 84682
liblocale-rails-ruby1.8_2.0.5-3_all.deb
Checksums-Sha256:
647122c6441f711cb8610175a5590a63c38a4d883493deda8fa693e15bfac837 2122
liblocale-rails-ruby_2.0.5-3.dsc
e349178a956891604ca43c5bfdbc34819c9b7a6790405610e5a2870624d137cc 4931
liblocale-rails-ruby_2.0.5-3.debian.tar.gz
f79de220302f9a970aa9a2ed4c8e9bf6ddb684ec0978777eb61a4e20213be19d 4616
liblocale-rails-ruby_2.0.5-3_all.deb
e059e54b6ab8295eea608b6429dd7192e4202ec1764ee8ee7d44957517f74f2a 84682
liblocale-rails-ruby1.8_2.0.5-3_all.deb
Files:
e802a311739ee9f9aa28a051f9b1ae6a 2122 ruby optional
liblocale-rails-ruby_2.0.5-3.dsc
7d45eed01eea25a92326bcf1bac64bae 4931 ruby optional
liblocale-rails-ruby_2.0.5-3.debian.tar.gz
c05bb1d57bb58ec1fd945042db4c31ae 4616 ruby optional
liblocale-rails-ruby_2.0.5-3_all.deb
c9594b7c15113fc92d91d4d1713806d7 84682 ruby optional
liblocale-rails-ruby1.8_2.0.5-3_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQIcBAEBCAAGBQJMjZWSAAoJEGc6A+TB25IfeZAP/i0qvZGGY6fy323wf8wZpSKK
X4qVanB0i9+vi0N46puY8ikmo6YLXUd1ksXxPxnByVnLrcDt0Gz/fC5nCfsFN+6v
8zk0J78nwqiNx21kv3hvTmXsjQEEM7gYtVkLUdqTm79JslZOvFPdtM+LB3TfcEfE
rghhsl2gkJVKBRI7KdRhv6DAYQzVSTrTq2tfQF6t9qQGdA6gEnXGtydveG20qVkm
g0kPEgEiwLI2ILmCn2B/ixYe8TqLtLQ1ONt5KrYZWh6ylA3JgsiNxLzAdUgxGiCo
CO1bwgp3WYcrcYqDHFnDs5T0pXKa+Lp90OlemwEFBopSpF7S0jiiVsFggdEqRSoz
hjEpGUTC6mj2OT4HMxlaE6cAldt4nlSw/1GdBUxriCR6Hvsp4oG7mG3iVP98mohr
usLlOx2m6REYwYmIlEWlXN33Ieep0oAuJEtwO6WNihHsOrViYpuruLMF+9o0nUuU
6yCL0gBBmZnth4x8NnHjhsWv8gDp2qwR7DtTqyOuNpKTHTyEHx+gVqYZMHHTSAXU
8pktPAX9tXClCExrQ37EeE3GM2NXL2RH7LOfrs0+0cZQqXWGwxpibO5XPIMgm7CV
HYG7MWV7DmAg1mxcYmt3fobWyV/5UpGVps3giI+dS5hna8VvHU7ofBUlqq0CH2Xe
vvL33TlAw68BeeAClkza
=lMPw
-----END PGP SIGNATURE-----
--- End Message ---