summaryrefslogtreecommitdiffstats
path: root/po/modules/logview/Makefile.am
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-24 02:13:59 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-24 02:13:59 +0000
commita6d58bb6052ac8cb01805a48c4ad2f129126116f (patch)
treedd867a099fcbb263a8009a9fb22695b87855dad6 /po/modules/logview/Makefile.am
downloadkvirc-a6d58bb6052ac8cb01805a48c4ad2f129126116f.tar.gz
kvirc-a6d58bb6052ac8cb01805a48c4ad2f129126116f.zip
Added KDE3 version of kvirc
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1095341 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'po/modules/logview/Makefile.am')
-rw-r--r--po/modules/logview/Makefile.am74
1 files changed, 74 insertions, 0 deletions
diff --git a/po/modules/logview/Makefile.am b/po/modules/logview/Makefile.am
new file mode 100644
index 00000000..7fafb3ab
--- /dev/null
+++ b/po/modules/logview/Makefile.am
@@ -0,0 +1,74 @@
+###############################################################################
+# KVirc IRC client Makefile - 18.09.99 Szymon Stefanek <pragma at kvirc dot net>
+###############################################################################
+
+# The name of this module
+THISMODULE = logview
+
+# Don't touch this
+tmpdir = $(localedir)
+
+# The *.mo files to generate
+tmp_DATA = logview_ca.mo \
+ logview_cs.mo \
+ logview_it.mo \
+ logview_de.mo \
+ logview_es.mo \
+ logview_pt.mo \
+ logview_ru.mo \
+ logview_pt_BR.mo \
+ logview_fr.mo \
+ logview_hu.mo \
+ logview_fi.mo \
+ logview_uk.mo
+
+# The *.po files to generate
+POFILES = logview_ca.po \
+ logview_cs.po \
+ logview_it.po \
+ logview_de.po \
+ logview_es.po \
+ logview_pt.po \
+ logview_ru.po \
+ logview_pt_BR.po \
+ logview_fr.po \
+ logview_hu.po \
+ logview_fi.po \
+ logview_uk.po
+
+
+###############################################################################
+# STOP EDITING HERE
+###############################################################################
+
+# Killed the fuzzy entries: don't use them , they may SEGV
+# - touch $@ && $(SS_MSGFMT) -fvo $@ $<
+
+CLEANFILES = $(tmp_DATA)
+EXTRA_DIST = $(POFILES)
+
+%.mo: %.po
+ -touch $@ && $(SS_MSGFMT) -vo $@ $<
+
+messages-extract:
+ @find $(topdir)/src/modules/$(THISMODULE)/ -maxdepth 10 -name *.cpp > files; \
+ find $(topdir)/src/modules/$(THISMODULE)/ -maxdepth 10 -name *.h >> files; \
+ xgettext -o $(topdir)/po/modules/$(THISMODULE)/$(THISMODULE).pot -k__tr_ctx -k__tr_no_lookup_ctx -k__tr2qs_ctx -k__tr2wc_ctx -k__tr2ws_ctx -f files; \
+ rm files; \
+ echo "Messages extracted to $(THISMODULE).pot";
+
+messages-update:
+ @old=_old; \
+ if test -f "$(topdir)/po/modules/$(THISMODULE)/$(THISMODULE).pot"; then \
+ for lang in $(POFILES); do \
+ echo "Updating file $$lang"; \
+ mv -f $$lang $$lang$$old; \
+ msgmerge -o $$lang $$lang$$old $(topdir)/po/modules/$(THISMODULE)/$(THISMODULE).pot && rm -f $$lang$$old; \
+ done; \
+ else \
+ echo "----------------------------------------------------"; \
+ echo "- WARNING: ./$(THISMODULE).pot does not exist"; \
+ echo "- WARNING: You must run make messages-extract first"; \
+ echo "----------------------------------------------------"; \
+ fi
+messages: messages-extract messages-update