portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lars Vogelgesang <vog...@rumms.uni-mannheim.de>
Subject Localization -> Server Date
Date Sat, 28 Apr 2001 11:14:08 GMT
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


Mime
View raw message