Forum: RSpec [cucumber] more than one keyword translation

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E7d6cc5f903d5b730cbe527b3e0e209a?d=identicon&s=25 Oliver Barnes (Guest)
on 2009-04-07 01:16
(Received via mailing list)
Hello,

I'm trying to get Given in Portuguese to have two translations, "Dado"
and "Dada" (variations on gender), so that the features are more
readable.

so I have this in my languages.yml:

given: Dado|Dada (found this syntax in a comment within the cucumber
codebase)

but when I run

cucumber -l pt -f progress features/

the second option isn't read:

./features/step_definitions/clipping/gerenciamento_de_clippings_steps.rb:1:
undefined method `Dado' for #<Object:0x389a0> (NoMethodError)
  from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
  from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`polyglot_original_require'
  from /Library/Ruby/Gems/1.8/gems/polyglot-0.2.5/lib/polyglot.rb:54:in
`require'
  from
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:158:in
`require'
  from
/Library/Ruby/Gems/1.8/gems/cucumber-0.2.3/bin/../lib/cucumber/cli/main.rb:76:in
`require_files'
  from
/Library/Ruby/Gems/1.8/gems/cucumber-0.2.3/bin/../lib/cucumber/cli/main.rb:74:in
`each'
  from
/Library/Ruby/Gems/1.8/gems/cucumber-0.2.3/bin/../lib/cucumber/cli/main.rb:74:in
`require_files'
  from
/Library/Ruby/Gems/1.8/gems/cucumber-0.2.3/bin/../lib/cucumber/cli/main.rb:34:in
`execute!'
  from
/Library/Ruby/Gems/1.8/gems/cucumber-0.2.3/bin/../lib/cucumber/cli/main.rb:20:in
`execute'
  from /Library/Ruby/Gems/1.8/gems/cucumber-0.2.3/bin/cucumber:6
  from /usr/bin/cucumber:19:in `load'
  from /usr/bin/cucumber:19

what's the correct way to do this?

- Oliver
This topic is locked and can not be replied to.