i18n Python scripts: rename BasicL10NResourceManager._readFgResourceFile()
Class method BasicL10NResourceManager._readFgResourceFile() was not meant to be private; remove the leading underscore.
This commit is contained in:
@@ -1745,8 +1745,8 @@ class L10NResourcePoolManager:
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
resMgr = L10nResMgrForCat(cat)
|
resMgr = L10nResMgrForCat(cat)
|
||||||
return resMgr._readFgResourceFile(xmlFilePath, None, targetTransl, cat,
|
return resMgr.readFgResourceFile(xmlFilePath, None, targetTransl, cat,
|
||||||
None, logger=self.logger)
|
None, logger=self.logger)
|
||||||
|
|
||||||
def readFgTranslationFile(self, xmlFilePath, masterTransl, targetTransl,
|
def readFgTranslationFile(self, xmlFilePath, masterTransl, targetTransl,
|
||||||
cat, langCode):
|
cat, langCode):
|
||||||
@@ -1760,9 +1760,9 @@ class L10NResourcePoolManager:
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
resMgr = L10nResMgrForCat(cat)
|
resMgr = L10nResMgrForCat(cat)
|
||||||
return resMgr._readFgResourceFile(xmlFilePath, masterTransl,
|
return resMgr.readFgResourceFile(xmlFilePath, masterTransl,
|
||||||
targetTransl, cat, langCode,
|
targetTransl, cat, langCode,
|
||||||
logger=self.logger)
|
logger=self.logger)
|
||||||
|
|
||||||
def readFgMasterTranslation(self):
|
def readFgMasterTranslation(self):
|
||||||
"""Read the FlightGear default translation.
|
"""Read the FlightGear default translation.
|
||||||
@@ -1912,8 +1912,8 @@ class BasicL10NResourceManager(L10NResourceManagerBase):
|
|||||||
return rootNode
|
return rootNode
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _readFgResourceFile(cls, xmlFilePath, masterTransl, targetTransl, cat,
|
def readFgResourceFile(cls, xmlFilePath, masterTransl, targetTransl, cat,
|
||||||
langCode, logger=dummyLogger):
|
langCode, logger=dummyLogger):
|
||||||
"""Read a FlightGear XML localization file.
|
"""Read a FlightGear XML localization file.
|
||||||
|
|
||||||
If 'masterTransl' and 'langCode' are None, read the default
|
If 'masterTransl' and 'langCode' are None, read the default
|
||||||
|
|||||||
Reference in New Issue
Block a user