jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Mouawad <philippe.moua...@gmail.com>
Subject Re: Support "language" in user.properties?
Date Sun, 14 Oct 2012 14:27:52 GMT
+1 for me also.
But we should check it cannot introduce issues with BeanInfoSupport Test
Element, see:

   - https://issues.apache.org/bugzilla/show_bug.cgi?id=53679

Regards

Philippe

On Sun, Oct 14, 2012 at 4:14 PM, Milamber <milamber@apache.org> wrote:

>
>
> Le 14/10/2012 13:54, Rainer Jung a ecrit :
>
>  Currently the language property is not supported in user.properties,
>> because the locale gets initialized before user.properties is read. I guess
>> that's because the logging is then also started and localization support is
>> needed.
>>
>> Nevertheless it seems to work well to switch locale later after
>> user.properties and command line flags have been read. I tested the
>> following patch:
>>
>> Index: src/core/org/apache/jmeter/**JMeter.java
>> ==============================**==============================**=======
>> --- src/core/org/apache/jmeter/**JMeter.java      (revision 1398057)
>> +++ src/core/org/apache/jmeter/**JMeter.java      (working copy)
>> @@ -679,6 +679,9 @@
>>              remoteProps.put(SampleEvent.**SAMPLE_VARIABLES,
>> sample_variables);
>>          }
>>          jmeterProps.put("jmeter.**version",
>> JMeterUtils.getJMeterVersion()**);
>> +        // Initialize locale again in case it was overwritten by
>> +        // user.properties or command line flags
>> +        JMeterUtils.initLocale();
>>      }
>>
>>      /*
>>
>>
>> WDYT?
>>
>
> Thanks.
>
>
> Great idea! I vote for this patch! (I love French version of JMeter :-) )
>
> Milamber
>
>
>
>
>> Regards,
>>
>> Rainer
>>
>>
>


-- 
Cordialement.
Philippe Mouawad.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message