Hi, Geert

Thank you, it worked.

Sincerely
Eskil Lauritsen

On 5/16/07, Geert Bevin <[EMAIL PROTECTED]> wrote:
Hi Eskil,

you can setup global templates like this:
http://rifers.org/wiki/display/RIFE/Type+specific+default+resource
+bundles

This is currently the only way within RIFE to have localized text
without setting a resource bundle explicitly. Having your own base
element is  of course also a good solution.

Best regards,

Geert

On 16 May 2007, at 12:05, Eskil Lauritsen wrote:

> For example, we have used the example 07 selective authentication for
> our login box, but the form.html template does not have a form.java
> file where we can do the setLocalized(...) call we need. We need to
> translate the words login, pass and the value of the submit button
> dynamically.
>
> We have implemented our own element MyElement
>
> import java.util.ResourceBundle;
> import com.uwyn.rife.engine.Element;
> import com.uwyn.rife.template.Template;
> import com.uwyn.rife.tools.Localization;
>
> public class MyElement extends Element{
>
>       protected void setLocalized(Template template, String sTemplate,
> String locale){
>               ResourceBundle bundle = 
Localization.getResourceBundle(sTemplate,
> locale);
>               template.addResourceBundle(bundle);
>       }
>
> }
>
> so we can conveniently call setLocalized(...)
>
> Hope this is understandable.
>
> Sincerely
> Eskil Lauritsen
>
> On 5/16/07, Geert Bevin <[EMAIL PROTECTED]> wrote:
>> Can you please include some samples, it's a bit hard to understand
>> what you're meaning from this description.
>>
>> Thanks,
>>
>> Geert
>>
>> On 15 May 2007, at 19:29, Eskil Lauritsen wrote:
>>
>> > We are using the resourcebundle method for localization in our
>> webapp
>> > and we are having problems with translating template blocks that
>> are
>> > included in other templates but have no implementation file of
>> their
>> > own.
>> >
>> > They are however included (<r:i>) in templates which do have
>> > associated implementations, but adding the translation variables to
>> > the .properties-file for the template they are included in does not
>> > work either.
>>
>> --
>> Geert Bevin
>> Terracotta - http://www.terracotta.org
>> Uwyn "Use what you need" - http://uwyn.com
>> RIFE Java application framework - http://rifers.org
>> Music and words - http://gbevin.com
>>
>>
>> _______________________________________________
>> Rife-users mailing list
>> [email protected]
>> http://lists.uwyn.com/mailman/listinfo/rife-users
>>
> _______________________________________________
> Rife-users mailing list
> [email protected]
> http://lists.uwyn.com/mailman/listinfo/rife-users
>

--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to