Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localized steps (Keyword) are not fully supported #3

Closed
Arnauld opened this issue Mar 13, 2011 · 9 comments
Closed

Localized steps (Keyword) are not fully supported #3

Arnauld opened this issue Mar 13, 2011 · 9 comments

Comments

@Arnauld
Copy link
Owner

Arnauld commented Mar 13, 2011

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

@dschneller
Copy link
Contributor

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.

@Arnauld
Copy link
Owner Author

Arnauld commented Feb 8, 2012

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.

@dschneller
Copy link
Contributor

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.

@dschneller
Copy link
Contributor

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.

dschneller added a commit to dschneller/jbehave-eclipse-plugin that referenced this issue Feb 10, 2012
Introduces a new preference in the editor settings to pick
the language which is used in story files. Currently there
is a problem with switching the language: Before the IDE
is restarted, steps will not be found and marked as errors.
Same goes for auto-completion.
@dschneller
Copy link
Contributor

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.

@Arnauld
Copy link
Owner Author

Arnauld commented Feb 11, 2012

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

@dschneller
Copy link
Contributor

Yes, exactly.

@Arnauld
Copy link
Owner Author

Arnauld commented Feb 12, 2012

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.

@Arnauld
Copy link
Owner Author

Arnauld commented May 8, 2012

Should be available for 1.0.7

@Arnauld Arnauld closed this as completed May 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants