我正在尝试翻译Python应用程序。所以我按照这个答案的例子:How to bind a text domain to a local folder for gettext under GTK3。
这是我的文件夹'组织:
.
├── mo
│ └── fr
│ └── LC_MESSAGES
│ └── myapp.mo
├── test.glade
└── test.py
这是我的myapp.mo
:
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-09-16 18:48+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: test.glade:66
msgid "Document"
msgstr "Document"
#: test.glade:30
msgid "Edit"
msgstr "Modifier"
#: test.glade:18
msgid "File"
msgstr "Fichier"
#: test.glade:42
msgid "Find"
msgstr "Trouver"
#: test.glade:54
msgid "View"
msgstr "Vue"
我没有修改test.glade
或test.py
。但是当我午餐python3 test.py
时,它还是用英语而不是法语...为什么?