dissect.target.helpers.localeutil#

Module Contents#

Functions#

normalize_timezone

Returns normalized timezone format per IANA TZ standard.

normalize_language

Returns normalized locales per ISO-3166. Takes Unix LANG locales and Windows registry languages as input.

get_resource_string

Attributes#

dissect.target.helpers.localeutil.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.

dissect.target.helpers.localeutil.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_ISO-3166-2, e.g.: en_US, nl_NL or en_GB.

dissect.target.helpers.localeutil.get_resource_string(path: str) str#
dissect.target.helpers.localeutil.WINDOWS_ZONE_MAP#