1225
1225
def add_translation(self, id, string):
1226
1226
assert id in self.template.supported_ids, "'%s' is not in supported_ids (file=%s)" % (id, self.filename)
1228
1228
# prevent the `msgid' and `msgstr' entries do not both end with '\n' error
1230
1230
print "Found unwanted \\n at the end of translation id " + id + " lang " + self.lang + ". Dropped"
1233
1233
# prevent the `msgid' and `msgstr' entries do not both begin with '\n' error
1235
1235
print "Found unwanted \\n at the begin of translation id " + id + " lang " + self.lang + ". Dropped"