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

Enable Pickles to deal with cultures in the language setting #308

Closed
renegadexx opened this issue Mar 22, 2016 · 5 comments
Closed

Enable Pickles to deal with cultures in the language setting #308

renegadexx opened this issue Mar 22, 2016 · 5 comments

Comments

@renegadexx
Copy link

My feature files starts with the #language: de - parameter. The command line (Version 2.5) is unable to create the documentation with this valid parameter and prompt *.feature will be ignored because it could not be read in properly.

@dirkrombauts
Copy link
Member

Thank you for taking the time to report this problem.

As a possible workaround until I can deploy a proper fix: try setting the language parameter to "de".

@renegadexx
Copy link
Author

Hi Dirk

Here are additional details for reproducing the problem:

Command Line setttings:
pickles -l de -o "e:..." -f "C:\projects...\Features"

First lines of Feature files:
#language: de-CH
Funktionalität: Fortbildungsprotokolle validieren [80]

I need the de-CH switch, because Switzerland has a different number format and demiliter as de.

@dirkrombauts
Copy link
Member

Good news and bad news for you ...

The bad news: I'm afraid "de-CH" isn't supported, only "de". Pickles supports exactly the same languages as Gherkin, the parser used by Cucumber, SpecFlow and also by Pickles. Here's the list of supported languages: https://github.com/cucumber/gherkin/blob/master/gherkin-languages.json

The good news: all is not lost for you. The #language parameter defines only the language of the keywords (like Funktionalität instead of Feature), nothing more. If you want to handle numbers in a different format or with different delimiters, you can do that in the automation layer.

But maybe I'm missing something - could you describe your situation in a bit more detail? Could you perhaps give one of the lines with swiss-formatted numbers? If you don't feel comfortable discussing this in a public forum, you can email me at dirk dot rombauts at picklespro dot com.

@dirkrombauts
Copy link
Member

I have an update for you - I have learned of a way to deal with this problem. I will be able to make Pickles support "de-CH" in the future. Now I only need to find time to do it. If you want to have a go at it yourself, I can give you the information you will need.

@dirkrombauts dirkrombauts changed the title *.feature will be ignored because it could not be read in properly if feature-file start with #language Pickles cannot deal with cultures in the language setting May 27, 2016
@dirkrombauts dirkrombauts changed the title Pickles cannot deal with cultures in the language setting Enable Pickles to with cultures in the language setting Oct 22, 2016
@dirkrombauts dirkrombauts changed the title Enable Pickles to with cultures in the language setting Enable Pickles to deal with cultures in the language setting Oct 23, 2016
@dirkrombauts
Copy link
Member

Released in version 2.10.0.

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