1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-31 19:12:32 +01:00
Files
wmaker/WPrefs.app/po/Makefile.am
Christophe CURIS b266808331 created script to check the list of source files to handle for translation
Because the source file is redefined in the 'po/' directories, there is a
possibility that they get misaligned.

There is now a script that will check everything is in line; it is
triggered by "make check".

The case of the "util/" stuff is excluded at current time because the way
they are defined makes it hard to properly deduce the correct list of
sources, and it is not worth, the core need being on wmaker and WPrefs.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2015-01-20 21:29:23 +00:00

73 lines
2.2 KiB
Makefile

CATALOGS = @WPMOFILES@
nlsdir = $(NLSDIR)
CLEANFILES = WPrefs.pot $(CATALOGS)
EXTRA_DIST = bg.po ca.po cs.po de.po es.po et.po fi.po fr.po hr.po hu.po \
it.po ja.po ko.po nl.po pt.po ru.po sk.po zh_CN.po zh_TW.po
POTFILES = \
$(top_srcdir)/WPrefs.app/Appearance.c \
$(top_srcdir)/WPrefs.app/Configurations.c \
$(top_srcdir)/WPrefs.app/Docks.c \
$(top_srcdir)/WPrefs.app/Expert.c \
$(top_srcdir)/WPrefs.app/Focus.c \
$(top_srcdir)/WPrefs.app/FontSimple.c \
$(top_srcdir)/WPrefs.app/Icons.c \
$(top_srcdir)/WPrefs.app/KeyboardSettings.c \
$(top_srcdir)/WPrefs.app/KeyboardShortcuts.c \
$(top_srcdir)/WPrefs.app/Menu.c \
$(top_srcdir)/WPrefs.app/MenuPreferences.c \
$(top_srcdir)/WPrefs.app/MouseSettings.c \
$(top_srcdir)/WPrefs.app/Paths.c \
$(top_srcdir)/WPrefs.app/Preferences.c \
$(top_srcdir)/WPrefs.app/TexturePanel.c \
$(top_srcdir)/WPrefs.app/Themes.c \
$(top_srcdir)/WPrefs.app/WPrefs.c \
$(top_srcdir)/WPrefs.app/WindowHandling.c \
$(top_srcdir)/WPrefs.app/Workspace.c \
$(top_srcdir)/WPrefs.app/main.c
SUFFIXES = .po .mo
.po.mo:
msgfmt -c -o $@ $<
all-local: $(CATALOGS)
WPrefs.pot: $(POTFILES)
xgettext --default-domain=WPrefs \
--add-comments --keyword=_ --keyword=N_ $(POTFILES)
if cmp -s WPrefs.po WPrefs.pot; then \
rm -f WPrefs.po; \
else \
mv -f WPrefs.po WPrefs.pot; \
fi
install-data-local: $(CATALOGS)
$(mkinstalldirs) $(DESTDIR)$(nlsdir)
chmod 755 $(DESTDIR)$(nlsdir)
for n in $(CATALOGS) __DuMmY ; do \
if test "$$n" -a "$$n" != "__DuMmY" ; then \
l=`basename $$n .mo`; \
$(mkinstalldirs) $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES; \
chmod 755 $(DESTDIR)$(nlsdir)/$$l; \
chmod 755 $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES; \
$(INSTALL_DATA) -m 644 $$n $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES/WPrefs.mo; \
fi; \
done
# Create a 'silent rule' for our make check the same way automake does
AM_V_CHKTRANS = $(am__v_CHKTRANS_$(V))
am__v_CHKTRANS_ = $(am__v_CHKTRANS_$(AM_DEFAULT_VERBOSITY))
am__v_CHKTRANS_0 = @echo " CHK translations" ;
am__v_CHKTRANS_1 =
# 'make check' will make sure the tranlation sources are in line with the compiled source
check-local:
$(AM_V_CHKTRANS)$(top_srcdir)/script/check-translation-sources.sh \
"$(srcdir)" -s "$(top_srcdir)/WPrefs.app/Makefile.am"