How can I install downloaded translation?

Asked by MaximAL

How can I install translation downloaded from https://translations.launchpad.net/chive/0.5/+translations in PO format?
In chive/protected/messages/ there are some XML’s.
In chive/protected/messages/_translation/ there is only one *.POT file.

Question information

Language:
English Edit question
Status:
Solved
For:
chive Edit question
Assignee:
No assignee Edit question
Solved by:
MaximAL
Solved:
Last query:
Last reply:
Revision history for this message
David Roth (davrot) said :
#1

You would usually import *.POT Translations files via our import command:

admin@workstation:/var/www/chive/trunk/protected$ ./yiic i18nimport

The i18nimport command will look for a folder outside of the current chive directory.
So if you have installed chive in /var/www/chive/ the import command look in the following directory: /var/www/translation/.

Normally launchpad will export all translations to our dedicated translations branch: lp:~davrot/chive/translations

Note that i have created this folder just before, so it is empty at the moment but you can use our old translation branch and copy your downloaded *.POT files over: lp:~mburtscher/chive/translation

So if you want to import the latest translations you can follow these steps:
(assuming chive is in /var/www/chive)

1) cd /var/www/
2) bzr checkout lp:~mburtscher/chive/translation

4) Because the mburtscher branch does not contain the latest translations and my new translation branch has not been imported yet => Overwrite the *.POT files in the _translations folder with your downloaded ones from launchpad (This will not be necessary if you wait till tomorrow as launchpad will have imported the most recent files then).

5) cd /var/www/chive/protected/
6) ./yiic i18nimport

Revision history for this message
David Roth (davrot) said :
#2

You would usually import *.POT Translations files via our import command:

admin@workstation:/var/www/chive/trunk/protected$ ./yiic i18nimport

The i18nimport command will look for a folder outside of the current chive directory.
So if you have installed chive in /var/www/chive/ the import command look in the following directory: /var/www/translation/.

Normally launchpad will export all translations to our dedicated translations branch: lp:~davrot/chive/translations

Note that i have created this folder just before, so it is empty at the moment but you can use our old translation branch and copy your downloaded *.POT files over: lp:~mburtscher/chive/translation

So if you want to import the latest translations you can follow these steps:
(assuming chive is in /var/www/chive)

1) cd /var/www/
2) bzr checkout lp:~mburtscher/chive/translation

4) Because the mburtscher branch does not contain the latest translations and my new translation branch has not been imported yet => Overwrite the *.POT files in the _translations folder with your downloaded ones from launchpad (This will not be necessary if you wait till tomorrow as launchpad will have imported the most recent files then).

5) cd /var/www/chive/protected/
6) ./yiic i18nimport

Revision history for this message
MaximAL (maximal) said :
#3

Oh, thanks, I’m new in Yii.