<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 2:55 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:0 0 0 .8ex;border-left:1px #ccc 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: "Einav Cohen" <<a href="mailto:ecohen@redhat.com" target="_blank">ecohen@redhat.com</a>><br>
> Cc: <a href="mailto:devel@ovirt.org" target="_blank">devel@ovirt.org</a><br>
> Sent: Thursday, November 26, 2015 1:04:30 AM<br>
> Subject: Re: [ovirt-devel] [oVirt 3.6 Localization Question #40] "This field must contain an {0} number"<br>
><br>
> Hello Eliraz,<br>
><br>
> This question also requires your help.<br>
> Thanks in advance,<br>
><br>
> Yuko<br>
><br>
> On Tue, Nov 24, 2015 at 11:40 PM, Einav Cohen < <a href="mailto:ecohen@redhat.com" target="_blank">ecohen@redhat.com</a> > wrote:<br>
><br>
><br>
> > ----- Original Message -----<br>
> > From: "Yuko Katabami" < <a href="mailto:ykatabam@redhat.com" target="_blank">ykatabam@redhat.com</a> ><br>
> > Sent: Tuesday, November 24, 2015 7:04:03 AM<br>
> ><br>
> > Hello once again,<br>
> ><br>
> > I would like to ask you another question.<br>
> ><br>
> > File: UIMessages<br>
> > Resource ID: thisFieldMustContainTypeNumberInvalidReason<br>
> > String: This field must contain an {0} number<br>
> > Question: I can see from the source comment 0=type but could you please<br>
> > give<br>
> > me an example of what will replace {0}?<br>
<br>
Dear Yuko,<br>
<br>
[thisFieldMustContainTypeNumberInvalidReason] is not effectively used (yet)<br>
but present in UIMessages.java as part of UI validation logic refactoring.<br>
<br>
Its original intention is to model messages like this one:<br>
This field must contain an integer number<br></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 very much for providing us an example.</div></div><div><div class="gmail_default" style="font-size:small;display:inline">Like other examples, it would be better to have a full sentence so that we will know what will come after "an".</div></div><div><div class="gmail_default" style="font-size:small;display:inline">Also the article "an" is only used for English words starting with a vowel sound, as you know. If it is not "integer" it may not work. (and "an" alone cannot be translated)</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">For now, I suggested other translators to translate it as "This field must contain a single {0} number"</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">Thanks again 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">Kind regards,</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">Yuko</div></div><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Vojtech<br>
<br>
><br>
> @Eliraz?<br>
> [I actually don't see NumberRangeValidation being used anywhere in the<br>
> code..]<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>
><br>
><br>
><br>
><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 dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div>