[PATCH] Move translations to transifex.com (was: Translation management)

Kévin Raymond shaiton at fedoraproject.org
Fri Mar 1 00:21:39 PST 2013


> Ok, I signed up for transifex and am now trying to figure out how this
> works :-)

Nice, I've just added you as a maintainer (feel free to remove me from the
maintainer list now as I won't probably need push POT access now).
This is done here: https://www.transifex.com/projects/p/subsurface/edit/
Ask if there are settings that you don't understand.

> 
> > diff --git a/Makefile b/Makefile
> > index a8e4d2f..884e024 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -243,16 +243,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
> >  
> 
> so in order to run "make update-po-files" one has to have the transifex
> client software installed - but that is not needed for building
> subsurface, correct?

Exact. This target is not called while building subsurface.
The update-po-files target needs the maintainer access as it is pushing
the newly created POT at Transifex ("tx push -s").

We could spread that in three targets,
"make pot", then "make pushPOT", and finally "make pullPOS". Doing so
would be needed if:
- people would like to build the POT by themself (is there a need?)
- people would like to pull latest translations IF they are registered at
  transifex.com.

Tell me, I can correct the patches accordingly.

In order to build subsurface, one would need to have a transifex.com
account if he wants to pull latest translations, or he will just stick
with those on the repo.

-- 
Kévin Raymond
(Shaiton)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130301/096cdc9d/attachment.pgp>


More information about the subsurface mailing list