<div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 27, 2015 at 1:41 AM, Vojtech Szocs <span dir="ltr"><<a href="mailto:vszocs@redhat.com" target="_blank">vszocs@redhat.com</a>></span> wrote:<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"><br>
<br>
----- Original Message -----<br>
> From: "Yuko Katabami" <<a href="mailto:ykatabam@redhat.com" target="_blank">ykatabam@redhat.com</a>><br>
> To: <a href="mailto:devel@ovirt.org" target="_blank">devel@ovirt.org</a><br>
> Sent: Tuesday, November 24, 2015 12:51:11 PM<br>
> Subject: [ovirt-devel] [oVirt 3.6 Localization Question #39] "prefixMsg,"<br>
><br>
> Hello all,<br>
><br>
> Here is another question:<br>
><br>
> File: UIMessages<br>
> Resource IDs:<br>
> numberValidationNumberBetweenInvalidReason<br>
> numberValidationNumberGreaterInvalidReason<br>
> numberValidationNumberLessInvalidReason<br>
> Strings:<br>
> <div class="gmail_default" style="font-size:small;display:inline"></div>{0} between {1} and {2}.<br>
> {0} greater than or equal to {1}.<br>
> {0} less than or equal to {1}.<br>
> Question: Could you please provide some example of those messages? Comment<br>
> section in each of those strings states "0=prefixMsg" but I would like to<br>
> know what will actually replace {0}, so that I can translate them properly.<br>
<br>
Dear Yuko,<br>
<br>
to my knowledge, above 3 msg keys [numberValidation*] are meant<br>
to replace existing 3 msg keys [integerValidation*] as part of<br>
UI validation logic refactoring.<br>
<br>
Please note that [numberValidation*] msg's are not used yet,<br>
even though they were introduced into UIMessages.java file.<br>
<br>
In general, 'prefixMsg' in [numberValidation*] msg's should<br>
follow the same structure as in [integerValidation*] msg's.<br>
<br>
Example 'prefixMsg':<br>
<div class="gmail_default" style="font-size:small;display:inline"></div>This field must contain an integer number<br>
<br>
Related patch: <a href="https://gerrit.ovirt.org/#/c/48082/" rel="noreferrer" target="_blank">https://gerrit.ovirt.org/#/c/48082/</a></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small;display:inline">Hi Vojtech,</div></div><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div><div><div class="gmail_default" style="font-size:small;display:inline">Thank you for your help.</div></div><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div><div><div class="gmail_default" style="font-size:small;display:inline">While applying change to translation, I realized that this does not work well in some non-English languages, including Japanese.</div></div><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div><div><div class="gmail_default" style="font-size:small;display:inline">In these examples,</div></div><div><div class="gmail_default" style="display:inline"></div>This field must contain an integer number between {1} and {2}.<br></div><div><div class="gmail_default" style="font-size:small;display:inline"><div class="gmail_default" style="display:inline"></div>This field must contain an integer number greater than or equal to {1}.<br><div class="gmail_default" style="display:inline"></div>This field must contain an integer number less than or equal to {1}.<br></div></div><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div><div><div class="gmail_default" style="font-size:small;display:inline">I need to place the part describing the number (i.g. close after betwee, greater, less) before the word "an integer number" in my translation.</div></div><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div><div><div class="gmail_default" style="font-size:small;display:inline">Order of words change depending on the language.</div></div><div><div class="gmail_default" style="font-size:small">Thus it would be better if <div class="gmail_default" style="display:inline"></div>{0} prefixMsg is not used in those three strings so that we can change the order when we translate these.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Please let me know if you would like me to file a BZ for this.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Kind regards,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Yuko </div><br></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>
><br>
> Kind regards,<br>
><br>
> Yuko<br>
><br>
> _______________________________________________<br>
> Devel mailing list<br>
> <a href="mailto:Devel@ovirt.org" target="_blank">Devel@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/devel</a><br>
</blockquote></div><br><br clear="all"><div><br></div>
</div></div>