source: pdfshuffler/trunk/fuentes/debian/patches/lliurex_fix @ 337

Last change on this file since 337 was 337, checked in by jrpelegrina, 4 years ago

Firs release to xenial

File size: 3.2 KB
Line 
1Description: This patch allow resolved translations
2 TODO: Put a short summary on the line above and replace this paragraph
3 with a longer explanation of this change. Complete the meta-information
4 with other relevant fields (see below for details). To make it easier, the
5 information below has been extracted from the changelog. Adjust it or drop
6 it.
7 .
8 pdfshuffler (0.6.0-5) unstable; urgency=medium
9 .
10   * Adopt package. (Closes: #728579)
11   * Remove debian/pdfshuffler.1 and use upstream manpage instead.
12   * Update to Standards version 3.9.5, no changes required.
13   * Update to dh compat level 9.
14   * Update to copyright format 1.0.
15Author: Vincent Cheng <vcheng@debian.org>
16Bug-Debian: http://bugs.debian.org/728579
17
18---
19The information above should follow the Patch Tagging Guidelines, please
20checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
21are templates for supplementary fields that you might want to add:
22
23Origin: <vendor|upstream|other>, <url of original patch>
24Bug: <url in upstream bugtracker>
25Bug-Debian: http://bugs.debian.org/<bugnumber>
26Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
27Forwarded: <no|not-needed|url proving that it has been forwarded>
28Reviewed-By: <name and email of someone who approved the patch>
29Last-Update: <YYYY-MM-DD>
30
31--- pdfshuffler-0.6.0.orig/pdfshuffler/pdfshuffler.py
32+++ pdfshuffler-0.6.0/pdfshuffler/pdfshuffler.py
33@@ -36,8 +36,8 @@ from copy import copy
34 
35 import locale       #for multilanguage support
36 import gettext
37-gettext.install('pdfshuffler', unicode=1)
38 
39+gettext.install('pdfshuffler','/usr/share/locale',unicode=1)
40 
41 APPNAME = 'PdfShuffler' # PDF-Shuffler, PDFShuffler, pdfshuffler
42 VERSION = '0.6.0'
43@@ -78,6 +78,7 @@ gobject.type_register(CellRendererImage)
44 
45 import time
46 
47+#_ = gettext.gettext
48 class PdfShuffler:
49     prefs = {
50         'window width': min(700, gtk.gdk.screen_get_default().get_width() / 2),
51@@ -103,6 +104,8 @@ class PdfShuffler:
52         self.tmp_dir = tempfile.mkdtemp("pdfshuffler")
53         os.chmod(self.tmp_dir, 0700)
54 
55+
56+
57         icon_theme = gtk.icon_theme_get_default()
58         try:
59             gtk.window_set_default_icon(icon_theme.load_icon("pdfshuffler", 64, 0))
60@@ -126,11 +129,15 @@ class PdfShuffler:
61             if tail == 'lib':
62                 ui_path = os.path.join(head, 'share', 'pdfshuffler', \
63                                        'pdfshuffler.ui')
64+        #import gtk.glade
65+        #gtk.glade.bindtextdomain("pdfshuffler","/usr/share/locale")
66+        #gtk.glade.textdomain("pdfshuffler")
67 
68         self.uiXML = gtk.Builder()
69+        self.uiXML.set_translation_domain('pdfshuffler')
70         self.uiXML.add_from_file(ui_path)
71         self.uiXML.connect_signals(self)
72-
73+
74         # Create the main window, and attach delete_event signal to terminating
75         # the application
76         self.window = self.uiXML.get_object('main_window')
77@@ -233,6 +240,7 @@ class PdfShuffler:
78         popup_rotate_right = gtk.ImageMenuItem(_('_Rotate Right'))
79         popup_rotate_left = gtk.ImageMenuItem(_('Rotate _Left'))
80         popup_crop = gtk.MenuItem(_('C_rop...'))
81+
82         popup_delete = gtk.ImageMenuItem(gtk.STOCK_DELETE)
83         popup_saveselection = gtk.MenuItem(_('_Export selection...'))
84         popup_rotate_right.connect('activate', self.rotate_page_right)
Note: See TracBrowser for help on using the repository browser.