summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMamoru TASAKA <mtasaka@fedoraproject.org>2014-02-12 03:41:13 (GMT)
committerMamoru TASAKA <mtasaka@fedoraproject.org>2014-02-12 03:41:13 (GMT)
commitd77eb5ad048fbf98d9c3e68d84e4bb737cafada1 (patch)
tree9b53764e4936a04e393212b1bc0fce9265b25218
parentdafb8e9a4b3d352e477ad5a41774efda7b6efc34 (diff)
downloadalexandria-master.zip
alexandria-master.tar.gz
alexandria-master.tar.xz
Make glade2 translatable text actually translated (i10ned)HEADmasterf20f19
-rw-r--r--alexandria-0.6.9-glade-gettext.patch10
-rw-r--r--alexandria.spec8
2 files changed, 17 insertions, 1 deletions
diff --git a/alexandria-0.6.9-glade-gettext.patch b/alexandria-0.6.9-glade-gettext.patch
new file mode 100644
index 0000000..f4636f9
--- /dev/null
+++ b/alexandria-0.6.9-glade-gettext.patch
@@ -0,0 +1,10 @@
+--- alexandria-0.6.9/lib/alexandria/ui/builder_base.rb.gettext 2011-11-19 23:07:23.000000000 +0900
++++ alexandria-0.6.9/lib/alexandria/ui/builder_base.rb 2014-02-12 12:25:09.695018378 +0900
+@@ -22,6 +22,7 @@ module Alexandria
+ def initialize(filename, widget_names)
+ file = File.join(Alexandria::Config::DATA_DIR, 'glade', filename)
+ builder = Gtk::Builder.new
++ builder.set_translation_domain(Alexandria::TEXTDOMAIN)
+ builder.add_from_file(file)
+ builder.connect_signals do |handler|
+ begin
diff --git a/alexandria.spec b/alexandria.spec
index d95c365..b03956a 100644
--- a/alexandria.spec
+++ b/alexandria.spec
@@ -8,7 +8,7 @@
%undefine minorver
%undefine ifpre
-%define fedorarel 8
+%define fedorarel 9
%define rel %{?ifpre:0.}%{fedorarel}%{?minorver:.%minorver}
@@ -91,6 +91,8 @@ Patch26: alexandria-0.6.9-z3950-zoom-count.patch
Patch27: alexandria-0.6.9-negative-value.patch
# Specify goocanvas version (bug 1024931)
Patch28: alexandria-0.6.9-goocanvas-version.patch
+# Make glade2 translatable text actually translated (i10ned)
+Patch29: alexandria-0.6.9-glade-gettext.patch
BuildArch: noarch
@@ -186,6 +188,7 @@ Alexandria is a GNOME application to help you manage your book collection.
%patch26 -p1 -b .z3950_count
%patch27 -p1 -b .negative
%patch28 -p1 -b .goocanvasver
+%patch29 -p1 -b .gettext
# Embed Fedora EVR
%{__sed} -i.evr \
@@ -282,6 +285,9 @@ exit 0
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%changelog
+* Wed Feb 12 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.6.9-9
+- Make glade2 translatable text actually translated (i10ned)
+
* Fri Nov 1 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.6.9-8
- Change dependency on goocanvas on F-20+ (bug 1025095)
- Specify goocanvas version (bug 1024931)