Project/Project.py

changeset 5096
47935c6e4744
parent 4985
03ac1a030529
child 5098
bc74f74a95f5
equal deleted inserted replaced
5094:c34cabcfdb72 5096:47935c6e4744
1249 """ 1249 """
1250 if self.pdata["TRANSLATIONPATTERN"]: 1250 if self.pdata["TRANSLATIONPATTERN"]:
1251 return self.pdata["TRANSLATIONPATTERN"][0] 1251 return self.pdata["TRANSLATIONPATTERN"][0]
1252 else: 1252 else:
1253 return "" 1253 return ""
1254
1255 def setTranslationPattern(self, pattern):
1256 """
1257 Public method to set the translation pattern.
1258
1259 @param pattern translation pattern
1260 @type str
1261 """
1262 if pattern:
1263 self.pdata["TRANSLATIONPATTERN"] = [pattern]
1264 else:
1265 self.pdata["TRANSLATIONPATTERN"] = []
1254 1266
1255 def addLanguage(self): 1267 def addLanguage(self):
1256 """ 1268 """
1257 Public slot used to add a language to the project. 1269 Public slot used to add a language to the project.
1258 """ 1270 """

eric ide

mercurial