Skip to content

Commit

Permalink
merging translation, basic results fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Yoon committed Nov 2, 2010
2 parents 6723e78 + 99644a1 commit f866914
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 8 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -105,6 +105,16 @@ To work on the plugin code (for enhancements, and bug fixes, etc...) fork this g

# Changes

0.16.1

* fixed surveyor.sections translation line
* changed map resources order to access results survey success
* add translations for Sections title
* Add I18n to Sections title
* updated date on license
* updating results views and controller for new paths
* new results routes

0.16.0

* minor fixes to unparsing
Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
0.16.0
0.16.1
2 changes: 1 addition & 1 deletion app/views/surveyor/edit.html.haml
Expand Up @@ -3,7 +3,7 @@
= hidden_field_tag :current_section_id, @section.id
- unless @sections.size < 3
#menu
Sections:
= t('surveyor.sections')
%ul
- @sections.each do |s|
%li{:class => ("active" if s == @section)}= menu_button_for(s)
Expand Down
6 changes: 3 additions & 3 deletions config/routes.rb
@@ -1,9 +1,9 @@
Rails.application.routes.draw do
match 'results', :to => 'results#index', :as => 'results', :via => :get
match 'results/:survey_code', :to => 'results#show', :as => 'result', :via => :get
match 'surveys', :to => 'surveyor#new', :as => 'available_surveys', :via => :get
match 'surveys/:survey_code', :to => 'surveyor#create', :as => 'take_survey', :via => :post
match 'surveys/:survey_code/:response_set_code', :to => 'surveyor#show', :as => 'view_my_survey', :via => :get
match 'surveys/:survey_code/:response_set_code/take', :to => 'surveyor#edit', :as => 'edit_my_survey', :via => :get
match 'surveys/:survey_code/:response_set_code', :to => 'surveyor#update', :as => 'update_my_survey', :via => :put
match 'results', :to => 'results#index', :as => 'results', :via => :get
match 'results/:survey_code', :to => 'results#show', :as => 'result', :via => :get
end
end
17 changes: 17 additions & 0 deletions generators/surveyor/templates/locales/surveyor_es.yml
@@ -0,0 +1,17 @@
# Sample localization file for Spanish. Add more files in this directory for other locales.
# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.

es:
surveyor:
take_these_surveys: "Bienvenido, usted puede tomar estas encuestas"
take_it: "Tomar"
completed_survey: "Encuesta completada"
unable_to_find_your_responses: "No se puede encontrar sus respuestas a la encuesta"
unable_to_update_survey: "No se puede actualizar la encuesta"
unable_to_find_that_survey: "No se puede encontrar la encuesta"
survey_started_success: "Encuesta iniciada correctamente"
click_here_to_finish: "Haga clic aquí para terminar"
previous_section: "&laquo; Sección anterior"
next_section: "Sección siguiente &raquo;"
select_one: "Seleccione una ..."
sections: "Secciones"
Expand Up @@ -14,3 +14,4 @@ en:
previous_section: "&laquo; Previous section"
next_section: "Next section &raquo;"
select_one: "Select one ..."
sections: "Sections"
Expand Up @@ -14,4 +14,4 @@ he:
previous_section: "חזרה &raquo;"
next_section: "&laquo; המשך"
Select_one: "בחר/י"

sections: "סעיפים"
5 changes: 3 additions & 2 deletions surveyor.gemspec
Expand Up @@ -5,11 +5,11 @@

Gem::Specification.new do |s|
s.name = %q{surveyor}
s.version = "0.16.0"
s.version = "0.16.1"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Brian Chamberlain", "Mark Yoon"]
s.date = %q{2010-09-14}
s.date = %q{2010-11-02}
s.email = %q{yoon@northwestern.edu}
s.extra_rdoc_files = [
"README.md"
Expand Down Expand Up @@ -113,6 +113,7 @@ Gem::Specification.new do |s|
"generators/surveyor/templates/assets/stylesheets/sass/surveyor.sass",
"generators/surveyor/templates/assets/stylesheets/ui.theme.css",
"generators/surveyor/templates/locales/surveyor_en.yml",
"generators/surveyor/templates/locales/surveyor_es.yml",
"generators/surveyor/templates/locales/surveyor_he.yml",
"generators/surveyor/templates/migrate/add_correct_answer_id_to_questions.rb",
"generators/surveyor/templates/migrate/add_display_order_to_surveys.rb",
Expand Down

0 comments on commit f866914

Please sign in to comment.