Title: RE : [dbforms] multilingual problem


Will be resolve in DbForms 1.1.2 (soon).
=============================================

We will store the Locale in Session scope, allowing you to store any
Locale... at any moment during process.  But if null, it takes the request.getLocale()
as default.


Option:
=========
You will be able, if you want, to set the key attribute of the session scope, by setting :

<init-param>
    <param-name>localeKey</param-name>
    <param-value> ... </param-value>
</init-param>

in the ConfigServlet section of web.xml ...



<<< Because a lot of other package/framework already store Locale in session scope, you will
be able to share the same Locale across different framework (usefull and let session without
too much object). >>>


Exemple, to share the same Locale with Struts, set your web.xml like this :

<init-param>
    <param-name>localeKey</param-name>
    <param-value>org.apache.struts.action.LOCALE</param-value>
</init-param>

This mean, if you want to retreive the Locale from session in JSP, you will
do this :

Locale locale = request.getSession().getAttribute("org.apache.struts.action.LOCALE");


If you don't set "localeKey", the default is "org.dbforms.LOCALE".


Thanks.


Eric B.



-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Envoy� : mardi 14 mai 2002 04:04
� : [EMAIL PROTECTED]
Objet : [dbforms] multilingual problem


Hello all,


 Now I have a problem about multilingual .dbfor can get different resource by getLocale() from request.

  But how can I choose different resource .by user self.

example


   ---------     ---------
   |        |    |        |
   |English |    |Japanese|
    --------     ----------

regards,

Jack

CONFIDENTIALITY: This communication and any attachment(s) is intended solely for the person or organisation to which it is addressed and it may be confidential. If you are not the intended recipient, employee or agent responsible for delivering the message to the intended recipient you must not copy, disclose, distribute or take any action in reliance on it. If you have received this communication in error, please notify the sender immediately and destroy the original.  If this communication has been received by email please reply and highlight the error to the sender and delete the original.  Thank you.

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________

DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to