Also I was curious about languages ( i.e.Arabic based) which are written from right to left.
Can I have a sample file with right to left text
which says the following
welcome.title=Welcome title welcome.heading=Welcome heading welcome.message=To get started on your own application
I want to rename this right to left file to application.properties and try it out.
Thanks
From: "Bailey, Shane C." <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> Subject: RE: application.properties file location - Internationalisation Date: Wed, 13 Aug 2003 13:21:23 -0400
It is built-in to the properties file framework. http://java.sun.com/docs/books/tutorial/i18n/intro/steps.html
I believe Struts will get the correct properties file based on the locale set for each remote user.
Create files like: application.properties application_en_US.properties application_fr_FR.properties application_de_DE.properties
The first one is the default and all the rest should be selected automatically depending on the remote user's locale. I don't have an Internationalization specification on my project so this is what I beilieve to be true.
Someone else can verify.
-----Original Message----- From: message message [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 12:35 PM To: [EMAIL PROTECTED] Subject: RE: application.properties file location - Internationalisation
In theory if you have a file called application_fr.properties in your <appname>/WEB-INF/classes/resources directory then all the text will be replaced with French. Based on the assumption that the browser is configured to French. Therefore no coding is required.
However what happens if the browser is configured to spanish when you only have a file for French and English ? Is there a default or will this an error ?
>From: "Bailey, Shane C." <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
>Subject: RE: application.properties file location
>Date: Wed, 13 Aug 2003 11:51:53 -0400
>
>
>From what you are saying I think you should try:
>
><message-resources parameter="application"/>
>in your struts config file. Since you specifically say
>"application.properties" as the name of your file.
>
>For instance my file is also called "application.properties" as opposed to
>"aApplicationResources.properties" or something. But since mine in a
>resources directory off of the classes directory I declare mine as:
>
><message-resources parameter="resources.application"/>
>
>So I am assuming struts takes the last name in the parameter as the file
>name and anything before it as directory structure.
>
>
>
>-----Message d'origine-----
>De : Samanth Athrey <[EMAIL PROTECTED]>
>À : [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>Date : mercredi 13 août 2003 16:57
>Objet : application.properties file location
>
>
> >Hi,
> >
> >I have my application.properties file stored in the classes directory.
>But
> >the application is unable to locate and load this file. Any tips would be
>of
> >great help.
> >
> >Thanks,
> >Samanth Athrey
> >
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>------------------------------
>Ce message est protege par les regles relatives au secret des
>correspondances ; il peut en outre contenir des informations a caractere
>confidentiel ou protegees par differentes regles et notamment le secret des
>affaires ; il est etabli a destination exclusive de son destinataire. Toute
>divulgation, utilisation, diffusion ou reproduction (totale ou partielle)
>de
>ce message, ou des informations qu'il contient, doit etre prealablement
>autorisee.
>Tout message electronique est susceptible d'alteration et son integrite ne
>peut etre assuree. Les AGF declinent toute responsabilite au titre de ce
>message s'il a ete modifie ou falsifie.
>Si vous n'etes pas destinataire de ce message, merci de le detruire
>immediatement et d'avertir l'expediteur de l'erreur de distribution et de
>la
>destruction du message.
>This message is protected by the secrecy of correspondence rules ;
>furthermore it may contain privileged or confidential information that is
>protected by law, notably by the secrecy of business relations rule ; it is
>intended solely for the attention of the addressee . Any disclosure, use,
>dissemination or reproduction (either whole or partial) of this message or
>the information contained herein is strictly prohibited without prior
>consent.
>Any electronic message is susceptible to alteration and its integrity
>can
>not be assured. AGF declines any responsibility for this message in the
>event of alteration or falsification..
>If you are not the intended recipient, please destroy it immediately and
>notify the sender of the wrong delivery and the mail deletion.
>------------------------------
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
_________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]