Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/i18n/Makefile.in.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/i18n/Makefile.in.in')
-rw-r--r--src/i18n/Makefile.in.in53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/i18n/Makefile.in.in b/src/i18n/Makefile.in.in
new file mode 100644
index 0000000..5c444f8
--- /dev/null
+++ b/src/i18n/Makefile.in.in
@@ -0,0 +1,53 @@
+PO-FILES=@POFILES@
+LANGUAGES=$(PO-FILES:.po=)
+
+# Maybe this should be autogenerated by "configure".
+LOCALEDIR=@LOCALEDIR@
+
+# If other files will be translated, they must be also here:
+CSOURCES=../ui/ui.c ../ui-hlp/menu.c \
+../ui-hlp/play.c ../ui-hlp/ui_helper.c \
+../engine/zoom.c ../engine/btrace.c \
+../ui/dialog.c ../ui/filesel.c ../ui-hlp/render.c \
+../ui/ui-drv/win32/ui_win32.c \
+../ui/ui-drv/cocoa/AppController.m \
+../ui/ui-drv/cocoa/CustomDialog.m
+
+
+MO-FILES = $(LANGUAGES:=.mo)
+
+all: $(MO-FILES)
+
+install: $(MO-FILES)
+ @for i in $(LANGUAGES); do \
+ @INSTALL@ -d $(DESTDIR)$(LOCALEDIR)/$$i/LC_MESSAGES; \
+ @INSTALL@ -m 444 $$i.mo $(DESTDIR)$(LOCALEDIR)/$$i/LC_MESSAGES/xaos.mo; \
+ done
+
+install-win: $(MO-FILES)
+ @for i in $(LANGUAGES); do \
+ @INSTALL@ -d $(DESTDIR)/locale/$$i/LC_MESSAGES; \
+ @INSTALL@ -m 444 $$i.mo $(DESTDIR)/locale/$$i/LC_MESSAGES/xaos.mo; \
+ done
+
+clean:
+ rm -f $(MO-FILES)
+
+distclean: clean
+ rm Makefile
+
+messages.pot: $(CSOURCES)
+ @XGETTEXT@ -o messages.pot $(CSOURCES)
+
+$(PO-FILES): messages.pot
+ test -e $@
+ @MSGMERGE@ $@ messages.pot > $@.new
+ mv $@.new $@
+
+$(MO-FILES): $(PO-FILES)
+ @MSGFMT@ -o $@ -c -v --statistics $(@:.mo=.po)
+
+new-languages: Makefile
+ @for i in $(LANGUAGES); do \
+ test -e $$i.po || cp messages.pot $$i.po; \
+ done