Information : The version displayed on this page is not the latest available.
|
|
| Translate Cairo-Dock |
|
Install the SVN version To translate Cairo-Dock you will need to install the SVN version.
Or you could post a new thread on forum asking to be sent the files to be translated. In this case you would not be able to test the translation.
The files to translate Translation files (.pot) can be found in folders named "po".
If SVN version has been installed with Mav's script, these folders can be found at
/opt/cairo-dock_svn/cairo-dock/po
and (for plug-ins) at
/opt/cairo-dock_svn/plugins/*/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!
Testing To test, you have to
- add your language in all LINGUAS files (in cairo-dock/po/ and in the po folder for each plug-in),
- 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 ! |
|

Online users :