开发者

How to install gettext mo files into /usr/share/locale using Automake?

For man pages, I can install them by:

man_MANS = \
    program.1 \
    program.5

Is there similar approach to install gettext mo files? like,

locale_MESSAGES = \
    program.mo.en_US \
    program.mo.zh_CN

instead of,

locale_en_USdir = ${localedir}/en_US/LC_MESSAGES
locale_zh_CNdir = ${localedir}/zh_CN/LC_MESSAGES

locale_en_US_DATA = \
    po/en_US/program.mo开发者_Python百科

locale_zh_CN_DATA = \
    po/zh_CN/program.mo

Any idea?


The gettextize program will create/update the Makefiles for you. See also A. Duret-Lutz's autotools tutorial; the gettext parts starts at p. 468.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