You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Lars Vogelgesang <vo...@rumms.uni-mannheim.de> on 2001/04/28 13:14:08 UTC
Localization -> Server Date
Hi all!
I think, there should also be a representation of the server date ( in
Util.java ) should
also be adjusted to the chosen language...
Therefore the getNiceDate()-method (line 163) in
org.apache.jetspeed.util.Util
could be changed to:
public static ConcreteElement getNiceDate() {
return new ElementContainer().addElement
( new B().addElement(Localization.getString("DATE")+": ") )
.addElement(
DateFormat.getDateTimeInstance().format( new Date() ) );
}
And in the Localization-Classes (
org.apache.jetspeed.modules.localization.JetspeedLocalization_de,..._en,...)
an entry like:
{"DATE", "Datum"},
has to be added.
What do you think?
Greetings,
Lars
--
-------------------------------------
Lars Vogelgesang
vogelg@rumms.uni-mannheim.de
http://www.vogelgesang.xodox.de
http://www.madnotmad.de
http://www.munsters.de.st
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: Localization -> Server Date
Posted by Santiago Gala <sg...@hisitech.com>.
ingo schuster wrote:
>
>> The changes are not with respect to the current code base (class Util
>> is not there). I think the changes should be applied in the templates,
>> as JetspeedTopNavigation.java (that contains essentially this code) is
>> no longer used.
>>
>> The templates in
>> webapp/WEB-INF/templates/<engine>/<media>/<language>/<country> should
>> be localized as you point.
>>
>> Maybe people that knows better this part can help here.
>
>
> The server date string is generated inside
> jetspeed\services\jsp\tags\InfoTag.java (at least for the jsp case...)
>
We could use the user locale to format the date string. That is the only
conceivable change there
And the "Server Date:" String is in
templates/xx/navigations/xx/xx/top_default.xx (or top_logged_in)
So, customising the template will get your localised string.
> ingo.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: Localization -> Server Date
Posted by ingo schuster <in...@web.de>.
>The changes are not with respect to the current code base (class Util is
>not there). I think the changes should be applied in the templates, as
>JetspeedTopNavigation.java (that contains essentially this code) is no
>longer used.
>
>The templates in
>webapp/WEB-INF/templates/<engine>/<media>/<language>/<country> should be
>localized as you point.
>
>Maybe people that knows better this part can help here.
The server date string is generated inside
jetspeed\services\jsp\tags\InfoTag.java (at least for the jsp case...)
ingo.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: Localization -> Server Date
Posted by Santiago Gala <sg...@hisitech.com>.
Lars Vogelgesang wrote:
> Hi all!
> I think, there should also be a representation of the server date ( in
> Util.java ) should
> also be adjusted to the chosen language...
> Therefore the getNiceDate()-method (line 163) in
> org.apache.jetspeed.util.Util
> could be changed to:
> public static ConcreteElement getNiceDate() {
> return new ElementContainer().addElement
> ( new B().addElement(Localization.getString("DATE")+": ") )
> .addElement(
> DateFormat.getDateTimeInstance().format( new Date() ) );
> }
>
> And in the Localization-Classes (
> org.apache.jetspeed.modules.localization.JetspeedLocalization_de,..._en,...)
>
> an entry like:
> {"DATE", "Datum"},
> has to be added.
>
> What do you think?
>
The changes are not with respect to the current code base (class Util is
not there). I think the changes should be applied in the templates, as
JetspeedTopNavigation.java (that contains essentially this code) is no
longer used.
The templates in
webapp/WEB-INF/templates/<engine>/<media>/<language>/<country> should be
localized as you point.
Maybe people that knows better this part can help here.
Thanks for your effort.
> Greetings,
> Lars
> --
> -------------------------------------
> Lars Vogelgesang
> vogelg@rumms.uni-mannheim.de
> http://www.vogelgesang.xodox.de
> http://www.madnotmad.de
> http://www.munsters.de.st
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org