March 2003
Intermediate to advanced
656 pages
39h 30m
English
install
install(domain,localedir=None,unicode=False)
Installs in Python’s built-in namespace a function
named _ that performs translations specified by
file <lang>/LC_MESSAGES/<domain>.mo
in directory localedir, with language code
<lang> as per
getdefaultlocale. When
localedir is None,
install uses directory
os.path.join(sys.prefix,'share','locale'). When
unicode is true, function
_ accepts and returns Unicode strings rather than
plain strings.
Read now
Unlock full access