Project/Project.py

branch
6_1_x
changeset 5097
5c3c8bd1cf04
parent 4632
ca310db386ed
--- a/Project/Project.py	Mon Aug 15 16:39:01 2016 +0200
+++ b/Project/Project.py	Mon Aug 15 17:24:13 2016 +0200
@@ -1247,6 +1247,18 @@
         else:
             return ""
     
+    def setTranslationPattern(self, pattern):
+        """
+        Public method to set the translation pattern.
+        
+        @param pattern translation pattern
+        @type str
+        """
+        if pattern:
+            self.pdata["TRANSLATIONPATTERN"] = [pattern]
+        else:
+            self.pdata["TRANSLATIONPATTERN"] = []
+    
     def addLanguage(self):
         """
         Public slot used to add a language to the project.

eric ide

mercurial