本文整理汇总了Python中arelle.Locale.getUserLocale方法的典型用法代码示例。如果您正苦于以下问题:Python Locale.getUserLocale方法的具体用法?Python Locale.getUserLocale怎么用?Python Locale.getUserLocale使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类arelle.Locale
的用法示例。
在下文中一共展示了Locale.getUserLocale方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from arelle import Locale [as 别名]
# 或者: from arelle.Locale import getUserLocale [as 别名]
def __init__(self, cntlr):
self.cntlr = cntlr
self.validateDisclosureSystem = False
self.disclosureSystem = DisclosureSystem.DisclosureSystem(self)
self.validateCalcLB = False
self.validateInferDecimals = False
self.validateUtr = False
self.loadedModelXbrls = []
from arelle import Locale
self.locale = Locale.getUserLocale()
self.defaultLang = Locale.getLanguageCode()
示例2: __init__
# 需要导入模块: from arelle import Locale [as 别名]
# 或者: from arelle.Locale import getUserLocale [as 别名]
def __init__(self, cntlr):
self.cntlr = cntlr
self.validateDisclosureSystem = False
self.disclosureSystem = DisclosureSystem.DisclosureSystem(self)
self.validateCalcLB = False
self.validateInferDecimals = False
self.validateInfoset = False
self.validateUtr = False
self.abortOnMajorError = False
self.collectProfileStats = False
self.loadedModelXbrls = []
from arelle import Locale
self.locale = Locale.getUserLocale(cntlr.config.get("userInterfaceLocaleOverride",""))
self.defaultLang = Locale.getLanguageCode()