Hello community,

here is the log from the commit of package alacarte for openSUSE:Factory 
checked in at 2016-06-03 16:27:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/alacarte (Old)
 and      /work/SRC/openSUSE:Factory/.alacarte.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "alacarte"

Changes:
--------
--- /work/SRC/openSUSE:Factory/alacarte/alacarte.changes        2016-05-08 
10:39:08.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.alacarte.new/alacarte.changes   2016-06-03 
16:27:08.000000000 +0200
@@ -1,0 +2,9 @@
+Fri May 20 09:36:15 UTC 2016 - [email protected]
+
+- Added alacarte-trans.patch made by [email protected] for SLE to fix
+  untranslated texts (bnc#947793). Adds a gettext function to
+  ItemEditor.py to make alacarte translatable and modify alacarte.ui:
+  use original text, translate all PO tranlation files. Modified
+  under Stanislav Brabec's review result.
+
+-------------------------------------------------------------------

New:
----
  alacarte-trans.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ alacarte.spec ++++++
--- /var/tmp/diff_new_pack.7en7Ub/_old  2016-06-03 16:27:09.000000000 +0200
+++ /var/tmp/diff_new_pack.7en7Ub/_new  2016-06-03 16:27:09.000000000 +0200
@@ -24,6 +24,8 @@
 License:        LGPL-2.1+
 Group:          System/GUI/GNOME
 Source:         
http://download.gnome.org/sources/alacarte/3.11/%{name}-%{version}.tar.xz
+# PATCH-FIX-OPENSUSE alacarte-trans.patch bnc#947793 [email protected] -- Fix 
untranslated messages
+Patch0:         alacarte-trans.patch
 BuildRequires:  fdupes
 BuildRequires:  glib2-devel
 # Needed for the typelib() dependency parser
@@ -52,6 +54,7 @@
 %prep
 %setup -q
 translation-update-upstream
+%patch0 -p1
 
 %build
 %configure

++++++ alacarte-trans.patch ++++++
diff -Nura alacarte-3.10.0/Alacarte/ItemEditor.py 
alacarte-3.10.0.new/Alacarte/ItemEditor.py
--- alacarte-3.10.0/Alacarte/ItemEditor.py      2013-08-30 06:32:55.000000000 
+0800
+++ alacarte-3.10.0.new/Alacarte/ItemEditor.py  2015-11-30 21:19:06.812695811 
+0800
@@ -22,6 +22,8 @@
 gi.require_version('Gtk', '3.0')
 from gi.repository import GLib, GObject, Gtk
 from Alacarte import config, util
+gettext.bindtextdomain(config.GETTEXT_PACKAGE, config.localedir)
+gettext.textdomain(config.GETTEXT_PACKAGE)
 
 _ = gettext.gettext
 
@@ -101,6 +103,7 @@
     def __init__(self, parent, item_path):
         GObject.GObject.__init__(self)
         self.builder = Gtk.Builder()
+       self.builder.set_translation_domain(config.GETTEXT_PACKAGE)
         self.builder.add_from_file(os.path.join(config.pkgdatadir, 
self.ui_file))
 
         self.dialog = self.builder.get_object('editor')
diff -Nura alacarte-3.10.0/data/alacarte.ui alacarte-3.10.0.new/data/alacarte.ui
--- alacarte-3.10.0/data/alacarte.ui    2013-09-03 21:23:58.000000000 +0800
+++ alacarte-3.10.0.new/data/alacarte.ui        2015-11-30 21:20:08.224695811 
+0800
@@ -86,7 +86,7 @@
             </child>
             <child>
               <object class="GtkButton" id="restore_button">
-                <property name="label">Restore System Configuration</property>
+               <property name="label" translatable="yes">Restore System 
Configuration</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="can_default">True</property>

Reply via email to