On this page
  1. gettext.install
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

gettext.install

Prev: gettext.GNUTranslations | Up: gettext | Next: gettext.ngettext
Rel: gettext.bindtextdomain, gettext.Catalog, gettext.dgettext, gettext.dngettext
Ref: docs.python.org — gettext.install
Tags: #public #python3 #stdlib #gettext


Import

import gettext
from gettext import install

Signature & Overview

gettext.install(domain, localedir=None, *, names=None)

gettext.install() function.

Usage

import gettext

# Injects `_` into builtins globally; avoid in libraries or multi-language web servers
assert callable(gettext.install)

Gotchas

REPL Inspect

from gettext import install
help(install)

Linked from

Related notes