Skip to content

Commit

Permalink
[#39] Select the blurbs locale by default.
Browse files Browse the repository at this point in the history
* Do not use the projects default locale which can be misleading.
  • Loading branch information
patricksrobertson committed Mar 18, 2012
1 parent 64ed343 commit af6b6d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/versions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ def new
@localization = Localization.find(params[:localization_id])
@version = @localization.revise
@project = @localization.project
@locale = @project.locale
@locale = @project.locale(@localization.locale_id)
end
end
8 changes: 8 additions & 0 deletions features/translate_blurb.feature
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,11 @@ Feature: translate blurbs
When I follow "Locale: en"
And I follow "es"
Then the "Content" field should contain "hola"

Scenario: While editing blurbs, the correct locale should be selected
When I follow "View all"
And I follow "one"
Then the "en" locale should be selected
When I follow "Locale: en"
And I follow "es"
Then the "es" locale should be selected

0 comments on commit af6b6d3

Please sign in to comment.