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

gettext.find

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


Import

import gettext
from gettext import find

Signature & Overview

gettext.find(domain, localedir=None, languages=None, all=False)

gettext.find() function.

Usage

import gettext

# Searches localedir for matching .mo files for the given domain and languages
assert gettext.find("nonexistent_domain_xyz", languages=["en"]) is None

Gotchas

REPL Inspect

from gettext import find
help(find)

Linked from

Related notes