metac0mak / spock

Automatically exported from code.google.com/p/spock
0 stars 0 forks source link

Translate the spock syntax into other languages (i18n) #127

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Describe the enhancement you have in mind.
Translate the spock syntax into other languages.

Which particular problem would this enhancement solve for you?
It would improve the test readability since all my business logic are in 
portuguese.

Please provide any additional information below. You can also assign
labels.
Cucumber has this feature: 
http://wiki.github.com/aslakhellesoy/cucumber/spoken-languages

Please let me know if you find it an interesting feature, so I can help you 
guys to have it done. Thanks.

Original issue reported on code.google.com by andre.j...@gmail.com on 13 Sep 2010 at 5:17

GoogleCodeExporter commented 8 years ago
What parts of the Spock syntax would you like to see translated? Just the 
blocks (when:, then:, etc.)? All methods on class Specification (thrown, old, 
etc.)? Anything else?

Original comment by pnied...@gmail.com on 14 Sep 2010 at 10:24

GoogleCodeExporter commented 8 years ago
I was thinking about the the blocks (when:, then:, etc.)

Original comment by andre.j...@gmail.com on 15 Sep 2010 at 12:27

GoogleCodeExporter commented 8 years ago
Do you guys think that this is possible?

Original comment by andre.j...@gmail.com on 19 Oct 2010 at 4:19

GoogleCodeExporter commented 8 years ago
It's definitely doable. I'm just wondering if translating the blocks alone is 
good enough. And I haven't had a good idea yet on how to translate other core 
elements of the specification language like the methods on 
spock.lang.Specification.

Original comment by pnied...@gmail.com on 20 Oct 2010 at 3:46

GoogleCodeExporter commented 8 years ago
We've made a spike on this one at Hackergarten. The problem is that we don't 
want to bake the translations into the Spock codebase, and I don't know of a 
way to load them from the class path (we'd need them at compilation time). So 
maybe translation is better left to reporting extensions.

Original comment by pnied...@gmail.com on 4 Oct 2012 at 6:56

GoogleCodeExporter commented 8 years ago
The Cucumber-link in the description above have moved to 
https://github.com/cucumber/cucumber/wiki/Spoken-languages

Original comment by sten.aks...@gmail.com on 24 May 2013 at 8:22