[zanata-users] How to configure the "rules" section of the zanata.xml

Axel Rousseau axel.rousseau at esperanto-france.org
Thu Mar 5 10:30:44 UTC 2015


Hi !
My name is Axel Rousseau, i'm member of the esperanto team to translate KDE.

I need some help to configure my zanata.xml to find my .po files
I've a lot of files to translate and the name of the file is :
my_path/my_file.po
(and not my_path/my_file/locale.po)
i don't understand how to configure the rules tag in the zanata.xml file
I read the documentation here :
http://zanata.org/help/cli/cli-configuration/
and i don't understand the example :
<rules>
  <rule pattern="**/pot/*.pot">{locale}/{path}/{filename}.po</rule>
  <rule pattern="**/po/*.pot">{path}/{locale_with_underscore}.po</rule>
</rules>
what's mean the pattern ?
why are they 2 lines ? (**/pot/*.pot and **/po/*.pot) ?
I success to upload (push) with the zanata-cli the source files (the .pot
files), but i didn't succes to push the translation files (the .po)

here are my zanata.xml file :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<config xmlns="http://zanata.org/namespace/config/">
  <url>https://translate.zanata.org/zanata/</url>
  <project>kde-eo</project>
  <project-version>kdeedu</project-version>
  <project-type>gettext</project-type>
  <src-dir>templates/messages/kdeedu</src-dir>
  <trans-dir>eo/messages/kdeedu</trans-dir>
  <locales>
    <locale>eo</locale>
  </locales>
  <rules>
    ??? what should i write here ???
  </rules>
</config>

and my files are like :
eo/messages/kdeedu/kalzium.po
eo/messages/kdeedu/artikulate.po
...

I would like to test with only one folder of the KDE files at first...

Thank you for your help,

Axel Rousseau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/zanata-users/attachments/20150305/6abf99f0/attachment.htm>


More information about the zanata-users mailing list