You can now go to our Launchpad project (here) in order to translate your favourite dock in your language ! (or to correct some sentences)
You can also download .pot and .po files there or from SVN / BZR (the old method is for the moment still possible !)
Install the SVN / BZR version
To translate Cairo-Dock you will need to
install the SVN version.
Or you could post a new thread on
forum asking for the files to be sent to you. In that case you will not be able to test the translation.
The files to translate
Translation files (.pot) can be found in folders named "po" (
cairo-dock/po/ -
plug-ins/po/).
For example if your SVN version has been installed with Mav's script, these folders can be found at
/opt/cairo-dock_svn/cairo-dock/po
and (for the plug-ins) at
/opt/cairo-dock_svn/plug-ins/po/
To begin, make a copy of a translation file
saving it in the format xx.pot, where
xx is the code for your language, e.g.
es.po (Spanish),
it.po (Italian), etc.
Translation
You need to translate sentences between "" next to
msgstr. =>
PLEASE RESPECT SYNTAX
For example:
msgid "My english text"
msgstr "Your translation"
Be very careful with sentences that have C-style parameters inside them, e.g. "%s" or "%d". Make sure you keep these symbols intact, though you may need to move them around in the sentence.
Also try to make your sentences fit the size of the config panels.
Poedit is a very convenient app for translating .po files. Install it with Synaptic; it will help you a lot!
With poedit you can do a right click on any sentences to see the reference(s)
Testing
To test, you have to
- add your language in all LINGUAS files (in cairo-dock/po/ and plug-ins/po/),
- compile (or use Mav's script : From SVN) and
- restart Cairo-Dock
Sending us your translation
Post a new thread on
forum with all your po files.
To generate a zip file you can use these commands:
cd /opt/cairo-dock_svn/ # or wherever you have installed the SVN version
zip cairo-dock/po/XX.po # change XX to your language code
zip plug-ins/*/po/XX.po # change XX to your language code
Thanks

!