<div dir="ltr">Hi Einav,<div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-07 6:31 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi plysan, apologies for the late response (was OOO without<br>

internet connectivity last week).<br>
<br>
what we can do (maybe that&#39;s what you meant - not sure) is to make<br>
sure that when we auto-generate the &#39;on the fly&#39; English .properties<br>
files (as part of the process of pushing the English strings), they<br>
are generated already in the proper naming and location, just so the<br>
matching zh-CN files will eventually be created with the similar<br>
(proper) naming and location once pulled from Zanata.<br></blockquote><div>Yes, this is what i meant. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

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