Python:gettext
lastmod 2025-02-17created 2025-02-171 edits
The gettext module provides internationalization (I18N) and localization (L10N) services for Python modules and applications. It supports both the GNU gettext message catalog API and a higher-level, class-based API that may be more appropriate for Python files. The interface described below lets you write module and application messages in one natural language, and provide a catalog of translated messages for running under different natural languages.
Some hints on localizing Python modules and applications are also given.
See also
Favorite site
- gettext — Multilingual internationalization services — Python 3.14.0a5 documentation
- Building a multilingual translator with Python gettext
- (Python - Korean) How to set the search scope when using GetText
- [Recommended] Let's look at python gettext mo and po files. - Codingdog Blog
- [Recommended] Let's learn how to translate po files with the poedit program. - Codingdog Blog