Arnauld/jbehave-eclipse-plugin

Localized steps (Keyword) are not fully supported

Closed this issue · 9 comments

In lot of place, localized keyword are not supported and "Given", "When", ... are hardcoded.
Check syntax hightlighting and keyword detectors in the xxxScanner classes

Just so you know, I am working on this. However it is a little slow going and might take a while longer, because I have not made up my mind about the presentation of the language configuration and on how to keep it low impact on the existing codebase.

that's great! thanks!

here are some links of hard coded values

Hope this helps a bit

Not part of the localized keyword, but mostly related on i18n see Issue 36 for the templates that use english keywords only

In the meanwhile, i'll add the story locale in the preference page, if you've not done it yet.

No, I have not changed the preferences in a meaningful way yet, just rammed in a simple text field to enter a string that I use with Locale.get... A little more style (and an implementation as a project level setting) would certainly be in order.

I am working on the feature right now. As there have been no commits from you (none that I could see at least :)), I am also adding the language to the editor preferences as a popup.
I will attempt to fill it from the available JBehave localized keyword files.

I won't have a chance to work on this for the next two weeks. You are welcome to take a look at what i have done so far. Currently there is a problem when the language is changed - editors don't recognize the steps anymore. Maybe you want to take a look at that.

Sure, i'll have a look, does it correspond to LocalizedKeywords branch?

Yes, exactly.

I'm currently looking at it, refactoring many methods to make them rely on JBehaveProject instead of being static since the story locale can be project specific and not global. I'll commit the current state once at least it compiles.

Furthermore, i've moved the locale selection into a dedicated preference page, so that it can easily be available for project properties too.

Should be available for 1.0.7