Summary: | Unable to change language to pl_PL | ||
---|---|---|---|
Product: | JMeter - Now in Github | Reporter: | kamil <kamil.kurop> |
Component: | Main | Assignee: | JMeter issues mailing list <issues> |
Status: | RESOLVED FIXED | ||
Severity: | minor | ||
Priority: | P2 | ||
Version: | 2.3.2 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP |
Description
kamil
2009-04-30 00:55:47 UTC
Why are you setting the Locale to pl_PL and not just pl? Is that what your JVM is set to or have you defined the JMeter "language" property? Using "pl" works fine in the nightly builds. Hi Sebb, I'm selecting current locale in Start > Control Panel > Regional Settings > first tab: Regional Options (and Advanced). I'm not passing JVM options -Duser.language=pl -Duser.region=PL to alter default (polish) locale, which I've set in What variable isDefault actually stores is information 'isEnglish' (check line #308). That may puzzle a bit. I've checked three computers (two Windows XP PL and one Windows 2000 Server PL) and Locale.getDefault() returns: Default locale: pl_PL. Cordially, Kamil ................................ // Code used to check for default locale import java.util.Locale; public class PrintLoc { public static void main(String[] args) { System.out.println("Default locale: " + Locale.getDefault()); } } I have this trouble only in Eclipse. When I've downloaded package from your website and saved polish property file in proper place, it works fine. OK, I see. What I have done is to add a further check. If the Locales don't match exactly, then check if they match when getLanguage() is used. If so, log a warning (because the requested Locale was not available) but continue. This corresponds better with the behaviour of Resource.getBundle(). See: URL: http://svn.apache.org/viewvc?rev=770174&view=rev Log: Bug 47127 - Unable to change language to pl_PL This will be in the nightlies from version r770174. Thanks for the report. This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2229 |