You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "David M. Karr" <dm...@earthlink.net> on 2002/08/01 18:18:20 UTC

Re: Internationalizing large amounts of text

>>>>> "Steven" == Steven Banks <SD...@vac-acc.gc.ca> writes:

    Steven> I have been asked to convert some static html pages to jsp pages using Struts.  These pages include several very large paragraphs, like important notices and privacy statements.
    Steven> Should all this text be put into the applicationResource.properties file?  Is it acceptable to have the appropriately internationalized static html text included in the page using an equals tag to determine which language version to include.  
Note that if you do store this in a properties file, you don't have to have
conditional checks in your page to check for the locale.  Just put the text
associated with each locale in a different locale-specific properties file, and
the i18n code will find the message for the correct locale.  Your page just
asks for a single message.

-- 
===================================================================
David M. Karr          ; Java/J2EE/XML/Unix/C++
dmkarr@earthlink.net


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Internationalizing large amounts of text

Posted by honsali ilia <il...@hps.ma>.
hello
maybe this response come to late but I stand for the "bean_message is
problematic" discussion to finish in order to complete my response
so what I sggest to you is to put the name of your static files in the
ApplicationRessources.properties
ex:

in ApplicationResources_fr.properties:
key.file=/frenchFile.htm
--------------------------------------------------------------------
in ApplicationResources_en.properties:
key.file=/englishFile.htm
--------------------------------------------------------------------
and in the main Page
<%@ taglib uri="struts-bean.tld" prefix="bean" %>
<bean:define id="theFile"><bean:message key="file"/></bean:define>
<bean:include id="pageFile" page="<%=theFile%>" />
<%=pageFile%>
--------------------------------------------------------------------






-----Message d'origine-----
De : David M. Karr [mailto:dmkarr@earthlink.net]
Envoye : jeudi 1 aout 2002 16:18
A : struts-user@jakarta.apache.org
Objet : Re: Internationalizing large amounts of text


>>>>> "Steven" == Steven Banks <SD...@vac-acc.gc.ca> writes:

    Steven> I have been asked to convert some static html pages to jsp pages
using Struts.  These pages include several very large paragraphs, like
important notices and privacy statements.
    Steven> Should all this text be put into the
applicationResource.properties file?  Is it acceptable to have the
appropriately internationalized static html text included in the page using
an equals tag to determine which language version to include.
Note that if you do store this in a properties file, you don't have to have
conditional checks in your page to check for the locale.  Just put the text
associated with each locale in a different locale-specific properties file,
and
the i18n code will find the message for the correct locale.  Your page just
asks for a single message.

--
===================================================================
David M. Karr          ; Java/J2EE/XML/Unix/C++
dmkarr@earthlink.net


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>