Hi Mauro,
I was trying to run TraderSellsAllStocks and it didn't run ok.
I found the reason. I could see that you have used the following to
configure TraderScenario:
public KeyWords keywords() {
return new I18nKeyWords();
}
Using I18nKeyWords() without parameter calls Locale.getDefault() that
for mine environment it is pt_BR.
But trader_sells_all_stocks.scenario was written in English. So I
suggest you to specify a locale for english language as parameter for
I18nKeyWords object.
About patternFor(String key, String default), I couldn't figure out yet
how could I use it. Will you use a resource bundle for looking for the key?
Best regards
Cristiano
Mauro Talevi escreveu:
Hi Cristiano,
Cristiano Gavião wrote:
Hi everybody,
I could see that you has started to implement I18n for the next
realese. Very nice idea !!!
I would like to ask you to include PrintStreamScenarioReporter on
this job too, or at least make it available for us to extending it
and override the messages methods (some attributes on this class as
'cause' is private and there is no setter) .
I've made the message format patterns overrideable
http://jira.codehaus.org/browse/JBEHAVE-178
Some better documentation will follow soon, but you can try it out in
the mean time, using latest snapshot. Check out latest source of
PrintStreamScenarioReporter, in particular method
String patternFor(String key, String default);
Im sending the keywords resourcebundle for Brazilian Portuguese just
in case you want to include it on core.
Thanks, duly added.
Cheers
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email