agndate displays in german

Use this forum for questions regarding adoption and functionality of OpenEMM

Moderator: moderator

molson150
Posts: 2
Joined: Wed Jan 28, 2009 5:49 pm

agndate displays in german

Post by molson150 »

when I put [agnDATE type=2] in my template html or text I get Mittwoch 28 Januar 2009 returned. I am not sure how to adjust this to be in english.

I have Openemm 5.5.1-1 installed


Thanks,
Jeremy
mkalen
Posts: 33
Joined: Tue Jan 20, 2009 7:51 pm

Re: agndate displays in german

Post by mkalen »

There are two undocumented attributes you can use with the [agnDATE] tag to control the locale used for formatting the date in Java.

Example for a swedish date:

Code: Select all

[agnDATE type="2" language="sv" country="SE"]
The list of possible language- and country codes are limited to those of the java.util.Locale class, documented here: http://java.sun.com/javase/6/docs/api/j ... ocale.html

Basically the Sun documentation just references other sites: Try this for english:

Code: Select all

[agnDATE type="2" language="en" country="US"]
OpenEMM team; could you please update the documentation for [agnDATE] in Appendix A of the user manual and add the undocumented attributes? (Also the page number for agnDATE in the index is wrong, referring to the index page and not the appendix.)

Regards,
Martin
molson150
Posts: 2
Joined: Wed Jan 28, 2009 5:49 pm

That fixed it.

Post by molson150 »

Thank you for the help that fixed it.

Jeremy
Post Reply