RE: application.properties file location - Internationalisation

2003-08-14 Thread Paananen, Tero
 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 cause an error  ?

It will fall back to using the default resources
defined in application.properties.

If you do not have a default properties file, there
will be an exception (unless you surpress that in
the message tag).

-TPP

-
This email may contain confidential and privileged material for the sole use of the 
intended recipient(s). Any review, use, retention, distribution or disclosure by 
others is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete all 
copies of this message.  Also, email is susceptible to data corruption, interception, 
tampering, unauthorized amendment and viruses. We only send and receive emails on the 
basis that we are not liable for any such corruption, interception, tampering, 
amendment or viruses or any consequence thereof.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: application.properties file location - Internationalisation

2003-08-14 Thread message message
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 cause 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]
_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: application.properties file location - Internationalisation

2003-08-14 Thread Bailey, Shane C.


I think everything is supported except diagonal right to left (or is it
diagonal left to right).  Sorry, I'm not sure.  :)

-Original Message-
From: message message [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2003 1:50 PM
To: [EMAIL PROTECTED]
Subject: RE: application.properties file location - Internationalisation



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

RE: application.properties file location - Internationalisation

2003-08-14 Thread Bailey, Shane C.


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]



RE: application.properties file location - Internationalisation

2003-08-14 Thread message message


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

RE: application.properties file location - Internationalisation

2003-08-14 Thread message message
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]


RE: application.properties file location - Internationalisation

2003-08-14 Thread Rohit Aeron
It will take default one 

Regards
Rohit

-Original Message-
From: message message [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2003 11:01 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 cause 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]


_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



*--
This message and any attachment(s) is intended only for the use of the addressee(s) 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the 
intended addressee(s), you are hereby notified that any use, distribution, disclosure 
or copying of this communication is strictly prohibited. If you have received this 
communication in error, please erase all copies of the message and its attachment(s

RE: application.properties file location - Internationalisation

2003-08-14 Thread message message
If I get hold of a sample file with Arabic type text, as described below,
then I guess we would be sure of what happens   :(
So many people logged on this line there must be one person !


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:52:44 -0400


I think everything is supported except diagonal right to left (or is it
diagonal left to right).  Sorry, I'm not sure.  :)
-Original Message-
From: message message [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 1:50 PM
To: [EMAIL PROTECTED]
Subject: RE: application.properties file location - Internationalisation


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