[accerciser/piotrdrag/unicode-typography] Use Unicode in translatable strings



commit 84e2ec8f05664571aa7be486247301cc217974a2
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Wed May 1 13:02:41 2019 +0200

    Use Unicode in translatable strings
    
    See https://developer.gnome.org/hig/stable/typography.html

 plugins/interface_view.py                 | 2 +-
 plugins/interface_view.ui                 | 4 ++--
 src/lib/accerciser/about_dialog.py        | 4 ++--
 src/lib/accerciser/accerciser.py          | 2 +-
 src/lib/accerciser/accessible_treeview.py | 2 +-
 src/lib/accerciser/bookmarks.py           | 8 ++++----
 src/lib/accerciser/plugin/view.py         | 4 ++--
 7 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/plugins/interface_view.py b/plugins/interface_view.py
index 56631fb..f8de8a2 100644
--- a/plugins/interface_view.py
+++ b/plugins/interface_view.py
@@ -345,7 +345,7 @@ class _SectionAccessible(_InterfaceSection):
     if 'accessibleId' in dir(acc) and acc.accessibleId:
         self.id_label.set_label(acc.accessibleId)
     else:
-        self.id_label.set_label(_('(no id)'))
+        self.id_label.set_label(_('(no ID)'))
 
     states = [pyatspi.stateToString(s) for s in acc.getState().getStates()]
     states.sort()
diff --git a/plugins/interface_view.ui b/plugins/interface_view.ui
index c052338..29b1efd 100644
--- a/plugins/interface_view.ui
+++ b/plugins/interface_view.ui
@@ -221,7 +221,7 @@
                                     <property name="visible">True</property>
                                     <property name="can_focus">False</property>
                                     <property name="events">GDK_POINTER_MOTION_MASK | 
GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
-                                    <property name="label" translatable="yes">(no id)</property>
+                                    <property name="label" translatable="yes">(no ID)</property>
                                     <property name="selectable">True</property>
                                     <property name="xalign">0</property>
                                     <attributes>
@@ -236,7 +236,7 @@
                                 <property name="visible">True</property>
                                 <property name="can_focus">False</property>
                                 <property name="events">GDK_POINTER_MOTION_MASK | 
GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
-                                <property name="label" translatable="yes">Id</property>
+                                <property name="label" translatable="yes">ID</property>
                                 <attributes>
                                   <attribute name="weight" value="bold"/>
                                 </attributes>
diff --git a/src/lib/accerciser/about_dialog.py b/src/lib/accerciser/about_dialog.py
index 04aaea5..18c2ad8 100644
--- a/src/lib/accerciser/about_dialog.py
+++ b/src/lib/accerciser/about_dialog.py
@@ -51,9 +51,9 @@ class AccerciserAboutDialog(gtk.AboutDialog):
   DOCUMENTERS = ['Eitan Isaacson <eitan ascender com>']
   TRANSLATORS = _('translator-credits')
   COMMENTS = _('An interactive Python accessibility explorer')
-  COPYRIGHT =  _('accerciser Copyright (c) 2006, 2007 IBM Corporation (BSD)')
+  COPYRIGHT =  _('accerciser Copyright © 2006, 2007 IBM Corporation (BSD)')
   LICENSE = \
-      _('The New BSD License See the COPYING and NOTICE files for details.')
+      _('The New BSD License. See the COPYING and NOTICE files for details.')
   WEB_URL = 'http://live.gnome.org/Accerciser'
   WEB_LABEL = _('Web site')
   def __init__(self):
