<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"><<a href="mailto:ecohen@redhat.com" target="_blank">ecohen@redhat.com</a>></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's what you meant - not sure) is to make<br>
sure that when we auto-generate the 'on the fly' 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' names and paths in Zanata, i.e.<br>
Zanata will actually identify these newly-named-and-located documents<br>
as 'new' documents, rather than 'updated' 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'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>
> From: "plysan" <<a href="mailto:plysab@gmail.com">plysab@gmail.com</a>><br>
</div><div class=""><div class="h5">> To: "Einav Cohen" <<a href="mailto:ecohen@redhat.com">ecohen@redhat.com</a>><br>
> Cc: "<a href="mailto:Users@ovirt.org">Users@ovirt.org</a> List" <<a href="mailto:users@ovirt.org">users@ovirt.org</a>><br>
> Sent: Friday, April 25, 2014 12:35:48 AM<br>
> Subject: Re: [ovirt-users] problem in pulling zanata property files<br>
><br>
> Hi Einav,<br>
><br>
> Thanks for your reply.<br>
><br>
> This is very helpful. But I think we could fake these 'on the fly' English<br>
> .properties files and just use them for zanata push operation. So we don't<br>
> have to rename these files every time we pull them.<br>
><br>
> What do you think ?<br>
><br>
> ---<br>
> Thanks,<br>
> plysan<br>
><br>
><br>
><br>
> 2014-04-25 2:59 GMT+08:00 Einav Cohen < <a href="mailto:ecohen@redhat.com">ecohen@redhat.com</a> > :<br>
><br>
><br>
> 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<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/gwt-common/src/main/resources/org/ovirt/engine/ui/common/CommonApplicationConstants_zh_CN.properties<br>
> mv<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/gwt-common/src/main/resources/org/ovirt/engine/ui/common/CommonApplicationMessages_zh_CN.properties<br>
> mv<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/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/UIConstants_zh_CN.properties<br>
> mv<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/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/UIMessages_zh_CN.properties<br>
> mv<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/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/SpiceRedKeys_zh_CN.properties<br>
> mv<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/userportal-gwtp/src/main/resources/org/ovirt/engine/ui/userportal/ApplicationConstants_zh_CN.properties<br>
> mv<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/userportal-gwtp/src/main/resources/org/ovirt/engine/ui/userportal/ApplicationMessages_zh_CN.properties<br>
> mv<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/webadmin/ApplicationConstants_zh_CN.properties<br>
> mv<br>
> frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/org.ovirt.engine.ui.webadmin.ApplicationMessages_zh_CN.properties<br>
> frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/webadmin/ApplicationMessages_zh_CN.properties<br>
><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<br>
> > 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>
> > _______________________________________________<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>
><br>
><br>
> _______________________________________________<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>
</div></div></blockquote></div><br></div></div></div>