https://issues.apache.org/bugzilla/show_bug.cgi?id=47127
Summary: Unable to change language to pl_PL
Product: JMeter
Version: 2.3.2
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Main
AssignedTo: [email protected]
ReportedBy: [email protected]
Hi!
I received an error while trying to run JMeter:
An error occurred: Unable to change language to pl_PL
The cause was in line 325 in class JMeterUtils:
resBund.getLocale().equals(loc)
resBund.getLocale()
(java.util.Locale) pl
loc
(java.util.Locale) pl_PL
I've modified it to have JMeter run in my language:
from: resBund.getLocale().equals(loc)
to: resBund.getLocale().getLanguage().equals(loc.getLanguage())
resBund.getLocale().getLanguage()
(java.lang.String) pl
loc.getLanguage()
(java.lang.String) pl
Now it's equal, no exception is thrown, and I'm happy to see JMeter on my
screen. I don't know if it's the best solution of such problem. Maybe some
other way of comparing should be used? Something from java.util.Locale? Maybe
you'll have a better idea, something more elegant?
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]