[DRE-commits] [SCM] ruby-activeldap.git branch, master, updated. debian/1.2.4-2-2-g943cd32

=?UTF-8?Q?Marc=20Dequ=C3=A8nes=20?=(Duck) Duck at DuckCorp.org
Tue Feb 19 13:15:10 UTC 2013


The following commit has been merged in the master branch:
commit c234670d867c5464607acd39810da6bce792f178
Author: Marc Dequènes (Duck) <Duck at DuckCorp.org>
Date:   Mon Feb 18 00:31:19 2013 +0100

    [fix] install po files and patch loader to find the path

diff --git a/debian/changelog b/debian/changelog
index 28b59a5..ec9d958 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+ruby-activeldap (1.2.4-3) unstable; urgency=low
+
+  * Fixed translation files not installed.
+
+ -- Marc Dequènes (Duck) <Duck at DuckCorp.org>  Mon, 18 Feb 2013 00:30:42 +0100
+
 ruby-activeldap (1.2.4-2) unstable; urgency=low
 
   * Bump build dependency on gem2deb to >= 0.3.0~.
diff --git a/debian/patches/gettext_po_path b/debian/patches/gettext_po_path
new file mode 100644
index 0000000..de997b8
--- /dev/null
+++ b/debian/patches/gettext_po_path
@@ -0,0 +1,14 @@
+Index: ruby-activeldap/lib/active_ldap/get_text_support.rb
+===================================================================
+--- ruby-activeldap.orig/lib/active_ldap/get_text_support.rb	2013-02-18 00:29:52.000000000 +0100
++++ ruby-activeldap/lib/active_ldap/get_text_support.rb	2013-02-18 01:43:07.658020919 +0100
+@@ -10,8 +10,7 @@
+       def included(base)
+         base.class_eval do
+           include(GetText::Translation)
+-          po_dir = File.join(File.dirname(__FILE__), "..", "..", "po")
+-          po_dir = File.expand_path(po_dir)
++          po_dir = "/usr/share/ruby-activeldap/po"
+           GetText.add_text_domain('active-ldap', :path => po_dir, :type => :po)
+           GetText.default_available_locales = ['en', 'jp']
+           GetText.default_text_domain = "active-ldap"
diff --git a/debian/patches/series b/debian/patches/series
index 46b9c0d..2905b8f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 gem_sux
+gettext_po_path
diff --git a/debian/ruby-activeldap.install b/debian/ruby-activeldap.install
new file mode 100644
index 0000000..270e0e7
--- /dev/null
+++ b/debian/ruby-activeldap.install
@@ -0,0 +1 @@
+po usr/share/ruby-activeldap/

-- 
ruby-activeldap.git



More information about the Pkg-ruby-extras-commits mailing list