我正在尝试在 linux 中本地化我的程序。该项目遵循gnu结构(希望如此)
$ tree -d
.
|-- autom4te.cache
|-- build-aux
|-- data
|-- help
| `-- C
| `-- images
|-- images
|-- m4
|-- po
`-- src
现在,我想本地化我的 package.desktop.in
$ cat data/package.desktop.in
[Desktop Entry]
_Name=package
_GenericName=package
_X-GNOME-FullName= Editor
_Comment=Editor file
_Keywords=Editor
Exec=editor
Icon=editor
Terminal=false
Type=Application
Categories=GNOME;GTK;Utility;
StartupNotify=true
X-GNOME-UsesNotifications=true
我的帮助/Makefile.am 包含:
HELP_LINGUAS = bn_IN
现在,我尝试使用gettext
as 创建 .pot 文件:
po]$ xgettext -o package.pot package.desktop.in
xgettext: warning: file `packege.desktop.in' extension `desktop' is unknown; will try C
xgettext: error while opening "package.desktop.in" for reading: No such file or directory
和
$ cat POTFILES.in
data/package.desktop.in
[type: gettext/glade]data/package-menus.ui
data/org.package.gschema.xml.in
我的数据/包含:
$ tree ../data/*
../data/main-window.ui [error opening dir]
../data/Makefile [error opening dir]
../data/Makefile.am [error opening dir]
../data/Makefile.in [error opening dir]
../data/package.desktop [error opening dir]
../data/package.desktop.in [error opening dir]
../data/package.png [error opening dir]
../data/packege.svg [error opening dir]
../data/org.package.gschema.xml [error opening dir]
../data/org.package.gschema.xml.in [error opening dir]
我也尝试过 intltool,但也失败了。
我在关注这个。请帮助解决这个问题。