Added a method to the Project class to set the translations file pattern.

Mon, 15 Aug 2016 17:22:13 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 15 Aug 2016 17:22:13 +0200
changeset 5096
47935c6e4744
parent 5094
c34cabcfdb72
child 5098
bc74f74a95f5

Added a method to the Project class to set the translations file pattern.

APIs/Python3/eric6.api file | annotate | diff | comparison | revisions
Documentation/Help/source.qch file | annotate | diff | comparison | revisions
Documentation/Help/source.qhp file | annotate | diff | comparison | revisions
Documentation/Source/eric6.Project.Project.html file | annotate | diff | comparison | revisions
Project/Project.py file | annotate | diff | comparison | revisions
--- a/APIs/Python3/eric6.api	Mon Aug 15 16:36:17 2016 +0200
+++ b/APIs/Python3/eric6.api	Mon Aug 15 17:22:13 2016 +0200
@@ -7135,6 +7135,7 @@
 eric6.Project.Project.Project.setDirty?4(b)
 eric6.Project.Project.Project.setStatusMonitorAutoUpdate?4(auto)
 eric6.Project.Project.Project.setStatusMonitorInterval?4(interval)
+eric6.Project.Project.Project.setTranslationPattern?4(pattern)
 eric6.Project.Project.Project.showMenu?7
 eric6.Project.Project.Project.sourceFile?7
 eric6.Project.Project.Project.startStatusMonitor?4()
Binary file Documentation/Help/source.qch has changed
--- a/Documentation/Help/source.qhp	Mon Aug 15 16:36:17 2016 +0200
+++ b/Documentation/Help/source.qhp	Mon Aug 15 17:22:13 2016 +0200
@@ -10946,6 +10946,7 @@
       <keyword name="Project.setDirty" id="Project.setDirty" ref="eric6.Project.Project.html#Project.setDirty" />
       <keyword name="Project.setStatusMonitorAutoUpdate" id="Project.setStatusMonitorAutoUpdate" ref="eric6.Project.Project.html#Project.setStatusMonitorAutoUpdate" />
       <keyword name="Project.setStatusMonitorInterval" id="Project.setStatusMonitorInterval" ref="eric6.Project.Project.html#Project.setStatusMonitorInterval" />
+      <keyword name="Project.setTranslationPattern" id="Project.setTranslationPattern" ref="eric6.Project.Project.html#Project.setTranslationPattern" />
       <keyword name="Project.startStatusMonitor" id="Project.startStatusMonitor" ref="eric6.Project.Project.html#Project.startStatusMonitor" />
       <keyword name="Project.startswithProjectPath" id="Project.startswithProjectPath" ref="eric6.Project.Project.html#Project.startswithProjectPath" />
       <keyword name="Project.stopStatusMonitor" id="Project.stopStatusMonitor" ref="eric6.Project.Project.html#Project.stopStatusMonitor" />
--- a/Documentation/Source/eric6.Project.Project.html	Mon Aug 15 16:36:17 2016 +0200
+++ b/Documentation/Source/eric6.Project.Project.html	Mon Aug 15 17:22:13 2016 +0200
@@ -665,6 +665,9 @@
 <td><a href="#Project.setStatusMonitorInterval">setStatusMonitorInterval</a></td>
 <td>Public method to se the interval of the VCS status monitor thread.</td>
 </tr><tr>
+<td><a href="#Project.setTranslationPattern">setTranslationPattern</a></td>
+<td>Public method to set the translation pattern.</td>
+</tr><tr>
 <td><a href="#Project.startStatusMonitor">startStatusMonitor</a></td>
 <td>Public method to start the VCS status monitor thread.</td>
 </tr><tr>
@@ -2423,6 +2426,16 @@
 <dd>
 status monitor interval in seconds (integer)
 </dd>
+</dl><a NAME="Project.setTranslationPattern" ID="Project.setTranslationPattern"></a>
+<h4>Project.setTranslationPattern</h4>
+<b>setTranslationPattern</b>(<i>pattern</i>)
+<p>
+        Public method to set the translation pattern.
+</p><dl>
+<dt><i>pattern</i> (str)</dt>
+<dd>
+translation pattern
+</dd>
 </dl><a NAME="Project.startStatusMonitor" ID="Project.startStatusMonitor"></a>
 <h4>Project.startStatusMonitor</h4>
 <b>startStatusMonitor</b>(<i></i>)
--- a/Project/Project.py	Mon Aug 15 16:36:17 2016 +0200
+++ b/Project/Project.py	Mon Aug 15 17:22:13 2016 +0200
@@ -1252,6 +1252,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