Hi, Sorry for the delay... 2011/10/17 Klein, Raimund <raimund.kl...@berenberg.de>: > We're happily employing joda time library (2.0) within a few projects, > but have run into an issue with the class PeriodFormat when running on a > non-English system: PeriodFormat.wordBased(Locale) will not, as stated, > return an English PeriodFormat instance, but instead one for the running > JVM's default (in our case, German). Same for PeriodFormat.getDefault().
The wordBased() method should return the format for the default locale, and wordBased(Locale) for the specified locale, while getDefault() should return English. None of these should require a messages_en.properties file, as the default language file messages.properties performs that role. As far as I can see, the Javadoc looks fine, referring to English, default locale and specified locale as appropriate. Thus, I'm not sure exactly what you are seeing that you think is wrong! Stephen > I've played around a bit and found out that I only needed to copy the file > org/joda/time/format/messages.properties to a file messages_en.properties at > the same location within the classpath, and everything is working as > expected. > > Is this intentional? Judging from the Javadoc comments, it seems that the > file "messages_en.properties" should be included in the standard > distribution. > > > Mit freundlichen Grüßen / Kind Regards > > Raimund Klein > > EDV / Software Entwickler > > > > BERENBERG BANK > > Joh. Berenberg, Gossler & Co. KG > > Neuer Jungfernstieg 20 > > 20354 Hamburg > > > > Telefon +49 40 350 60-8129 > > Telefax +49 40 350 60-955 > > E-Mail raimund.kl...@berenberg.de > > www.berenberg.de > > > > Sitz: Hamburg - Amtsgericht Hamburg HRA 42659 > > > > Diese Nachricht einschliesslich etwa beigefuegter Anhaenge ist vertraulich > und kann dem Bank- und Datengeheimnis unterliegen oder sonst rechtlich > geschuetzte Daten und Informationen enthalten. Wenn Sie nicht der richtige > Adressat sind oder diese Nachricht irrtuemlich erhalten haben, informieren > Sie bitte sofort den Absender über die Antwortfunktion. Anschliessend > moechten Sie bitte diese Nachricht einschliesslich etwa beigefuegter > Anhaenge unverzueglich vollstaendig loeschen. Das unerlaubte Kopieren oder > Speichern dieser Nachricht und/oder der ihr etwa beigefuegten Anhaenge sowie > die unbefugte Weitergabe der darin enthaltenen Daten und Informationen sind > nicht gestattet. Wir weisen darauf hin, dass rechtsverbindliche Erklaerungen > namens unseres Hauses grundsaetzlich der Unterschriften zweier ausreichend > bevollmaechtigter Vertreter unseres Hauses beduerfen. Wir verschicken daher > keine rechtsverbindlichen Erklaerungen per E-Mail an Dritte. Demgemaess > nehmen wir per E-Mail auch keine rechtsverbindlichen Erklaerungen oder > Auftraege von Dritten entgegen. > > Sollten Sie Schwierigkeiten beim Oeffnen dieser E-Mail haben, wenden Sie > sich bitte an den Absender oder an i...@berenberg.de. Please refer to > http://www.berenberg.de/my_berenberg/disclaimer_e.html for our > confidentiality notice. > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2d-oct > _______________________________________________ > Joda-interest mailing list > Joda-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/joda-interest > > ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest