[WG: I18N & L10N] [Building Sakai] Internationalizing a confirmation in RSF

Jean-Francois Leveque jean-francois.leveque at upmc.fr
Tue Sep 18 01:46:15 PDT 2012


Hi Brian,

Did you find what you were looking for with help from Matthew and Steve?

If you found it, what was useful for you and how are you gonna do your i18n?

If you didn't find it, what are you still looking for?

Cheers,
J-F

On 17/09/2012 23:43, Brian Baillargeon wrote:
> Hello all
>
> When somebody submits a particular form, I'd like to have a yes/no
> confirmation dialog where the text is internationalized. This is in the
> context of RSF.
> So I was thinking of using a javascript confirm to do this, but I want
> it to show text from Messages.properties.
>
> So for example,
> Messages.properties:
> ...
> confirm.message=Are you sure you want to proceed?
> ...
>
> MyForm.html:
> ...
> <script>
> function confirmSubmit()
> {
>       var agree=confirm(<Pull me from Messages.properties>);
>       if (agree)
>           return true;
>       else
>           return false;
> }
> </script>
> ...
> <input class="submit" type="submit" onclick="return confirmSubmit()"
> rsf:id="submitClaim" />
> ...
>
> How can this be done? / Is there a better way to approach this in RSF?
>
> Thanks,
> Brian


More information about the i18n mailing list