开发者

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

开发者 https://www.devze.com 2023-02-19 05:59 出处:网络
For man pages, I can install them by: man_MANS = \\ program.1 \\ program.5 Is there similar approach to install gettext mo files? like,

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

精彩评论

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

关注公众号