Translating with Pootle/Administration: Difference between revisions
Paulproteus (talk | contribs) New page: So you're an admin of some kind, and you want to: == Add a new string == == Add a new language to an existing project == == Change an English string == |
|||
| Line 2: | Line 2: | ||
== Add a new string == | == Add a new string == | ||
All of this assumes one has a checkout of assumes that one has a read/write checkout of | |||
svn+ssh://svn@code.creativecommons.org/svnroot/i18n/trunk. One other important note is that CC uses two different PO files: The "normal" PO files with English keys and also PO files with logical keys, which are used by cc.engine to actually render the site. | |||
* ./i18n/trunk/po = English-key PO files | |||
* ./i18n/trunk/i18n = logical-key PO files (CC-style) | |||
===./i18n/trunk/master/cc_org.po=== | |||
As the directory name implies, this is the "master" PO file. This is a CC-style PO file. You add your new strings to this file using whatever naming rules might be in effect for the type of string you are adding. Commit your change. | |||
===./i18n/trunk/bin/sync=== | |||
Once you have added your new string(s) you must run ./bin/sync with no arguments. This will propagate the new string(s) to all of the English-key PO files. Commit the many changes which should be visible in the ./i18n/trunk/po/ directory. | |||
=== Make new string(s) available to Pootle === | |||
<pre> | |||
$ ssh translate.creativecommons.org | |||
$ cd /var/www/translate.creativecommons.org/po/ | |||
$ svn up | |||
</pre> | |||
== Add a new language to an existing project == | == Add a new language to an existing project == | ||
== Change an English string == | == Change an English string == | ||
Revision as of 17:01, 18 November 2008
So you're an admin of some kind, and you want to:
Add a new string
All of this assumes one has a checkout of assumes that one has a read/write checkout of svn+ssh://svn@code.creativecommons.org/svnroot/i18n/trunk. One other important note is that CC uses two different PO files: The "normal" PO files with English keys and also PO files with logical keys, which are used by cc.engine to actually render the site.
- ./i18n/trunk/po = English-key PO files
- ./i18n/trunk/i18n = logical-key PO files (CC-style)
./i18n/trunk/master/cc_org.po
As the directory name implies, this is the "master" PO file. This is a CC-style PO file. You add your new strings to this file using whatever naming rules might be in effect for the type of string you are adding. Commit your change.
./i18n/trunk/bin/sync
Once you have added your new string(s) you must run ./bin/sync with no arguments. This will propagate the new string(s) to all of the English-key PO files. Commit the many changes which should be visible in the ./i18n/trunk/po/ directory.
Make new string(s) available to Pootle
$ ssh translate.creativecommons.org $ cd /var/www/translate.creativecommons.org/po/ $ svn up