[python-meh] [PATCH] Migrate l10n to Transifex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch migrates python-meh to Transifex. When I have an approval I will do
a new build -- including pushing the new .pot file and pulling new .po files.
However, I've tried to generate a new .pot file and the 'git diff --stat' says

 po/python-meh.pot |  159 +++++-----------------------------------------------
 1 files changed, 16 insertions(+), 143 deletions(-)

which is quite a big difference. I hope that the old translations will remain in
transifex after pushing such a different file.

--
Vratislav Podzimek

---
 .tx/config  |    8 ++++++++
 Makefile    |    9 ++++++++-
 po/Makefile |    4 ++--
 3 files changed, 18 insertions(+), 3 deletions(-)
 create mode 100644 .tx/config

diff --git a/.tx/config b/.tx/config
new file mode 100644
index 0000000..cbf47cf
--- /dev/null
+++ b/.tx/config
@@ -0,0 +1,8 @@
+[main]
+host = https://www.transifex.net
+
+[python-meh.master]
+file_filter = po/<lang>.po
+source_file = po/python-meh.pot
+source_lang = en
+
diff --git a/Makefile b/Makefile
index 23b98c2..fc67640 100644
--- a/Makefile
+++ b/Makefile
@@ -60,7 +60,14 @@ rpmlog:
 	@git log --pretty="format:- %s (%ae)" $(TAG).. |sed -e 's/@.*)/)/'
 	@echo
 
-bumpver:
+potfile:
+	$(MAKE) -C po potfile
+
+po-pull:
+	tx pull -a --disable-overwrite
+
+bumpver: potfile
+	tx push -s
 	@NEWSUBVER=$$((`echo $(VERSION) |cut -d . -f 2` + 1)) ; \
 	NEWVERSION=`echo $(VERSION).$$NEWSUBVER |cut -d . -f 1,3` ; \
 	DATELINE="* `date "+%a %b %d %Y"` `git config user.name` <`git config user.email`> - $$NEWVERSION-1"  ; \
diff --git a/po/Makefile b/po/Makefile
index c72dc69..59b51bf 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -29,7 +29,7 @@ GLADEFILES = $(wildcard ../ui/*.glade)
 
 all::  update-po $(MOFILES)
 
-$(POTFILE): $(PYSRC) glade-po
+potfile: $(PYSRC) glade-po
 	$(XGETTEXT) -L Python --keyword=_ --keyword=N_ $(PYSRC) tmp/*.h
 	@if cmp -s $(NLSPACKAGE).po $(POTFILE); then \
 	    rm -f $(NLSPACKAGE).po; \
@@ -43,7 +43,7 @@ glade-po: $(GLADEFILES)
 		intltool-extract --type=gettext/glade -l $$f ;\
 	done
 
-update-po: Makefile $(POTFILE) refresh-po
+update-po: Makefile potfile refresh-po
 
 refresh-po: Makefile
 	for cat in $(POFILES); do \
-- 
1.7.4.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux