Apologies, that should have been locale.default.bundle=Sebastian locale.default.language=de locale.default.country=
Sorry for the previous misleading statement -----Original Message----- From: James Cooper [mailto:[EMAIL PROTECTED] Sent: 24 June 2003 14:13 To: Turbine Users List Subject: RE: localization Hi Sebastian, I there are lots of post relating to this in the archive if I'm not totally spot of here. First off, by default the LocaliztionTool parses your locale from the HTTP header, so make sure in your browser that your locale is Germany(de) DE, so you don't need locale.deault.country=DE simply set it to locale.deault.country= Next your properties file. That needs to be something like Sebastian_de.properties So rather than locale.default.bundle=de.hsh.onum.language Set it to locale.default.bundle=Sebastian_de.properties That will be your default properties, I've suggested in the past to right a small PageValidator singleton to ensure a startswith approach, so for instance though I don't speak German, I very much doubt that theres a huge difference between Austrian,German,Swisss,Luxembourg or Liechenstein German. Though could be totally wrong there :) That would negate having a separate bundle for a different locale. So if you want to support Bulgarian, just add another properties bundle called Sebastian_bg.properties And if a user with a locale defined with the their HTTP header does not have a resource bundle, the default Sebastian_de.properties will be used. Oh one last element, for dev purposes you'll probably have the Sebastian_de.properties in your WEB-INF/classes directory, but its equally possible to put it in the top mode leaf in your JAR file. Course, normal class load preference rules still apply. Any probs, shout out. James -----Original Message----- From: Sebastian Vogt [mailto:[EMAIL PROTECTED] Sent: 24 June 2003 13:46 To: [EMAIL PROTECTED] Subject: localization Hi, I`m new here and I?m also a newby in Turbine... so I have Problems to get my Internationalization running. I use turbine in connection with Velocity... I made already my entries for the default language in TurbineResource.properties like this: locale.default.bundle=de.hsh.onum.language locale.default.language=de locale.default.country=DE tool.request.l10n= org.apache.servicers.localization.LocalizationTool and now I tried to call it under Velocity like this: $l10n.get("propertyname") But it doesn`t work.... so can anyone help me Thanks Sebastian --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]