Hi list,
I'm in branch ovirt-engine-3.3, so I used the zanata-cli to pull property
files from ovirt's zanata repo:
https://translate.zanata.org/zanata/iteration/view/ovirt/ovirt-3.3
My steps:
1. download po files
2. config ~/.config/zanata.ini
3. config zanata.xml like this:
<?xml version="1.0" encoding="UTF-8"
standalone="yes"?>
<config
xmlns="http://zanata.org/namespace/config/">
<
url>https://translate.zanata.org/zanata/</url>
<project>ovirt</project>
<project-version>ovirt-3.3</project-version>
<!--
<project-type>utf8properties|properties|gettext|podir|xliff|xml|file</project-type>
-->
<locales>
<locale map-from="zh_CN">zh-Hans-CN</locale>
</locales>
</config>
4. execute "pull -s {po files directory} -t {ovirt engine direstory}
--project-type properties"
But after I use zanata-cli pull command, I get property files named with
package name, like the following:
$ git status
# On branch ovirt-engine-3.3
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working
directory)
#
# modified:
frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/LocalizedEnums_zh_CN.properties
# modified: packaging/branding/ovirt.brand/messages_zh_CN.properties
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
#
frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.common.CommonApplicationConstants_zh_CN.properties
#
frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.common.CommonApplicationMessages_zh_CN.properties
#
frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.uicompat.SpiceRedKeys_zh_CN.properties
#
frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.uicompat.UIConstants_zh_CN.properties
#
frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.uicompat.UIMessages_zh_CN.properties
#
frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.userportal.ApplicationConstants_zh_CN.properties
#
frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.userportal.ApplicationMessages_zh_CN.properties
#
frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.webadmin.ApplicationConstants_zh_CN.properties
#
frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.webadmin.ApplicationMessages_zh_CN.properties
no changes added to commit (use "git add" and/or "git commit -a")
I only see messages_zh_CN.properties and LocalizedEnums_zh_CN.properties
are properly named, but not the rest property files.
I noticed many translation po files under zanata project are all named with
package name.
So is this right ?
thanks for your attention.