i18n Python scripts: minor changes
- Remove unnecessary imports These imports were a leftover from early versions; now, they are done in modules such as flightgear.meta.i18n and don't need to be in the calling scripts anymore. - Fix an exception message
This commit is contained in:
@@ -684,8 +684,7 @@ class Translation:
|
||||
|
||||
def mergeMasterForCategory(self, masterTransl, cat, logger=dummyLogger):
|
||||
if cat not in masterTransl:
|
||||
raise BadAPIUse("Bad API use: category {!r} not in " \
|
||||
"'masterTransl'".format(cat))
|
||||
raise BadAPIUse("category {!r} not in 'masterTransl'".format(cat))
|
||||
elif cat not in self:
|
||||
# Category appeared in 'masterTransl' that wasn't in 'self'
|
||||
self.resetCategory(cat)
|
||||
|
||||
Reference in New Issue
Block a user