Korean Localization update, etc.
[wmaker-crm.git] / WPrefs.app / po / Makefile.am
bloba3b0871da02c805071426d04953f056660d79644
1 CATALOGS = @WPMOFILES@
3 nlsdir = $(NLSDIR)
5 CLEANFILES = WPrefs.pot $(CATALOGS)
7 EXTRA_DIST = bg.po ca.po cs.po de.po es.po et.po fi.po fr.po hr.po hu.po \
8         it.po ja.po ko.po pt.po ru.po sk.po zh_CN.po zh_TW.po
10 POTFILES  = \
11         $(top_builddir)/WPrefs.app/Appearance.c \
12         $(top_builddir)/WPrefs.app/Configurations.c \
13         $(top_builddir)/WPrefs.app/Docks.c \
14         $(top_builddir)/WPrefs.app/Expert.c \
15         $(top_builddir)/WPrefs.app/Focus.c \
16         $(top_builddir)/WPrefs.app/FontSimple.c \
17         $(top_builddir)/WPrefs.app/Icons.c \
18         $(top_builddir)/WPrefs.app/KeyboardSettings.c \
19         $(top_builddir)/WPrefs.app/KeyboardShortcuts.c \
20         $(top_builddir)/WPrefs.app/Menu.c \
21         $(top_builddir)/WPrefs.app/MenuPreferences.c \
22         $(top_builddir)/WPrefs.app/MouseSettings.c \
23         $(top_builddir)/WPrefs.app/Paths.c \
24         $(top_builddir)/WPrefs.app/Preferences.c \
25         $(top_builddir)/WPrefs.app/TexturePanel.c \
26         $(top_builddir)/WPrefs.app/Themes.c \
27         $(top_builddir)/WPrefs.app/WPrefs.c \
28         $(top_builddir)/WPrefs.app/WindowHandling.c \
29         $(top_builddir)/WPrefs.app/Workspace.c \
30         $(top_builddir)/WPrefs.app/main.c
32 SUFFIXES = .po .mo
34 .po.mo: 
35         msgfmt -c -o $@ $<
38 all-local: $(CATALOGS)
40 WPrefs.pot: $(POTFILES)
41         xgettext --default-domain=WPrefs \
42         --add-comments --keyword=_ --keyword=N_ $(POTFILES)
43         if cmp -s WPrefs.po WPrefs.pot; then \
44             rm -f WPrefs.po; \
45         else \
46             mv -f WPrefs.po WPrefs.pot; \
47         fi
50 install-data-local:  $(CATALOGS)
51         $(mkinstalldirs) $(DESTDIR)$(nlsdir)
52         chmod 755 $(DESTDIR)$(nlsdir) 
53         for n in $(CATALOGS) __DuMmY ; do \
54                 if test "$$n" -a "$$n" != "__DuMmY" ; then \
55                         l=`basename $$n .mo`; \
56                         $(mkinstalldirs) $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES; \
57                         chmod 755 $(DESTDIR)$(nlsdir)/$$l; \
58                         chmod 755 $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES; \
59                         $(INSTALL_DATA) -m 644 $$n $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES/WPrefs.mo; \
60                 fi; \
61         done