[ocrfeeder] Fix unicode strings translation (gb#644009)



commit d85c0342663102f621e8978624c28815827555d3
Author: Krzysztof Chojnowski <frirajder gmail com>
Date:   Sat Mar 12 13:54:48 2011 +0100

    Fix unicode strings translation (gb#644009)

 src/ocrfeeder/studio/studioBuilder.py   |    6 +++---
 src/ocrfeeder/studio/widgetModeler.py   |    8 ++++----
 src/ocrfeeder/studio/widgetPresenter.py |    8 ++++----
 3 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/src/ocrfeeder/studio/studioBuilder.py b/src/ocrfeeder/studio/studioBuilder.py
index 832e2d2..3850217 100644
--- a/src/ocrfeeder/studio/studioBuilder.py
+++ b/src/ocrfeeder/studio/studioBuilder.py
@@ -193,7 +193,7 @@ class Studio:
                                                         self.main_window.window)
         item_obtain = AsyncItem(lib.obtainScanners,(),
                                 self.__obtainScannersFinishedCb,(dialog,))
-        info_obtain = (_('Obtaining scanners'), _('Please waitâ?¦'))
+        info_obtain = (_('Obtaining scanners'), _(u'Please waitâ?¦'))
         dialog.setItemsList([(info_obtain, item_obtain)])
         dialog.run()
 
@@ -219,7 +219,7 @@ class Studio:
                 self.main_window.window)
             item_scan = AsyncItem(lib.scan,(device,),
                                   self.__scanFinishedCb,(dialog_scan,))
-            info_scan = (_('Scanning'), _('Please waitâ?¦'))
+            info_scan = (_('Scanning'), _(u'Please waitâ?¦'))
             dialog_scan.setItemsList([(info_scan, item_scan)])
             dialog_scan.run()
         else:
@@ -261,7 +261,7 @@ class Studio:
                               self.configuration_manager.temporary_dir),
                              self.__loadPdfFinishedCb,
                              (dialog,))
-            info = (_('Loading PDF'), _('Please waitâ?¦'))
+            info = (_('Loading PDF'), _(u'Please waitâ?¦'))
             dialog.setItemsList([(info, item)])
             dialog.run()
 
diff --git a/src/ocrfeeder/studio/widgetModeler.py b/src/ocrfeeder/studio/widgetModeler.py
index 554198e..d847bc9 100644
--- a/src/ocrfeeder/studio/widgetModeler.py
+++ b/src/ocrfeeder/studio/widgetModeler.py
@@ -454,12 +454,12 @@ class ImageReviewer_Controler:
                               index == item_list_length - 1,
                               index == 0))
             if item_list_length == 1:
-                item_info = (_('Preparing image'), _('Please waitâ?¦'))
+                item_info = (_('Preparing image'), _(u'Please waitâ?¦'))
             else:
                 item_info = (_('Preparing image %(current_index)s/%(total)s') % \
                              {'current_index': index + 1,
                               'total': item_list_length},
-                             _('Please waitâ?¦'))
+                             _(u'Please waitâ?¦'))
             item_list.append((item_info,item))
         dialog.setItemsList(item_list)
         dialog.run()
@@ -511,7 +511,7 @@ class ImageReviewer_Controler:
                          (reviewer.path_to_image,),
                          self.__deskewCurrentImageFinishedCb,
                          (dialog, reviewer))
-        item_info = (_('Deskewing image'), _('Please waitâ?¦'))
+        item_info = (_('Deskewing image'), _(u'Please waitâ?¦'))
         dialog.setItemsList([(item_info, item)])
         dialog.run()
 
@@ -562,7 +562,7 @@ class ImageReviewer_Controler:
                          (image_reviewer,),
                          self.__performRecognitionForReviewerFinishedCb,
                          (dialog, image_reviewer,))
-        info = (_('Recognizing Document'), _('Please waitâ?¦'))
+        info = (_('Recognizing Document'), _(u'Please waitâ?¦'))
         dialog.setItemsList([(info, item)])
         dialog.run()
 
diff --git a/src/ocrfeeder/studio/widgetPresenter.py b/src/ocrfeeder/studio/widgetPresenter.py
index c523471..e34c270 100644
--- a/src/ocrfeeder/studio/widgetPresenter.py
+++ b/src/ocrfeeder/studio/widgetPresenter.py
@@ -155,12 +155,12 @@ class MainWindow:
                                   ('Quit', gtk.STOCK_QUIT, _('_Quit'), None, _('Exit the program'), menu_items['exit']),
                                   ('OpenProject', gtk.STOCK_OPEN, _('_Open'), None, _('Open project'), menu_items['open_project']),
                                   ('SaveProject', gtk.STOCK_SAVE, _('_Save'), None, _('Save project'), menu_items['save_project']),
-                                  ('SaveProjectAs', gtk.STOCK_SAVE_AS, _('_Save Asâ?¦'), '<control><shift>s', _('Save project with a chosen name'), menu_items['save_project_as']),
+                                  ('SaveProjectAs', gtk.STOCK_SAVE_AS, _(u'_Save Asâ?¦'), '<control><shift>s', _('Save project with a chosen name'), menu_items['save_project_as']),
                                   ('AddImage', gtk.STOCK_ADD, _('_Add Image'), None, _('Add another image'), menu_items['add_image']),
                                   ('AddFolder', gtk.STOCK_ADD, _('Add _Folder'), None, _('Add all images in a folder'), menu_items['add_folder']),
                                   ('AppendProject', gtk.STOCK_ADD, _('Append Project'), None, _('Load a project and append it to the current one'), menu_items['append_project']),
                                   ('ImportPDF', gtk.STOCK_ADD, _('_Import PDF'), None, _('Import PDF'), menu_items['import_pdf']),
-                                  ('Export', None, _('_Exportâ?¦'), '<control><shift>e', _('Export to a chosen format'), menu_items['export_dialog']),
+                                  ('Export', None, _(u'_Exportâ?¦'), '<control><shift>e', _('Export to a chosen format'), menu_items['export_dialog']),
                                   ('Edit', None, _('_Edit')),
                                   ('EditPage', gtk.STOCK_EDIT, _('_Edit Page'), None, _('Edit page settings'), menu_items['edit_page']),
                                   ('Preferences', gtk.STOCK_PREFERENCES, _('_Preferences'), None, _('Configure the application'), menu_items['preferences']),
@@ -770,7 +770,7 @@ class PageSizeDialog(gtk.Dialog):
         self.paper_sizes = gtk.combo_box_new_text()
         papers = PAPER_SIZES.keys()
         papers.sort()
-        self.paper_sizes.append_text(_('Customâ?¦'))
+        self.paper_sizes.append_text(_(u'Customâ?¦'))
         for paper in papers:
             self.paper_sizes.append_text(paper)
         active_index = self.__checkIfSizeIsStandard(page_size)
@@ -904,7 +904,7 @@ class UnpaperDialog(gtk.Dialog):
         if os.path.exists(unpapered_image):
             unpapered_image = lib.getNonExistingFileName(unpapered_image)
         command += ' %s %s' % (name, unpapered_image)
-        progress_bar = CommandProgressBarDialog(command, _('Performing Unpaper'), _('Performing unpaper. Please waitâ?¦'))
+        progress_bar = CommandProgressBarDialog(command, _('Performing Unpaper'), _(u'Performing unpaper. Please waitâ?¦'))
         progress_bar.run()
         self.unpapered_image = unpapered_image
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]