sebastianbenz / Jnario

Executable specifications for Java
136 stars 38 forks source link

Acceptance Specifications translations support #166

Closed giflw closed 7 years ago

giflw commented 8 years ago

Hi,

I wish to know how to use translations in Acceptance Specifications, like example below, if there is a way. If not, there is someway to accomplish this or a planned feature?

Feature: Searching for web pages via Google
  Scenario: Searching for Jnario
   Given I opened "http://www.google.com"
   When I search for "Jnario"
   Then the result should contain "Jnario - Executable Specifications for Java"
Funcionalidade: Pesquisando por páginas web via Google
  Cenário: Pesquisando por Jnario
   Dado que eu abri "http://www.google.com"
   Quando eu pesquiso por "Jnario"
   Então o resultado deveria conter"Jnario - Executable Specifications for Java"

Thanks

sebastianbenz commented 8 years ago

We already discussed this, but it is a hard problem to solve technically and it is not planned in the near future.

On Thu, Sep 17, 2015 at 5:52 PM Guilherme I F L Weizenmann < notifications@github.com> wrote:

Hi,

I wish to know how to use translations in Acceptance Specifications, like example below, if there is a way. If not, there is someway to accomplish this or a planned feature?

  • Original (English):

Feature: Searching for web pages via Google Scenario: Searching for Jnario Given I opened "http://www.google.com" When I search for "Jnario" Then the result should contain "Jnario - Executable Specifications for Java"

  • Translated (e.g. Portuguese):

Funcionalidade: Pesquisando por páginas web via Google Cenário: Pesquisando por Jnario Dado que eu abri "http://www.google.com" Quando eu pesquiso por "Jnario" Então o resultado deveria conter"Jnario - Executable Specifications for Java"

Thanks

— Reply to this email directly or view it on GitHub https://github.com/sebastianbenz/Jnario/issues/166.

giflw commented 8 years ago

I don't know xtext, but is there a way to set some tokens to be read from a external file?

giflw commented 8 years ago

Or maybe in a configurator class or annotation?

sebastianbenz commented 8 years ago

The tokens are compiled into a java lexer - they can't be simply replaced.

On Thu, Sep 17, 2015 at 6:00 PM Guilherme I F L Weizenmann < notifications@github.com> wrote:

Or maybe in a configurator class or annotation?

— Reply to this email directly or view it on GitHub https://github.com/sebastianbenz/Jnario/issues/166#issuecomment-141149314 .