/
niceSOFT
/
gettext
Обзор
Документация
Войти
/
niceSOFT
/
gettext
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
gettext-tools/examples/hello-python/hello.py.in
14 строк
375 B
Bruno Haible
examples: hello-python: Make it work with Python 3.
06 дек 2024, 13:50
06 дек 2024, 13:50
0d05083
Код
Авторство
О чём код?
# Example for use of GNU gettext. # This file is in the public domain. # # Source code of the Python program. import gettext import os gettext.textdomain('hello-python') gettext.bindtextdomain('hello-python', '@localedir@') print(gettext.gettext("Hello, world!")) print(gettext.gettext("This program is running as process number %(pid)d.") % { 'pid': os.getpid() })