Here are some informations I use to commit my translations on SVN.My little SVN MementoPre-requisite
Having asked for an SVN developper account at firstname.lastname@example.org
. The SVN username has to be YourFirstname.YourName
(all in small case). You also have to provide a shadow password. It can be generated by the following command :
python -c "import crypt; print crypt.crypt('password', 'xy')"
' should be replaced by the password of your choice.1. Download an existing file
If there is an incomplete .po file for your language, you can finish its translation with :
snc co url-of-file-to-be-edited
For example :
svn co http://svn.pardus.org.tr/uludag/trunk/kde4/package-manager/manager/src/package-manager.notifyrc
This command downloads the corresponding files and folders on your hard drive.2. Create a new file
If there is no po file available yet for your language, you have to create one. To do so, open Lokalize with the .pot
file, begin to edit it and save a copy of it
as fr.po, leaving the original .pot file untouched, so that there is the original .pot plus the newly created fr.po file. DO NOT EDIT THE ORIGINAL .POT FILE at all, because it will be reused by other translators to generate their own language files.
In the folder that contains the new fr.po file, do :
svn add fr.po3. Locally edit the file with Lokalize or with a text editor (nano, kwrite, kate, etc.) The Lokalize handbook
.4. Transmit the changes to the SVN turkish server
svn commit -m "French translation."
NB : SVN uses your PC username by default. If your SVN username is different, just type the "Enter" key when you are asked for the password. SVN will then ask you to enter your SVN username.5. Update your local SVN copy
Before the next edition, don't forget to update your local copy in order to work on the latest version available.
svn update6. Final SVN configuration
Contains of the ~/.subversion/servers file :
store-passwords = yes
username = MyFirstname.MyName
store-plaintext-passwords = no
NB : Remove the spaces before each line, otherwise SVN will complain with the error message : "Option expected"7. Other useful commands
svn status8. Where are the po files ?
Here is the Pardus translation map
that Patrik Karlsson created in order to help you to localize the .po files.
Further details on