mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Move translations to transifex.com
Translation management is done through Transifex now for easy translations. Translators should note that fuzzy strings are not used any more since Transifex does not handle it (by choice). In order to pull translations, you need a transifex.com account. Signed-off-by: Kévin Raymond <shaiton@fedoraproject.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
381bde5fad
commit
cfdde3ff63
2 changed files with 11 additions and 8 deletions
8
.tx/config
Normal file
8
.tx/config
Normal file
|
@ -0,0 +1,8 @@
|
|||
[main]
|
||||
host = https://www.transifex.net
|
||||
|
||||
[subsurface.subsurface]
|
||||
file_filter = po/<lang>.po
|
||||
source_file = po/subsurface-new.pot
|
||||
source_lang = en
|
||||
type = PO
|
11
Makefile
11
Makefile
|
@ -259,16 +259,11 @@ $(NSIFILE): $(NSIINPUTFILE)
|
|||
$(INFOPLIST): $(INFOPLISTINPUT)
|
||||
$(shell cat $(INFOPLISTINPUT) | sed -e 's/CFBUNDLEVERSION_TOKEN/$(CFBUNDLEVERSION_STRING)/' > $(INFOPLIST))
|
||||
|
||||
# Transifex merge the translations
|
||||
update-po-files:
|
||||
xgettext -o po/subsurface-new.pot -s -k_ -kN_ --keyword=C_:1c,2 --add-comments="++GETTEXT" *.c
|
||||
for i in po/*.po; do \
|
||||
msgmerge --no-wrap -s -U $$i po/subsurface-new.pot ; \
|
||||
done
|
||||
|
||||
prepare-po-files:
|
||||
for i in po/*.po; do \
|
||||
msgcat --no-wrap $$i -o $$i ; \
|
||||
done
|
||||
tx push -s
|
||||
tx pull -af
|
||||
|
||||
EXTRA_FLAGS = $(GTKCFLAGS) $(GLIB2CFLAGS) $(XML2CFLAGS) \
|
||||
$(XSLT) $(ZIP) $(LIBDIVECOMPUTERCFLAGS) \
|
||||
|
|
Loading…
Reference in a new issue