cucumber/cucumber-jvm — Issue #237: i18n by configuration
Author: PhilipMay
Created: 2012-03-01 19:08:58+00:00
State: open

In the cucumber-java package we have some i18n of the And, But, Given, Then, When annotations. They are generated at build time by maven and placed in "/cucumber-jvm/java/target/generated-sources/i18n/java/cucumber/annotation/en", /de, /it, /uk and so on.

This is what I would call "source code level internationalization". I think this isn't an optimal way for i18n for several reasons:

* i18n is a cross cutting concern that should not happen at source level - it's better to do it by configuration

* a mixture of different languages in one project is possible but could be confusing - a single point of configuration would normalize this

* the maven configuration to generate the i18n classes feels like a hack and causes problems with m2eclipse

Therefore I would like to suggest to lend the i18n by configuration idea from jbehave: http://jbehave.org/reference/stable/stories-in-your-language.html

What do you think about this?
I could implement it if it's wanted.