Carmen
unread,May 22, 2013, 6:22:47 PM5/22/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to frank-...@googlegroups.com
Hi All,
I'm working on a new app that has a native ios login screen and once you sign in we're using webview to display http content.
This new app does not have Frank embedded in it like our previous app did. So now I'm doing frank build, launch, inspect and all is working well on 1.1.12.
I added some rotation steps and they worked fine.
Then I proceeded to add in the necessary files to support localization for Italian & French. I created an env_locale.rb file that loads the yml file based on the environment variable I set on the command line when running my cucumber tests.
When I do that, the rotation steps no longer work and I see this:
|71:238: execution error: System Events got an error: Can’t get process "translation missing: en.iphone_simulator". (-1728)
^Z
It appears that there's a conflict and that only my files are loaded and yours are ignored? I'm including the contents of my env_locale.rb file and the command line usage. When I completely comment out this file, the rotations work as expected. How can I load my translations and yours too?
Thank you,
Carmen
$locale_env = ENV['LOCALE'] || "en"
$running_locally = ENV['CMB'] || "no"
case $locale_env
when "fr"
$locale = "French"
I18n.locale = :fr
I18n.backend.load_translations(File.dirname(File.dirname(__FILE__)) + '/support/locales/fr.yml')
YAML::load_file(File.dirname(File.dirname(__FILE__)) + '/support/locales/fr.yml')
when "it"
$locale = "Italian"
I18n.locale = :it
I18n.backend.load_translations(File.dirname(File.dirname(__FILE__)) + '/support/locales/it.yml')
YAML::load_file(File.dirname(File.dirname(__FILE__)) + '/support/locales/it.yml')
when "de"
$locale = "German"
I18n.locale = :de
I18n.backend.load_translations(File.dirname(File.dirname(__FILE__)) + '/support/locales/de.yml')
YAML::load_file(File.dirname(File.dirname(__FILE__)) + '/support/locales/de.yml')
else
$locale = "English"
I18n.locale = :en
I18n.backend.load_translations(File.dirname(File.dirname(__FILE__)) + '/support/locales/en.yml')
YAML::load_file(File.dirname(File.dirname(__FILE__)) + '/support/locales/en.yml')
end # end case
cucumber LOCALE="en" -r features features/smoke/smoke_test.feature