Description: This patch allow resolved translations TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . pdfshuffler (0.6.0-5) unstable; urgency=medium . * Adopt package. (Closes: #728579) * Remove debian/pdfshuffler.1 and use upstream manpage instead. * Update to Standards version 3.9.5, no changes required. * Update to dh compat level 9. * Update to copyright format 1.0. Author: Vincent Cheng Bug-Debian: http://bugs.debian.org/728579 --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- pdfshuffler-0.6.0.orig/pdfshuffler/pdfshuffler.py +++ pdfshuffler-0.6.0/pdfshuffler/pdfshuffler.py @@ -36,8 +36,8 @@ from copy import copy import locale #for multilanguage support import gettext -gettext.install('pdfshuffler', unicode=1) +gettext.install('pdfshuffler','/usr/share/locale',unicode=1) APPNAME = 'PdfShuffler' # PDF-Shuffler, PDFShuffler, pdfshuffler VERSION = '0.6.0' @@ -78,6 +78,7 @@ gobject.type_register(CellRendererImage) import time +#_ = gettext.gettext class PdfShuffler: prefs = { 'window width': min(700, gtk.gdk.screen_get_default().get_width() / 2), @@ -103,6 +104,8 @@ class PdfShuffler: self.tmp_dir = tempfile.mkdtemp("pdfshuffler") os.chmod(self.tmp_dir, 0700) + + icon_theme = gtk.icon_theme_get_default() try: gtk.window_set_default_icon(icon_theme.load_icon("pdfshuffler", 64, 0)) @@ -126,11 +129,15 @@ class PdfShuffler: if tail == 'lib': ui_path = os.path.join(head, 'share', 'pdfshuffler', \ 'pdfshuffler.ui') + #import gtk.glade + #gtk.glade.bindtextdomain("pdfshuffler","/usr/share/locale") + #gtk.glade.textdomain("pdfshuffler") self.uiXML = gtk.Builder() + self.uiXML.set_translation_domain('pdfshuffler') self.uiXML.add_from_file(ui_path) self.uiXML.connect_signals(self) - + # Create the main window, and attach delete_event signal to terminating # the application self.window = self.uiXML.get_object('main_window') @@ -233,6 +240,7 @@ class PdfShuffler: popup_rotate_right = gtk.ImageMenuItem(_('_Rotate Right')) popup_rotate_left = gtk.ImageMenuItem(_('Rotate _Left')) popup_crop = gtk.MenuItem(_('C_rop...')) + popup_delete = gtk.ImageMenuItem(gtk.STOCK_DELETE) popup_saveselection = gtk.MenuItem(_('_Export selection...')) popup_rotate_right.connect('activate', self.rotate_page_right)