Re: Translation in transifex

Jean-Philippe Braun <jpbraun-4qZELD6FgxhWk0Htik3J/[email protected]> Fri, 26 Aug 2011 09:09:58 +0200
Newsgroups gmane.linux.mandrake.cooker.internationalization
Message-ID <[email protected]>
Le jeudi 25 ao=C3=BBt 2011 =C3=A0 23:28 -0700, Gergely L=C3=B3nyai a =C3=A9=
crit :
> Hi
>=20
> I translated some string in some transifex project tomorrow. How commit
> it to svn?
>=20
> Aleph
>=20

Hi,

You can download the PO file from the web interface and commit it in the
svn, or if you prefer, use the transifex-client to pull the files and
then commit them in the svn (see http://wiki.mandriva.com/en/Transifex)

Example for one project :

1) to be done once :

# install the transifex client
urpmi transifex-client

# checkout the project from svn
export URL=3Dsvn+ssh://svn.mandriva.com/svn/soft/
svn co $URL/draklive-install/trunk/po draklive-install

# go in the project checkout
cd draklive-install

# setup the transifex client configuration (auth)
tx init --host=3Dhttps://transifex.mandriva.com

# this tells transifex client that we are using the draklive-install
# project and the draklive-install ressource (the POT file) in the=20
# project
tx set --execute --auto-local -r draklive-install.draklive-install -s en
-f draklive-install.pot "<lang>.po"

2) once everything is setup, you can do when you want :

tx pull (will get all PO files of the ressource)
tx pull -t fr (will get only the fr PO file)

=3D> check everything is allright

svn ci ...

JP