allowcom msgqã®çµ±åãã¼ããã·ã§ã³ãå¤ãä¿®æ£ã gettextã¨ããä»çµã¿ã使ããããã«ãªã£ã¦ããgettextã¯Cè¨èªãªã©ã§ãå©ç¨å¯ã æ¥æ¬èªåã®ä¾ã追ã£ã¦è¦ã¦ãã*1 æ¥æ¬èªå対象ã¢ã㪠test.py import sys import gettext gettext.install("test","/usr/share/locale") i=1 sys.stdout.write(_("test %d") % i)å®è¡çµæ: test 1 ã¨è¡¨ç¤ºãããã ãã å½éå対象ã«ãããæååã_(...)ã§å²ãã ä»åã¯_("test %d")ã¨ãªã£ã¦ãã gettext.installã§ãå½éåã¡ãã»ã¼ã¸ãã¡ã¤ã«(moãã¡ã¤ã«)ã®ä½ç½®ãæå® /usr/share/locale/|è¨èªå|/LC_MESSAGES/test.mo ããmoãã¡ã¤ã«ãèªãããã«ãªãã pygette
{{#tags}}- {{label}}
{{/tags}}