diff --git a/src/lib/accerciser/accerciser.py b/src/lib/accerciser/accerciser.py
index 2e68596..8aa4776 100644
--- a/src/lib/accerciser/accerciser.py
+++ b/src/lib/accerciser/accerciser.py
@@ -77,7 +77,7 @@ class Main(Tools):
     main_actions.add_actions([
         ('Quit', gtk.STOCK_QUIT, None, 
          '<control>q', 'Quit Accerciser', self._onQuit),
-        ('Preferences', gtk.STOCK_PREFERENCES, _('_Preferences...'),
+        ('Preferences', gtk.STOCK_PREFERENCES, _('_Preferences…'),
          '<control>p', 'Show preferences', self._onShowPreferences),
         ('Contents', gtk.STOCK_HELP, _('_Contents'),
          'F1', 'View contents of manual', self._onHelp),
diff --git a/src/lib/accerciser/accessible_treeview.py b/src/lib/accerciser/accessible_treeview.py
index 664226a..fceca54 100644
--- a/src/lib/accerciser/accessible_treeview.py
+++ b/src/lib/accerciser/accessible_treeview.py
@@ -563,7 +563,7 @@ class AccessibleTreeView(gtk.TreeView, ToolsAccessor):
         ('RefreshCurrent', gtk.STOCK_JUMP_TO, _('Refresh _Node'),
         # Translators: Appears as tooltip
         #
-         None, _('Refresh selected node\'s children'), 
+         None, _('Refresh selected node’s children'), 
          self._refreshCurrentLevel)])  
 
     self.refresh_current_action = self.action_group.get_action('RefreshCurrent')
diff --git a/src/lib/accerciser/bookmarks.py b/src/lib/accerciser/bookmarks.py
index d85b569..e805c03 100644
--- a/src/lib/accerciser/bookmarks.py
+++ b/src/lib/accerciser/bookmarks.py
@@ -63,10 +63,10 @@ class BookmarkStore(gtk.ListStore):
     '''
     self._bookmarks_action_group.add_actions(
       [('AddBookmark', gtk.STOCK_ADD, 
-        _('_Add Bookmark...'), '<Control>d',
+        _('_Add Bookmark…'), '<Control>d',
         _('Bookmark selected accessible.'), self._onAddBookmark),
        ('EditBookmarks', gtk.STOCK_EDIT, 
-        _('_Edit Bookmarks...'), None,
+        _('_Edit Bookmarks…'), None,
         _('Manage bookmarks.'), self._onEditBookmarks)])
 
 
@@ -325,7 +325,7 @@ class BookmarkStore(gtk.ListStore):
       @param bookmarks_store: Bookmarks manager.
       @type bookmarks_store: L{BookmarkStore}
       '''
-      gtk.Dialog.__init__(self, name=_('Edit Bookmarks...'))
+      gtk.Dialog.__init__(self, name=_('Edit Bookmarks…'))
       self.add_buttons(gtk.STOCK_CLOSE, gtk.ResponseType.CLOSE)
       self.set_default_size(480, 240)
       self.connect('response', self._onResponse)
@@ -516,7 +516,7 @@ class BookmarkStore(gtk.ListStore):
       @param bookmark: New bookmark to edit.
       @type bookmark: L{BookmarkStore._Bookmark}
       '''
-      gtk.Dialog.__init__(self, _('Add Bookmark...'))
+      gtk.Dialog.__init__(self, _('Add Bookmark…'))
       self.add_button(gtk.STOCK_CANCEL, gtk.ResponseType.CANCEL)
       ok_button = self.add_button(gtk.STOCK_ADD, gtk.ResponseType.OK)
       ok_button.set_sensitive(False)
diff --git a/src/lib/accerciser/plugin/view.py b/src/lib/accerciser/plugin/view.py
index 8b486b1..40cda06 100644
--- a/src/lib/accerciser/plugin/view.py
+++ b/src/lib/accerciser/plugin/view.py
@@ -1071,7 +1071,7 @@ class MultiViewModel(list, BaseViewModel):
       menu_item = gtk.SeparatorMenuItem()
       self.append(menu_item)
       menu_item.show()
-      menu_item = gtk.MenuItem(label="<i>" + _('_New view...') + "</i>")
+      menu_item = gtk.MenuItem(label="<i>" + _('_New view…') + "</i>")
       menu_item.get_child().set_use_markup(True)
       menu_item.connect('activate', self._onItemActivated, 
                         context_plugin, transient_window)
@@ -1127,7 +1127,7 @@ class MultiViewModel(list, BaseViewModel):
         @type transient_window: gtk.Window
         '''
         self.view_manager = view_manager
-        gtk.Dialog.__init__(self, _('New View...'), transient_window)
+        gtk.Dialog.__init__(self, _('New View…'), transient_window)
         self.add_buttons(gtk.STOCK_OK, gtk.ResponseType.OK,
                          gtk.STOCK_CLOSE, gtk.ResponseType.CLOSE)
         self.set_default_response(gtk.ResponseType.OK)


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