Re: [jbehave-user] Story language settings improvement suggestion
That would be no problem since you can set the language explicitly with a property like -Duser.language. I know that Oracle database has such defaults when you install it, but you can configure it afterwards to other timezones etc. This is not uncommon to do so. If you have a better idea of improving the language configuration in JBehave you are free to suggest another idea. I prefer convention over configuration wherever possible. One solution for this is using the platform locale. Another one is that JBehave detect the language automatically (which would be a bit harder to implement). Am 7. Oktober 2013 16:03 schrieb Andreas Ebbert-Karroum andreas.ebbert-karr...@codecentric.de: 2013/10/5 Mauro Talevi mauro.tal...@aquilonia.org We could make the language default to the platform locale, for example, instead of the English locale. No, please don't do that. This would mean that an identical setup would run on a developer PC and stops working on the CI environment, since the developer PC might run on a different locale than the integration environment. -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) . Michael Hochgürtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Re: [jbehave-user] Story language settings improvement suggestion
I created now a JIRA issue for this: https://jira.codehaus.org/browse/JBEHAVE-945 2013/10/5 Mauro Talevi mauro.tal...@aquilonia.org or good suggestions on how to achieve the goal. The problem is striking a balance between flexibility and configurability. We don't like setter and static injection. We prefer CDI. The issue here is how to make this easier to configure and what is the sensible default. We could make the language default to the platform locale, for example, instead of the English locale. Please raise a JIRA issue for this. Cheers On 04/10/2013 14:49, Cristiano Gavião wrote: good code contributions are always welcomed ! 2013/10/4 Hans Schwäbli bugs.need.love@gmail.com I tried to use JBehave with German language. Then I discovered that you have to configure a lot to achieve this. This is because you have to create a Keywords object and set it into many other objects. See http://jbehave.org/reference/stable/stories-in-your-language.html If you forget to set the Keyword object into one of the other objects, then it does not work correctly, tests fail. Or if JBehave is changed in a future version, your language configuration might not work anymore. Furthermore you need to configure that in the Eclipse plugin. I think this could be made much simpler. Can you make setting a language simpler please (suggestion)? The Eclipse plugin could detect the language of the story files automatically by default for instance. And there could be made a JBehave utility method (and maintained in the JBehave Core project) which sets the language into all required objects. Or it could even auto-detect the language (according to the translations shipped which JBehave) by default. This is just a suggestion. -- Tudo vale a pena se a alma não é pequena...
Re: [jbehave-user] Story language settings improvement suggestion
2013/10/5 Mauro Talevi mauro.tal...@aquilonia.org We could make the language default to the platform locale, for example, instead of the English locale. No, please don't do that. This would mean that an identical setup would run on a developer PC and stops working on the CI environment, since the developer PC might run on a different locale than the integration environment. -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) . Michael Hochgürtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Re: [jbehave-user] Story language settings improvement suggestion
good code contributions are always welcomed ! 2013/10/4 Hans Schwäbli bugs.need.love@gmail.com I tried to use JBehave with German language. Then I discovered that you have to configure a lot to achieve this. This is because you have to create a Keywords object and set it into many other objects. See http://jbehave.org/reference/stable/stories-in-your-language.html If you forget to set the Keyword object into one of the other objects, then it does not work correctly, tests fail. Or if JBehave is changed in a future version, your language configuration might not work anymore. Furthermore you need to configure that in the Eclipse plugin. I think this could be made much simpler. Can you make setting a language simpler please (suggestion)? The Eclipse plugin could detect the language of the story files automatically by default for instance. And there could be made a JBehave utility method (and maintained in the JBehave Core project) which sets the language into all required objects. Or it could even auto-detect the language (according to the translations shipped which JBehave) by default. This is just a suggestion. -- Tudo vale a pena se a alma não é pequena...