Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'set_location/po/Makefile')
-rw-r--r--set_location/po/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/set_location/po/Makefile b/set_location/po/Makefile
new file mode 100644
index 0000000..4acc40b
--- /dev/null
+++ b/set_location/po/Makefile
@@ -0,0 +1,34 @@
+PYFILES = $(shell find ../ -type f -name "*.py")
+GLADEFILES = $(wildcard ../*.ui)
+POFILES = $(wildcard *.po)
+
+GLADEHFILES := $(GLADEFILES:.ui=.ui.h)
+
+help:
+ @echo "USAGE:"
+ @echo "make update - updates messages.pot and .po files"
+ @echo "make sr.po - updates sr.po file OR creates new one"
+ @echo " (replace 'sr' with your language code)"
+
+%.h: %
+ intltool-extract --type="gettext/glade" $*
+
+
+messages.pot: $(GLADEHFILES) $(PYFILES)
+ xgettext -k_ -kN_ -o setlocation.pot $(PYFILES) $(GLADEHFILES) --from-code=utf-8
+
+%.po: messages.pot
+ @if test -f $@; then \
+ echo -n "Updating '$*' language ";\
+ msgmerge -U $@ setlocation.pot;\
+ else \
+ msginit -l $*.UTF8 -o $@; \
+ fi
+ $(RM) $(GLADEHFILES)
+
+update: $(POFILES)
+
+clean:
+ $(RM) $(GLADEHFILES)
+
+.PHONY: update