Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.8
-
Fix Version/s: 3.9, eclipse-1.0
-
Component/s: Core, Eclipse Support
-
Labels:None
-
Environment:Multi language
-
Number of attachments :
Description
As it seems JBehave does not support multilanguage for parameter names.
Unfortunately this Jira is not configured for umlauts, so I cannot paste the text into this ticket. See the first attached screenshot please for how the step looks like with umlauts.
JBehave does not like the parameter names containing umlauts since they contain non-ASCII characters.
This applies both to the Eclipse plugin and the core execution.
Please see the attached screenshots which illustrate the problem.
Can you please fix that so that umlauts are supported in JBehave parameter names?
Activity

Field | Original Value | New Value |
---|---|---|
Description |
As it seems JBehave does not support multilanguage for parameter names.
I tried this: {code} @When("ich $betrag $währung von Konto $lastkonto zu $gutschriftskonto $ausführung übertrage mit Zahlungsinfo $info") public void transfer(@Named("betrag") String amount, @Named("währung") String currency, @Named("lastkonto") String debitAccount, @Named("gutschriftskonto") String creditAccount, @Named("ausführung") String execution, @Named("info") String paymentInformation) { // TODO } {code} JBehave does not like the parameter names "währung" and "ausführung" since they contain non-ASCII characters. This applies both to the Eclipse plugin and the core execution. Please see the attached screenshots which illustrate the problem. Can you please fix that so that umlauts are supported in JBehave parameter names? |
As it seems JBehave does not support multilanguage for parameter names.
I tried this: {code} @When("ich $betrag $währung von Konto $lastkonto zu $gutschriftskonto $ausführung übertrage mit Zahlungsinfo $info") public void transfer(@Named("betrag") String amount, @Named("währung") String currency, @Named("lastkonto") String debitAccount, @Named("gutschriftskonto") String creditAccount, @Named("ausführung") String execution, @Named("info") String paymentInformation) { // TODO } {code} JBehave does not like the parameter names "währung" and "ausführung" since they contain non-ASCII characters. This applies both to the Eclipse plugin and the core execution. Please see the attached screenshots which illustrate the problem. Can you please fix that so that umlauts are supported in JBehave parameter names? |

Description |
As it seems JBehave does not support multilanguage for parameter names.
I tried this: {code} @When("ich $betrag $währung von Konto $lastkonto zu $gutschriftskonto $ausführung übertrage mit Zahlungsinfo $info") public void transfer(@Named("betrag") String amount, @Named("währung") String currency, @Named("lastkonto") String debitAccount, @Named("gutschriftskonto") String creditAccount, @Named("ausführung") String execution, @Named("info") String paymentInformation) { // TODO } {code} JBehave does not like the parameter names "währung" and "ausführung" since they contain non-ASCII characters. This applies both to the Eclipse plugin and the core execution. Please see the attached screenshots which illustrate the problem. Can you please fix that so that umlauts are supported in JBehave parameter names? |
As it seems JBehave does not support multilanguage for parameter names.
Unfortunately this Jira is not configured for umlauts, so I cannot paste the text into this ticket. See the first attached screenshot please for how the step looks like with umlauts. JBehave does not like the parameter names containing umlauts since they contain non-ASCII characters. This applies both to the Eclipse plugin and the core execution. Please see the attached screenshots which illustrate the problem. Can you please fix that so that umlauts are supported in JBehave parameter names? |

Attachment | DeStories.java [ 64388 ] | |
Attachment | DeSteps.java [ 64389 ] | |
Attachment | de_trader_is_alerted_of_status.geschüchte [ 64390 ] |

Attachment | JBEHAVE-957.patch [ 64399 ] |

Fix Version/s | 3.9 [ 19035 ] | |
Affects Version/s | 4.0 [ 18486 ] |

Summary | No umlaut support for parameter names | No umlaut support for step pattern placeholder names |
Assignee | Mauro Talevi [ maurotalevi ] |

Summary | No umlaut support for step pattern placeholder names | Support for accented letters in step pattern placeholder names |
Issue Type | Bug [ 1 ] | Improvement [ 4 ] |

Component/s | Eclipse Support [ 15582 ] |

Fix Version/s | eclipse-1.0 [ 18652 ] | |
Component/s | Eclipse Support [ 15582 ] |

Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Hi Otto,
umlauts should be supported like any other unicode character. What you need to ensure is that the encoding is the same, and set to UTF-8.
See the encoding section of: http://jbehave.org/reference/stable/stories-in-your-language.html
The i18n example https://github.com/jbehave/jbehave-core/tree/master/examples/i18n shows that non-ASCII chars are supported.