<div dir="ltr">Hi Einav,<div><br></div><div>Thanks for your reply.</div><div><br></div><div>This is very helpful. But I think we could fake these <span style="font-family:arial,sans-serif;font-size:14px"> </span><span style="font-family:arial,sans-serif;font-size:14px">'on </span><span style="font-family:arial,sans-serif;font-size:14px">the fly' English .properties files and just use them for zanata push operation. So we don't have to rename these files every time we pull them.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:14px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:14px">What do you think ?</span></div><div><span style="font-family:arial,sans-serif;font-size:14px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:14px">---</span></div><div><span style="font-family:arial,sans-serif;font-size:14px">Thanks,</span></div><div><span style="font-family:arial,sans-serif;font-size:14px">plysan</span></div>
<div><span style="font-family:arial,sans-serif;font-size:14px"><br></span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-25 2:59 GMT+08:00 Einav Cohen <span dir="ltr"><<a href="mailto:ecohen@redhat.com" target="_blank">ecohen@redhat.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi plysan,<br>
<br>
the 9 documents with the strange name/location [1] are properties<br>
files that do not have matching English .properties files in the<br>
oVirt-engine code repo (as opposed to LocalizedEnums_zh_CN.properties<br>
and messages_zh_CN.properties that do have matching English .properties<br>
files in the ovirt-engine code repo [2]).<br>
<br>
The matching English strings for the documents in [1] reside in the<br>
ovirt-engine code repo within GWT Constants/Message interface Java<br>
files, rather than English .properties files.<br>
Zanata cannot receive GWT Constants/Message interface Java files as<br>
input. So the process of pushing the English strings to Zanata for<br>
translation includes a GWT-compilation-based auto-generation of 'on<br>
the fly' English .properties files with similar strange naming/location<br>
(those English .properties files are not pushed into the ovirt-engine<br>
code repo), which consequently leads to the strange naming/location of<br>
the zh-CN files as well.<br>
<br>
the names/locations of the files in [1] should actually be [3]. so<br>
if you want the translations that you are pulling from Zanata to<br>
be named correctly and reside in the correct location in your local<br>
ovirt-engine code directory, simply run [4] after doing the pull<br>
from Zanata.<br>
<br>
----<br>
Thanks,<br>
Einav<br>
<br>
<br>
[1]<br>
frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.common.CommonApplicationConstants_zh_CN.properties<br>
frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.common.CommonApplicationMessages_zh_CN.properties<br>
frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.uicompat.SpiceRedKeys_zh_CN.properties<br>
frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.uicompat.UIConstants_zh_CN.properties<br>
frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.uicompat.UIMessages_zh_CN.properties<br>
frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.userportal.ApplicationConstants_zh_CN.properties<br>
frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.userportal.ApplicationMessages_zh_CN.properties<br>
frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.webadmin.ApplicationConstants_zh_CN.properties<br>
frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.webadmin.ApplicationMessages_zh_CN.properties<br>
<br>
[2]<br>
frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/LocalizedEnums.properties<br>
packaging/branding/ovirt.brand/messages.properties<br>
<br>
[3]<br>
frontend/webadmin/modules/gwt-common/src/main/resources/org/ovirt/engine/ui/common/CommonApplicationConstants_zh_CN.properties<br>
frontend/webadmin/modules/gwt-common/src/main/resources/org/ovirt/engine/ui/common/CommonApplicationMessages_zh_CN.properties<br>
frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/SpiceRedKeys_zh_CN.properties<br>
frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/UIConstants_zh_CN.properties<br>
frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/UIMessages_zh_CN.properties<br>
frontend/webadmin/modules/userportal-gwtp/src/main/resources/org/ovirt/engine/ui/userportal/ApplicationConstants_zh_CN.properties<br>
frontend/webadmin/modules/userportal-gwtp/src/main/resources/org/ovirt/engine/ui/userportal/ApplicationMessages_zh_CN.properties<br>
frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/webadmin/ApplicationConstants_zh_CN.properties<br>
frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/webadmin/ApplicationMessages_zh_CN.properties<br>
<br>
[4]<br>
mv frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.common.CommonApplicationConstants_zh_CN.properties frontend/webadmin/modules/gwt-common/src/main/resources/org/ovirt/engine/ui/common/CommonApplicationConstants_zh_CN.properties<br>
mv frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.common.CommonApplicationMessages_zh_CN.properties frontend/webadmin/modules/gwt-common/src/main/resources/org/ovirt/engine/ui/common/CommonApplicationMessages_zh_CN.properties<br>
mv frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.uicompat.UIConstants_zh_CN.properties frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/UIConstants_zh_CN.properties<br>
mv frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.uicompat.UIMessages_zh_CN.properties frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/UIMessages_zh_CN.properties<br>
mv frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.uicompat.SpiceRedKeys_zh_CN.properties frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/SpiceRedKeys_zh_CN.properties<br>
mv frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.userportal.ApplicationConstants_zh_CN.properties frontend/webadmin/modules/userportal-gwtp/src/main/resources/org/ovirt/engine/ui/userportal/ApplicationConstants_zh_CN.properties<br>
mv frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.userportal.ApplicationMessages_zh_CN.properties frontend/webadmin/modules/userportal-gwtp/src/main/resources/org/ovirt/engine/ui/userportal/ApplicationMessages_zh_CN.properties<br>
mv 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/webadmin/ApplicationConstants_zh_CN.properties<br>
mv frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.webadmin.ApplicationMessages_zh_CN.properties frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/webadmin/ApplicationMessages_zh_CN.properties<br>
<div><div class="h5"><br>
<br>
----- Original Message -----<br>
> From: "plysan" <<a href="mailto:plysab@gmail.com">plysab@gmail.com</a>><br>
> To: "<a href="mailto:Users@ovirt.org">Users@ovirt.org</a> List" <<a href="mailto:users@ovirt.org">users@ovirt.org</a>><br>
> Sent: Wednesday, April 23, 2014 12:44:37 PM<br>
> Subject: [ovirt-users] problem in pulling zanata property files<br>
><br>
> Hi list,<br>
><br>
> I'm in branch ovirt-engine-3.3, so I used the zanata-cli to pull property<br>
> files from ovirt's zanata repo:<br>
> <a href="https://translate.zanata.org/zanata/iteration/view/ovirt/ovirt-3.3" target="_blank">https://translate.zanata.org/zanata/iteration/view/ovirt/ovirt-3.3</a><br>
> My steps:<br>
> 1. download po files<br>
> 2. config ~/.config/zanata.ini<br>
> 3. config zanata.xml like this:<br>
><br>
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?><br>
> <config xmlns=" <a href="http://zanata.org/namespace/config/" target="_blank">http://zanata.org/namespace/config/</a> "><br>
> <url> <a href="https://translate.zanata.org/zanata/" target="_blank">https://translate.zanata.org/zanata/</a> </url><br>
> <project>ovirt</project><br>
> <project-version>ovirt-3.3</project-version><br>
> <!--<br>
> <project-type>utf8properties|properties|gettext|podir|xliff|xml|file</project-type><br>
> --><br>
><br>
> <locales><br>
> <locale map-from="zh_CN">zh-Hans-CN</locale><br>
> </locales><br>
><br>
> </config><br>
><br>
> 4. execute "pull -s {po files directory} -t {ovirt engine direstory}<br>
> --project-type properties"<br>
><br>
> But after I use zanata-cli pull command, I get property files named with<br>
> package name, like the following:<br>
><br>
> $ git status<br>
> # On branch ovirt-engine-3.3<br>
> # Changes not staged for commit:<br>
> # (use "git add <file>..." to update what will be committed)<br>
> # (use "git checkout -- <file>..." to discard changes in working directory)<br>
> #<br>
> # modified:<br>
> frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/LocalizedEnums_zh_CN.properties<br>
> # modified: packaging/branding/ovirt.brand/messages_zh_CN.properties<br>
> #<br>
> # Untracked files:<br>
> # (use "git add <file>..." to include in what will be committed)<br>
> #<br>
> #<br>
> frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.common.CommonApplicationConstants_zh_CN.properties<br>
> #<br>
> frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.common.CommonApplicationMessages_zh_CN.properties<br>
> #<br>
> frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.uicompat.SpiceRedKeys_zh_CN.properties<br>
> #<br>
> frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.uicompat.UIConstants_zh_CN.properties<br>
> #<br>
> frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.uicompat.UIMessages_zh_CN.properties<br>
> #<br>
> frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.userportal.ApplicationConstants_zh_CN.properties<br>
> #<br>
> frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.userportal.ApplicationMessages_zh_CN.properties<br>
> #<br>
> frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.webadmin.ApplicationConstants_zh_CN.properties<br>
> #<br>
> frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.webadmin.ApplicationMessages_zh_CN.properties<br>
> no changes added to commit (use "git add" and/or "git commit -a")<br>
><br>
> I only see messages_zh_CN.properties and LocalizedEnums_zh_CN.properties are<br>
> properly named, but not the rest property files.<br>
> I noticed many translation po files under zanata project are all named with<br>
> package name.<br>
> So is this right ?<br>
><br>
> thanks for your attention.<br>
><br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
><br>
</blockquote></div><br></div>