<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">&#39;on </span><span style="font-family:arial,sans-serif;font-size:14px">the fly&#39; English .properties files and just use them for zanata push operation. So we don&#39;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">&lt;<a href="mailto:ecohen@redhat.com" target="_blank">ecohen@redhat.com</a>&gt;</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 &#39;on<br>
the fly&#39; 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>
&gt; From: &quot;plysan&quot; &lt;<a href="mailto:plysab@gmail.com">plysab@gmail.com</a>&gt;<br>
&gt; To: &quot;<a href="mailto:Users@ovirt.org">Users@ovirt.org</a> List&quot; &lt;<a href="mailto:users@ovirt.org">users@ovirt.org</a>&gt;<br>
&gt; Sent: Wednesday, April 23, 2014 12:44:37 PM<br>
&gt; Subject: [ovirt-users] problem in pulling zanata property files<br>
&gt;<br>
&gt; Hi list,<br>
&gt;<br>
&gt; I&#39;m in branch ovirt-engine-3.3, so I used the zanata-cli to pull property<br>
&gt; files from ovirt&#39;s zanata repo:<br>
&gt; <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>
&gt; My steps:<br>
&gt; 1. download po files<br>
&gt; 2. config ~/.config/zanata.ini<br>
&gt; 3. config zanata.xml like this:<br>
&gt;<br>
&gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;<br>
&gt; &lt;config xmlns=&quot; <a href="http://zanata.org/namespace/config/" target="_blank">http://zanata.org/namespace/config/</a> &quot;&gt;<br>
&gt; &lt;url&gt; <a href="https://translate.zanata.org/zanata/" target="_blank">https://translate.zanata.org/zanata/</a> &lt;/url&gt;<br>
&gt; &lt;project&gt;ovirt&lt;/project&gt;<br>
&gt; &lt;project-version&gt;ovirt-3.3&lt;/project-version&gt;<br>
&gt; &lt;!--<br>
&gt; &lt;project-type&gt;utf8properties|properties|gettext|podir|xliff|xml|file&lt;/project-type&gt;<br>
&gt; --&gt;<br>
&gt;<br>
&gt; &lt;locales&gt;<br>
&gt; &lt;locale map-from=&quot;zh_CN&quot;&gt;zh-Hans-CN&lt;/locale&gt;<br>
&gt; &lt;/locales&gt;<br>
&gt;<br>
&gt; &lt;/config&gt;<br>
&gt;<br>
&gt; 4. execute &quot;pull -s {po files directory} -t {ovirt engine direstory}<br>
&gt; --project-type properties&quot;<br>
&gt;<br>
&gt; But after I use zanata-cli pull command, I get property files named with<br>
&gt; package name, like the following:<br>
&gt;<br>
&gt; $ git status<br>
&gt; # On branch ovirt-engine-3.3<br>
&gt; # Changes not staged for commit:<br>
&gt; # (use &quot;git add &lt;file&gt;...&quot; to update what will be committed)<br>
&gt; # (use &quot;git checkout -- &lt;file&gt;...&quot; to discard changes in working directory)<br>
&gt; #<br>
&gt; # modified:<br>
&gt; frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/LocalizedEnums_zh_CN.properties<br>
&gt; # modified: packaging/branding/ovirt.brand/messages_zh_CN.properties<br>
&gt; #<br>
&gt; # Untracked files:<br>
&gt; # (use &quot;git add &lt;file&gt;...&quot; to include in what will be committed)<br>
&gt; #<br>
&gt; #<br>
&gt; frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.common.CommonApplicationConstants_zh_CN.properties<br>
&gt; #<br>
&gt; frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.common.CommonApplicationMessages_zh_CN.properties<br>
&gt; #<br>
&gt; frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.uicompat.SpiceRedKeys_zh_CN.properties<br>
&gt; #<br>
&gt; frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.uicompat.UIConstants_zh_CN.properties<br>
&gt; #<br>
&gt; frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.uicompat.UIMessages_zh_CN.properties<br>
&gt; #<br>
&gt; frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.userportal.ApplicationConstants_zh_CN.properties<br>
&gt; #<br>
&gt; frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.userportal.ApplicationMessages_zh_CN.properties<br>
&gt; #<br>
&gt; frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.webadmin.ApplicationConstants_zh_CN.properties<br>
&gt; #<br>
&gt; frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.webadmin.ApplicationMessages_zh_CN.properties<br>
&gt; no changes added to commit (use &quot;git add&quot; and/or &quot;git commit -a&quot;)<br>
&gt;<br>
&gt; I only see messages_zh_CN.properties and LocalizedEnums_zh_CN.properties are<br>
&gt; properly named, but not the rest property files.<br>
&gt; I noticed many translation po files under zanata project are all named with<br>
&gt; package name.<br>
&gt; So is this right ?<br>
&gt;<br>
&gt; thanks for your attention.<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
&gt; <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
&gt;<br>
</blockquote></div><br></div>