util/TranslationCatalogs.py
changeset 1784 64beb9e9c749
parent 1762 fcc406143e5b
child 1806 6b4d0f4f2fbc
--- a/util/TranslationCatalogs.py	Mon Aug 21 20:17:19 2017 +0000
+++ b/util/TranslationCatalogs.py	Mon Aug 21 23:22:58 2017 +0300
@@ -22,7 +22,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
-import os 
+import os
 
 import wx
 
@@ -32,6 +32,7 @@
 # Define locale for wx
 locale = wx.Locale(langid)
 
+
 def GetDomain(path):
     for name in os.listdir(path):
         filepath = os.path.join(path, name)
@@ -44,9 +45,14 @@
             return basename
     return None
 
+
 def AddCatalog(locale_dir):
     if os.path.exists(locale_dir) and os.path.isdir(locale_dir):
         domain = GetDomain(locale_dir)
         if domain is not None:
             locale.AddCatalogLookupPathPrefix(locale_dir)
             locale.AddCatalog(domain)
+
+
+def NoTranslate(x):
+        return x