Просмотр исходного кода

Add comments for translators and fix gettext usage (trunk, partial backport of https://trac.osgeo.org/grass/changeset/67648)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@67650 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 9 лет назад
Родитель
Сommit
a748767232
3 измененных файлов с 5 добавлено и 2 удалено
  1. 2 0
      gui/wxpython/psmap/dialogs.py
  2. 2 1
      lib/init/grass.py
  3. 1 1
      lib/vector/diglib/struct_alloc.c

+ 2 - 0
gui/wxpython/psmap/dialogs.py

@@ -760,6 +760,7 @@ class MapFramePanel(wx.Panel):
         border.Add(item = sizer, proportion = 0, flag = wx.ALL | wx.EXPAND, border = 5)
         
         # border
+        # GTC Line around legend or map frame
         box   = wx.StaticBox (parent = self, id = wx.ID_ANY, label = " %s " % _("Border"))        
         sizer = wx.StaticBoxSizer(box, wx.HORIZONTAL)
         gridBagSizer = wx.GridBagSizer(hgap = 5, vgap = 5)
@@ -2651,6 +2652,7 @@ class LegendDialog(PsmapDialog):
         self.sizePositionFont(legendType = 'vector', parent = panel, mainSizer = border)
          
         # border
+        # GTC  Line around legend or map frame
         box   = wx.StaticBox (parent = panel, id = wx.ID_ANY, label = " %s " % _("Border"))
         sizer = wx.StaticBoxSizer(box, wx.VERTICAL)
         flexGridSizer = wx.FlexGridSizer(cols = 2, hgap = 5, vgap = 5)

+ 2 - 1
lib/init/grass.py

@@ -873,7 +873,7 @@ def check_lock():
     if not os.path.exists(location):
         fatal(_("Path '%s' doesn't exist") % location)
     if not os.access(location, os.W_OK):
-        error = "Path '%s' not accessible.\n" % location
+        error = "Path '%s' not accessible." % location
         stat_info = os.stat(location)
         mapset_uid = stat_info.st_uid
         if mapset_uid != os.getuid():
@@ -1040,6 +1040,7 @@ r"""
 %-41sg.manual -i
 %-41sg.version -c
 """ % (_("GRASS GIS homepage:"),
+        # GTC Running through: SHELL NAME
        _("This version running through:"),
        shellname, os.getenv('SHELL'),
        _("Help is available with the command:"),

+ 1 - 1
lib/vector/diglib/struct_alloc.c

@@ -488,6 +488,6 @@ int dig_isle_alloc_line(struct P_isle * isle, int add)
 */
 int dig_out_of_memory()
 {
-    G_warning(_("Out of memmory"));
+    G_warning(_("Out of memory"));
     return -1;
 }