Project/Project.py

branch
6_1_x
changeset 5097
5c3c8bd1cf04
parent 4632
ca310db386ed
equal deleted inserted replaced
5095:49cb6d2eb6a7 5097:5c3c8bd1cf04
1244 """ 1244 """
1245 if self.pdata["TRANSLATIONPATTERN"]: 1245 if self.pdata["TRANSLATIONPATTERN"]:
1246 return self.pdata["TRANSLATIONPATTERN"][0] 1246 return self.pdata["TRANSLATIONPATTERN"][0]
1247 else: 1247 else:
1248 return "" 1248 return ""
1249
1250 def setTranslationPattern(self, pattern):
1251 """
1252 Public method to set the translation pattern.
1253
1254 @param pattern translation pattern
1255 @type str
1256 """
1257 if pattern:
1258 self.pdata["TRANSLATIONPATTERN"] = [pattern]
1259 else:
1260 self.pdata["TRANSLATIONPATTERN"] = []
1249 1261
1250 def addLanguage(self): 1262 def addLanguage(self):
1251 """ 1263 """
1252 Public slot used to add a language to the project. 1264 Public slot used to add a language to the project.
1253 """ 1265 """

eric ide

mercurial