:py:mod:`dissect.target.helpers.localeutil` =========================================== .. py:module:: dissect.target.helpers.localeutil Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: :nosignatures: dissect.target.helpers.localeutil.normalize_timezone dissect.target.helpers.localeutil.normalize_language dissect.target.helpers.localeutil.get_resource_string Attributes ~~~~~~~~~~ .. autoapisummary:: dissect.target.helpers.localeutil.WINDOWS_ZONE_MAP .. py:function:: normalize_timezone(input: str) -> str Returns normalized timezone format per IANA TZ standard. Takes a Windows registry ``TimeZoneKeyName`` string as input and translates it to IANA TZ format. Will return the IANA preferred territory ``001`` value of the corresponding timezone. For example, ``Pacific Standard Time`` is translated to ``America/Los_Angeles``. .. py:function:: normalize_language(input: str) -> str Returns normalized locales per ISO-3166. Takes Unix LANG locales and Windows registry languages as input. Output will be in the format ``ISO-3166-1-alpha-2-code_ISO-3166-2``, e.g.: ``en_US``, ``nl_NL`` or ``en_GB``. .. rubric:: References - https://en.wikipedia.org/wiki/ISO_3166 - https://en.wikipedia.org/wiki/ISO_3166-1 - https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 - https://en.wikipedia.org/wiki/ISO_3166-2 .. py:function:: get_resource_string(path: str) -> str .. py:data:: WINDOWS_ZONE_MAP