instedd-rails 0.0.22 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTVkMzE2MjVmODRmYmRlOGNkZjVmYWRhMWFmMDEyN2FlNWE5ZjJkMA==
4
+ MGE2MmUxZTdmNWQ3YmNlZTlhZThjY2MwNjIwN2I2MmI2Yjg4OWU0Ng==
5
5
  data.tar.gz: !binary |-
6
- MzcwM2RlZmNmZDdkYmIzMmFlMjAzNGE3NWI2OTcxYTM5ZmU0NjI1OQ==
6
+ ZDM5NGUyMTBkMGRlNDAwODBkMjg1NzAyYTU1Njg4YmNmN2Y4MTNhZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODhiZDdkODViNTM0Mjg2MDE2NGZlOTBjMzQyNmE0MTUwMGUxOTI4MzQ4NDdk
10
- MTc1ZTU4OGNmMjVmZTc0MDk3YmRmODVmMWIxM2E5ZjVlOTYxZWZhYzhmMGJk
11
- NDJhODI4YTQ2ODg4ZGY4YjEzNDFhOWNkNTljMTM2ODMyNTg5Yjc=
9
+ MjRkZmU0YmMzOTYxMzdhYzAyNWIyOGZlZGQ4YTNkZDVhZTM0Y2JjMmRhYTNi
10
+ MjY1MDVkNzY4MjhkMjkyYjlhODc4Y2U1OTFmYzcwZDZiZTllYTAyNmFhZWE0
11
+ NGIwNWYzNGE1NmRmNDM0OTM3OGM1MWFhNzgyZjNkMDYzNzRjZDE=
12
12
  data.tar.gz: !binary |-
13
- ZDVkMmU0ZWJlMjA1MTcyYzFkNmVhN2NmYWRlMjA2ZGM2MWZiOWFmOTBjOWU0
14
- NmE4MzU1YjcxOTM2YzFhYmQ4YjFlNjY1ODUzNGYyNjYyZjE5NGVkNDhmNGEx
15
- NzA3NzYwNGZlM2NhNzMxNjM1YmVmOWNiNTEzOWQyZmJiYzFjMTc=
13
+ ODkzNzQwZWUzYmYxMjVlZTk4ZTZiMGM4ZjVlZjMxOGQzNTk3NzY5MTcwMzNl
14
+ M2FlMGM0MjAyYTRmNGFiMTk3NTM0OWMzZTQyMmFmODBjODVjNzMzODM1ZTFi
15
+ MzRkOGY5NDNmYzI0ZGU0ZDZmNTM5OTE2OTAzNDBiN2I4ZTIxNWM=
@@ -1,90 +1,97 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- instedd-rails (0.0.16)
4
+ instedd-rails (0.0.23)
5
5
  breadcrumbs_on_rails (>= 2.2.0)
6
+ haml-rails
6
7
  rails (>= 3.0)
7
8
 
8
9
  GEM
9
10
  remote: http://rubygems.org/
10
11
  specs:
11
- actionmailer (3.2.3)
12
- actionpack (= 3.2.3)
13
- mail (~> 2.4.4)
14
- actionpack (3.2.3)
15
- activemodel (= 3.2.3)
16
- activesupport (= 3.2.3)
12
+ actionmailer (3.2.14)
13
+ actionpack (= 3.2.14)
14
+ mail (~> 2.5.4)
15
+ actionpack (3.2.14)
16
+ activemodel (= 3.2.14)
17
+ activesupport (= 3.2.14)
17
18
  builder (~> 3.0.0)
18
19
  erubis (~> 2.7.0)
19
- journey (~> 1.0.1)
20
- rack (~> 1.4.0)
20
+ journey (~> 1.0.4)
21
+ rack (~> 1.4.5)
21
22
  rack-cache (~> 1.2)
22
23
  rack-test (~> 0.6.1)
23
- sprockets (~> 2.1.2)
24
- activemodel (3.2.3)
25
- activesupport (= 3.2.3)
24
+ sprockets (~> 2.2.1)
25
+ activemodel (3.2.14)
26
+ activesupport (= 3.2.14)
26
27
  builder (~> 3.0.0)
27
- activerecord (3.2.3)
28
- activemodel (= 3.2.3)
29
- activesupport (= 3.2.3)
28
+ activerecord (3.2.14)
29
+ activemodel (= 3.2.14)
30
+ activesupport (= 3.2.14)
30
31
  arel (~> 3.0.2)
31
32
  tzinfo (~> 0.3.29)
32
- activeresource (3.2.3)
33
- activemodel (= 3.2.3)
34
- activesupport (= 3.2.3)
35
- activesupport (3.2.3)
36
- i18n (~> 0.6)
33
+ activeresource (3.2.14)
34
+ activemodel (= 3.2.14)
35
+ activesupport (= 3.2.14)
36
+ activesupport (3.2.14)
37
+ i18n (~> 0.6, >= 0.6.4)
37
38
  multi_json (~> 1.0)
38
- arel (3.0.2)
39
+ arel (3.0.3)
39
40
  breadcrumbs_on_rails (2.2.0)
40
- builder (3.0.0)
41
+ builder (3.0.4)
41
42
  erubis (2.7.0)
42
- hike (1.2.1)
43
- i18n (0.6.0)
44
- journey (1.0.3)
45
- json (1.7.0)
46
- mail (2.4.4)
47
- i18n (>= 0.4.0)
43
+ haml (3.1.8)
44
+ haml-rails (0.3.5)
45
+ actionpack (>= 3.1, < 4.1)
46
+ activesupport (>= 3.1, < 4.1)
47
+ haml (~> 3.1)
48
+ railties (>= 3.1, < 4.1)
49
+ hike (1.2.3)
50
+ i18n (0.6.9)
51
+ journey (1.0.4)
52
+ json (1.8.1)
53
+ mail (2.5.4)
48
54
  mime-types (~> 1.16)
49
55
  treetop (~> 1.4.8)
50
- mime-types (1.18)
51
- multi_json (1.3.4)
52
- polyglot (0.3.3)
53
- rack (1.4.1)
56
+ mime-types (1.25.1)
57
+ multi_json (1.9.3)
58
+ polyglot (0.3.4)
59
+ rack (1.4.5)
54
60
  rack-cache (1.2)
55
61
  rack (>= 0.4)
56
- rack-ssl (1.3.2)
62
+ rack-ssl (1.3.4)
57
63
  rack
58
- rack-test (0.6.1)
64
+ rack-test (0.6.2)
59
65
  rack (>= 1.0)
60
- rails (3.2.3)
61
- actionmailer (= 3.2.3)
62
- actionpack (= 3.2.3)
63
- activerecord (= 3.2.3)
64
- activeresource (= 3.2.3)
65
- activesupport (= 3.2.3)
66
+ rails (3.2.14)
67
+ actionmailer (= 3.2.14)
68
+ actionpack (= 3.2.14)
69
+ activerecord (= 3.2.14)
70
+ activeresource (= 3.2.14)
71
+ activesupport (= 3.2.14)
66
72
  bundler (~> 1.0)
67
- railties (= 3.2.3)
68
- railties (3.2.3)
69
- actionpack (= 3.2.3)
70
- activesupport (= 3.2.3)
73
+ railties (= 3.2.14)
74
+ railties (3.2.14)
75
+ actionpack (= 3.2.14)
76
+ activesupport (= 3.2.14)
71
77
  rack-ssl (~> 1.3.2)
72
78
  rake (>= 0.8.7)
73
79
  rdoc (~> 3.4)
74
- thor (~> 0.14.6)
75
- rake (0.9.2.2)
76
- rdoc (3.12)
80
+ thor (>= 0.14.6, < 2.0)
81
+ rake (10.3.1)
82
+ rdoc (3.12.2)
77
83
  json (~> 1.4)
78
- sprockets (2.1.3)
84
+ sprockets (2.2.2)
79
85
  hike (~> 1.2)
86
+ multi_json (~> 1.0)
80
87
  rack (~> 1.0)
81
88
  tilt (~> 1.1, != 1.3.0)
82
- thor (0.14.6)
83
- tilt (1.3.3)
84
- treetop (1.4.10)
89
+ thor (0.19.1)
90
+ tilt (1.4.1)
91
+ treetop (1.4.15)
85
92
  polyglot
86
93
  polyglot (>= 0.3.1)
87
- tzinfo (0.3.33)
94
+ tzinfo (0.3.39)
88
95
 
89
96
  PLATFORMS
90
97
  ruby
@@ -3,7 +3,7 @@ module DeviseHelper
3
3
  return if resource.errors.full_messages.empty?
4
4
 
5
5
  (content_tag :div, :class => "box error_description #{html_options[:class] || 'w60'}" do
6
- (content_tag :h2, 'The following errors occurred') \
6
+ (content_tag :h2, t("following_errors_ocurred", default: 'The following errors occurred')) \
7
7
  + \
8
8
  (content_tag :ul do
9
9
  raw resource.errors.full_messages.map { |msg| content_tag(:li, msg) }.join
@@ -28,7 +28,7 @@ module InsteddRails
28
28
 
29
29
  content_tag :div, :class => "box error_description #{options[:class] || 'w60'}" do
30
30
  (content_tag :h2 do
31
- "#{pluralize(object.errors.count, 'error')} prohibited this #{object_name.humanize} from being saved:"
31
+ t("errors_prohibited_being_saved", default: "%{errors_count} prohibited this %{object_name} from being saved:") % {errors_count: pluralize(object.errors.count, 'error'), object_name: object_name.humanize}
32
32
  end) \
33
33
  + \
34
34
  (content_tag :ul do
@@ -3,15 +3,15 @@
3
3
  <div class="box centered w30">
4
4
 
5
5
  <%= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f| %>
6
- <h2>Resend confirmation instructions</h2>
6
+ <h2><%= t("resend_confirmation_instructions", :default => "Resend confirmation instructions") %></h2>
7
7
 
8
8
  <div class="field w30">
9
- <%= f.label :email %>
9
+ <%= f.label :email, t("email", default: "Email") %>
10
10
  <%= f.email_field :email %>
11
11
  </div>
12
12
 
13
13
  <div class="actions">
14
- <button type="submit" class="white">Resend confirmation instructions</button>
14
+ <button type="submit" class="white"><%= t("resend_confirmation_instructions", :default => "Resend confirmation instructions") %></button>
15
15
  </div>
16
16
 
17
17
  <% end %>
@@ -19,4 +19,3 @@
19
19
  <%= render :partial => "devise/shared/links" %>
20
20
 
21
21
  </div>
22
-
@@ -2,24 +2,24 @@
2
2
 
3
3
  <div class="box centered w30">
4
4
  <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %>
5
- <h2>Change your password</h2>
5
+ <h2><%= t("change_your_password", :default => "Change your password") %></h2>
6
6
 
7
7
  <hr class="shadow"/>
8
8
 
9
9
  <%= f.hidden_field :reset_password_token %>
10
10
 
11
11
  <div class="field w30">
12
- <%= f.label :password, "New password" %>
12
+ <%= f.label :password, t("new_password", :default => "New password") %>
13
13
  <%= f.password_field :password %>
14
14
  </div>
15
15
 
16
16
  <div class="field w30">
17
- <%= f.label :password_confirmation, "Confirm new password" %>
17
+ <%= f.label :password_confirmation, t("confirm_new_password", :default => "Confirm new password") %>
18
18
  <%= f.password_field :password_confirmation %>
19
19
  </div>
20
20
 
21
21
  <div class="actions">
22
- <button type="submit" class="white">Change my password</button>
22
+ <button type="submit" class="white"><%= t("change_my_password", :default => "Change my password") %></button>
23
23
  </div>
24
24
  <% end %>
25
- </div>
25
+ </div>
@@ -3,19 +3,19 @@
3
3
  <div class="box centered w30">
4
4
 
5
5
  <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %>
6
- <h2>Forgot your password?</h2>
6
+ <h2><%= t("forgot_your_password", :default => "Forgot your password?") %></h2>
7
7
 
8
8
  <hr class="shadow"/>
9
9
 
10
10
  <div class="field w30">
11
- <%= f.label :email %>
11
+ <%= f.label :email, t("email", default: "Email") %>
12
12
  <%= f.email_field :email %>
13
13
  </div>
14
14
 
15
15
  <div class="actions">
16
- <button type="submit" class="white">Send me reset password instructions</button>
16
+ <button type="submit" class="white"><%= t("send_me_reset_password_instructions", :default => "Send me reset password instructions") %></button>
17
17
  </div>
18
18
 
19
19
  <% end %>
20
20
 
21
- </div>
21
+ </div>
@@ -1,27 +1,32 @@
1
1
  = devise_error_messages!
2
2
  = form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f|
3
- %h2 Edit settings
3
+ %h2
4
+ = t("edit_settings", default: "Edit settings")
4
5
  .field.w30
5
- = f.label :email, "Email"
6
+ = f.label :email, t("email", default: "Email")
6
7
  = f.email_field :email, :readonly => true
7
8
  .field.w30
8
- = f.label :current_password, "Current password"
9
- %p (we need your current password to confirm your changes)
9
+ = f.label :current_password, t("current_password", default: "Current password")
10
+ %p
11
+ = t("need_current_password_to_confirm", default: "(we need your current password to confirm your changes)")
10
12
  = f.password_field :current_password
11
13
  .ux-collapsible.collapsed.w30{"data-on-expanded" => "box grey"}
12
14
  %span
13
- %a.fsettings{:href => "#"} Change my password
15
+ %a.fsettings{:href => "#"}
16
+ = t("change_my_password", default: "Change my password")
14
17
  .ux-content
15
18
  .field.w30
16
- = f.label :password, "New password"
17
- %p (leave blank if you don't want to change it)
19
+ = f.label :password, t("new_password", default: "New password")
20
+ %p
21
+ = t("leave_blank_if_dont_want_to_change", default: "(leave blank if you don't want to change it)")
18
22
  = f.password_field :password
19
23
  .field.w30
20
- = f.label :password_confirmation, "Confirm new password"
24
+ = f.label :password_confirmation, t("confirm_new_password", default: "Confirm new password")
21
25
  = f.password_field :password_confirmation
22
26
  .actions
23
- %button.white{:type => "submit"} Update
24
- = link_to "Back", :back
27
+ %button.white{:type => "submit"}
28
+ = t("update", default: "Update")
29
+ = link_to t("back", default: "Back"), :back
25
30
  %hr.w30/
26
31
  %p
27
- = link_to "Delete my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete, :class => 'fdelete'
32
+ = link_to t("delete_my_account", default: "Delete my account"), registration_path(resource_name), :confirm => t("are_you_sure", default: "Are you sure?"), :method => :delete, :class => 'fdelete'
@@ -3,31 +3,31 @@
3
3
  <div class="box centered w30">
4
4
 
5
5
  <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
6
- <h2>Log In</h2>
6
+ <h2><%= t("log_in", :default => "Log In") %></h2>
7
7
 
8
8
  <hr class="shadow" />
9
9
 
10
10
  <div class="field w30">
11
- <%= f.label :email %>
11
+ <%= f.label :email, t("email", :default => "Email") %>
12
12
  <%= f.email_field :email %>
13
13
  </div>
14
14
 
15
15
  <div class="field w30">
16
- <%= f.label :password %>
16
+ <%= f.label :password, t("password", :default => "Password") %>
17
17
  <%= f.password_field :password %>
18
18
  </div>
19
19
 
20
20
  <% if devise_mapping.rememberable? -%>
21
21
  <div class="field">
22
- <%= f.check_box :remember_me %> <%= f.label :remember_me, :class=>'checkbox' %>
22
+ <%= f.check_box :remember_me %> <%= f.label :remember_me, t("remember_me", default: "Remember me"), :class=>'checkbox' %>
23
23
  </div>
24
24
  <% end -%>
25
25
 
26
26
  <div class="actions">
27
- <button type="submit" class="white">Log In</button>
27
+ <button type="submit" class="white"><%= t("log_in", :default => "Log In") %></button>
28
28
  </div>
29
29
 
30
30
  <%= render :partial => "devise/shared/links" %>
31
31
  <% end %>
32
32
 
33
- </div>
33
+ </div>
@@ -2,32 +2,32 @@
2
2
 
3
3
  <!-- <%- if controller_name != 'sessions' %>
4
4
  <p>
5
- Already have an account? <%= link_to "Log In", new_session_path(resource_name) %>
5
+ <%= t('already_have_an_account', default: "Already have an account?") %> <%= link_to t("log_in", :default => "Log In"), new_session_path(resource_name) %>
6
6
  </p>
7
7
  <% end -%> -->
8
8
 
9
9
  <!-- <%- if devise_mapping.registerable? && controller_name != 'registrations' %>
10
10
  <p>
11
- Don't have an account? <%= link_to "Create it", new_registration_path(resource_name) %>
11
+ <%= t('dont_have_an_account', default: "Don't have an account?") %> <%= link_to t("create_it", :default => "Create it"), new_registration_path(resource_name) %>
12
12
  </p>
13
13
  <% end -%> -->
14
14
 
15
15
  <%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
16
16
  <p>
17
- Forgot your password? <%= link_to "Reset it", new_password_path(resource_name) %>
17
+ <%= t('forgot_your_password', default: 'Forgot your password?') %> <%= link_to t("reset_it", :default => "Reset it"), new_password_path(resource_name) %>
18
18
  </p>
19
19
  <% end -%>
20
20
 
21
21
  <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
22
- <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %><br />
22
+ <%= link_to t("didnt_receive_confirmation_instructions", :default => "Didn't receive confirmation instructions?"), new_confirmation_path(resource_name) %><br />
23
23
  <% end -%>
24
24
 
25
25
  <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
26
- <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %><br />
26
+ <%= link_to t("didnt_receive_unlock_instructions", :default => "Didn't receive unlock instructions?"), new_unlock_path(resource_name) %><br />
27
27
  <% end -%>
28
28
 
29
29
  <%- if devise_mapping.omniauthable? %>
30
30
  <%- resource_class.omniauth_providers.each do |provider| %>
31
- <%= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) %><br />
31
+ <%= link_to t("sign_in_with_provider", :default => "Sign in with %{provider}") % {provider: provider.to_s.titleize}, omniauth_authorize_path(resource_name, provider) %><br />
32
32
  <% end -%>
33
- <% end -%>
33
+ <% end -%>
@@ -3,21 +3,21 @@
3
3
  <div class="box centered w30">
4
4
  <%= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| %>
5
5
 
6
- <h2>Resend unlock instructions</h2>
6
+ <h2><%= t("resend_unlock_instructions", :default => "Resend unlock instructions") %></h2>
7
7
 
8
8
  <hr class="shadow" />
9
9
 
10
10
  <div class="field w30">
11
- <%= f.label :email %>
11
+ <%= f.label :email, t("email", :default => "Email") %>
12
12
  <%= f.email_field :email %>
13
13
  </div>
14
14
 
15
15
  <div class="actions">
16
- <button type="submit" class="white">Resend unlock instructions</button>
16
+ <button type="submit" class="white"><%= t("resend_unlock_instructions", :default => "Resend unlock instructions") %></button>
17
17
  </div>
18
18
 
19
19
  <% end %>
20
20
 
21
21
  <%= render :partial => "devise/shared/links" %>
22
22
 
23
- </div>
23
+ </div>
@@ -1,9 +1,9 @@
1
1
  <div class ="box centered w50">
2
2
  <h1>
3
3
  <div class="i48grad-error"></div>
4
- We're sorry, but something went wrong
4
+ <%= t("were_sorry_but_something_went_wrong", :default => "We're sorry, but something went wrong") %>
5
5
  </h1>
6
- <p>We've been notified about this issue and we'll take a look at it shortly.</p>
6
+ <p><%= t("weve_been_notified_about_this_issue_and_well_take_a_look_at_it_shortly", :default => "We've been notified about this issue and we'll take a look at it shortly.") %></p>
7
7
  <hr/>
8
- <%= link_to 'Back', :back, :class =>"button white" %>
9
- </div>
8
+ <%= link_to t("back", :default => 'Back'), :back, :class =>"button white" %>
9
+ </div>
@@ -1,9 +1,9 @@
1
1
  <div class ="box centered w50">
2
2
  <h1>
3
3
  <div class="i48grad-error"></div>
4
- The page you were looking for doesn't exist
4
+ <%= t("the_page_you_were_looking_for_doesnt_exist", :default => "The page you were looking for doesn't exist") %>
5
5
  </h1>
6
- <p>You may have mistyped the address or the page may have moved.</p>
6
+ <p><%= t("you_may_have_mistyped_the_address_or_the_page_may_have_moved", :default => "You may have mistyped the address or the page may have moved.") %></p>
7
7
  <hr/>
8
- <%= link_to 'Back', :back, :class =>"button white" %>
9
- </div>
8
+ <%= link_to t("back", :default => 'Back'), :back, :class =>"button white" %>
9
+ </div>
@@ -1,9 +1,9 @@
1
1
  <div class ="box centered w50">
2
2
  <h1>
3
3
  <div class="i48grad-error"></div>
4
- The change you wanted was rejected
4
+ <%= t("the_change_you_wanted_was_rejected", :default => "The change you wanted was rejected") %>
5
5
  </h1>
6
- <p>Maybe you tried to change something you didn't have access to.</p>
6
+ <p><%= t("maybe_you_tried_to_change_something_you_didnt_have_access_to", :default => "Maybe you tried to change something you didn't have access to.") %></p>
7
7
  <hr/>
8
- <%= link_to 'Back', :back, :class =>"button white" %>
9
- </div>
8
+ <%= link_to t("back", :default => 'Back'), :back, :class =>"button white" %>
9
+ </div>
@@ -1 +1 @@
1
- <%= section 'Home', root_path, :home %>
1
+ <%= section t("home", default: 'Home'), root_path, :home %>
@@ -70,10 +70,11 @@
70
70
  <div id="footer-container">
71
71
  <div>
72
72
  <div class="left platform">
73
- InSTEDD has created an evolving platform of free and open source technologies to support humanitarian causes. These tools can be used individually or as building blocks for larger solutions. <a href="http://instedd.org/technologies/">Click here</a> to learn more
73
+ <%= t("instedd_has_created_an_evolving_platform", default: "InSTEDD has created an evolving platform of free and open source technologies to support humanitarian causes. These tools can be used individually or as building blocks for larger solutions.") %>
74
+ <%= raw(t("click_here_to_learn_more", default: "%{click_here_link} to learn more") % {click_here_link: "<a href='http://instedd.org/technologies/'>%{click_here}</a>" % {click_here: t("click_here", :default => "Click here")}}) %>
74
75
  </div>
75
76
  <div class="right">
76
- <a href="http://instedd.org/technologies/" class="more">Learn more</a>
77
+ <a href="http://instedd.org/technologies/" class="more"><%= t("learn_more", :default => "Learn more") %></a>
77
78
  <div id="instedd-footer" data-app-name="<%= application_name.underscore %>"></div>
78
79
  </div>
79
80
  <div class="clear"></div>
@@ -81,8 +82,8 @@
81
82
  <div>
82
83
  <div class="left">
83
84
  <a href="http://instedd.org">&copy; 2011 InSTEDD</a>
84
- <a href="<%= terms_and_conditions_path %>">Terms and conditions</a>
85
- <a href="mailto:support@instedd.org?subject=[<%= application_name.titleize %>]">Contact us</a>
85
+ <a href="<%= terms_and_conditions_path %>"><%= t("terms_and_conditions", :default => "Terms and conditions") %></a>
86
+ <a href="mailto:support@instedd.org?subject=[<%= application_name.titleize %>]"><%= t("contact_us", :default => "Contact us") %></a>
86
87
  </div>
87
88
  <div class="right">
88
89
  <%= yield(:footer_links) %>
@@ -9,7 +9,7 @@
9
9
  <%= footer do %>
10
10
  <hr/>
11
11
  <p>
12
- Do you have questions or need help? Contact us at
12
+ <%= t("do_you_have_questions_or_need_help_contact_us_at", :default => "Do you have questions or need help? Contact us at") %>
13
13
  <%= link "mailto:support@instedd.org?subject=#{application_name.titleize}" do %>
14
14
  support@instedd.org
15
15
  <% end %>
@@ -6,4 +6,4 @@
6
6
 
7
7
 
8
8
  ---------
9
- Do you have questions or need help? Contact us at support@instedd.org
9
+ <%= t("do_you_have_questions_or_need_help_contact_us_at_support_insteddorg", :default => "Do you have questions or need help? Contact us at support@instedd.org") %>
@@ -1,8 +1,8 @@
1
1
  <%= h1 do %>
2
- You are almost done!
2
+ <%= t("you_are_almost_done", :default => "You are almost done!") %>
3
3
  <% end %>
4
4
  <%= h2 do %>
5
- To verify your account and complete the registration process please click in the link below or copy paste the URL into your browser
5
+ <%= t("to_verify_your_account_and_complete_the_registration_process_please_click_in_the_link_below_or_copy_paste_the_url_into_your_browser", :default => "To verify your account and complete the registration process please click in the link below or copy paste the URL into your browser") %>
6
6
  <% end %>
7
7
  <br/>
8
- <%= advertised_link 'Confirm my account', confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %>
8
+ <%= advertised_link t("confirm_my_account", default:'Confirm my account'), confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %>
@@ -1,5 +1,5 @@
1
- You are almost done!
1
+ <%= t("you_are_almost_done", :default => "You are almost done!") %>
2
2
 
3
- To verify your account and complete the registration process please click in the link below or copy paste the URL into your browser
3
+ <%= t("to_verify_your_account_and_complete_the_registration_process_please_click_in_the_link_below_or_copy_paste_the_url_into_your_browser", :default => "To verify your account and complete the registration process please click in the link below or copy paste the URL into your browser") %>
4
4
 
5
- <%= confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %>
5
+ <%= confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %>
@@ -1,12 +1,12 @@
1
1
  <%= h1 do %>
2
- Hello <%= @resource.email %>!
2
+ <%= t("hello_email", :default => "Hello %{email}!") % {email: @resource.email} %>
3
3
  <% end %>
4
4
  <%= h2 do %>
5
- Someone has requested a link to change your password, and you can do this through the link below.
5
+ <%= t("someone_has_requested_a_link_to_change_your_password_and_you_can_do_this_through_the_link_below", :default => "Someone has requested a link to change your password, and you can do this through the link below.") %>
6
6
  <% end %>
7
7
  <br/>
8
- <%= advertised_link 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %>
8
+ <%= advertised_link t("change_my_password", default: 'Change my password'), edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %>
9
9
  <br/>
10
10
  <%= h2 do %>
11
- If you didn't request this, please ignore this email. Your password won't change until you access the link above and create a new one.
12
- <% end %>
11
+ <%= t("if_you_didnt_request_this_please_ignore_this_email_your_password_wont_change_until_you_access_the_link_above_and_create_a_new_one", :default => "If you didn't request this, please ignore this email. Your password won't change until you access the link above and create a new one.") %>
12
+ <% end %>
@@ -1,7 +1,7 @@
1
- Hello <%= @resource.email %>!
1
+ <%= t("hello_email", :default => "Hello %{email}!") % {email: @resource.email} %>
2
2
 
3
- Someone has requested a link to change your password, and you can do this through the link below.
3
+ <%= t("someone_has_requested_a_link_to_change_your_password_and_you_can_do_this_through_the_link_below", :default => "Someone has requested a link to change your password, and you can do this through the link below.") %>
4
4
 
5
5
  <%= edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %>
6
6
 
7
- If you didn't request this, please ignore this email. Your password won't change until you access the link above and create a new one.
7
+ <%= t("if_you_didnt_request_this_please_ignore_this_email_your_password_wont_change_until_you_access_the_link_above_and_create_a_new_one", :default => "If you didn't request this, please ignore this email. Your password won't change until you access the link above and create a new one.") %>
@@ -0,0 +1,55 @@
1
+ fr:
2
+ resend_confirmation_instructions:
3
+ email:
4
+ change_your_password:
5
+ new_password:
6
+ confirm_new_password:
7
+ change_my_password:
8
+ forgot_your_password:
9
+ send_me_reset_password_instructions:
10
+ log_in:
11
+ password:
12
+ remember_me:
13
+ already_have_an_account:
14
+ dont_have_an_account:
15
+ create_it:
16
+ reset_it:
17
+ didnt_receive_confirmation_instructions:
18
+ didnt_receive_unlock_instructions:
19
+ sign_in_with_provider:
20
+ resend_unlock_instructions:
21
+ were_sorry_but_something_went_wrong:
22
+ weve_been_notified_about_this_issue_and_well_take_a_look_at_it_shortly:
23
+ back:
24
+ the_page_you_were_looking_for_doesnt_exist:
25
+ you_may_have_mistyped_the_address_or_the_page_may_have_moved:
26
+ the_change_you_wanted_was_rejected:
27
+ maybe_you_tried_to_change_something_you_didnt_have_access_to:
28
+ home:
29
+ instedd_has_created_an_evolving_platform:
30
+ click_here_to_learn_more:
31
+ click_here:
32
+ learn_more:
33
+ terms_and_conditions:
34
+ contact_us:
35
+ do_you_have_questions_or_need_help_contact_us_at:
36
+ do_you_have_questions_or_need_help_contact_us_at_support_insteddorg:
37
+ you_are_almost_done:
38
+ to_verify_your_account_and_complete_the_registration_process_please_click_in_the_link_below_or_copy_paste_the_url_into_your_browser:
39
+ confirm_my_account:
40
+ hello_email:
41
+ someone_has_requested_a_link_to_change_your_password_and_you_can_do_this_through_the_link_below:
42
+ if_you_didnt_request_this_please_ignore_this_email_your_password_wont_change_until_you_access_the_link_above_and_create_a_new_one:
43
+ edit_settings:
44
+ current_password:
45
+ need_current_password_to_confirm:
46
+ leave_blank_if_dont_want_to_change:
47
+ update:
48
+ delete_my_account:
49
+ are_you_sure:
50
+ following_errors_ocurred:
51
+ errors_prohibited_being_saved:
52
+ views:
53
+ pagination:
54
+ first:
55
+ last:
@@ -1,8 +1,8 @@
1
1
  <% content_for :navigation do %>
2
- <%= section 'Home', root_path, :home %>
3
- <%= section 'Tour', tour_path(:start), :tour %>
4
- <%= section 'Community', community_path, :community %>
5
- <%= section 'Help', help_path , :help %>
2
+ <%= section t('home', default: 'Home'), root_path, :home %>
3
+ <%= section t('tour', default: 'Tour'), tour_path(:start), :tour %>
4
+ <%= section t('community', default: 'Community'), community_path, :community %>
5
+ <%= section t('help', default: 'Help'), help_path , :help %>
6
6
  <% end %>
7
7
  <% content_for :right_menu do %>
8
8
  <ul class="RightMenu">
@@ -12,13 +12,13 @@
12
12
  <%=current_user.email%><br><br>
13
13
  <div class="container">
14
14
  <ul>
15
- <li><%= link_to 'Reminders', schedules_path %></li>
16
- <li><%= link_to 'Settings', edit_user_registration_path %></li>
15
+ <li><%= link_to t('reminders', default: 'Reminders'), schedules_path %></li>
16
+ <li><%= link_to t('settings', default: 'Settings'), edit_user_registration_path %></li>
17
17
  </ul>
18
18
  <hr/>
19
19
  <ul>
20
- <li><a href="mailto:support@instedd.org?subject=[<%= application_name.underscore %>-bug]">Report a bug</a></li>
21
- <li><%= link_to "Sign Out", destroy_user_session_path %></li>
20
+ <li><a href="mailto:support@instedd.org?subject=[<%= application_name.underscore %>-bug]"><%= t('report_a_bug', default: "Report a bug") %></a></li>
21
+ <li><%= link_to t('sign_out', default: "Sign Out"), destroy_user_session_path %></li>
22
22
  </ul>
23
23
  </div>
24
24
  </div>
@@ -28,18 +28,18 @@
28
28
  </li>
29
29
  <% else %>
30
30
  <li>
31
- <%= link_to "Create account", new_user_registration_path, :class => 'fedit' %>
31
+ <%= link_to t('create_account', default: "Create account"), new_user_registration_path, :class => 'fedit' %>
32
32
  </li>
33
33
  <li>
34
- <%= link_to "Log in", new_user_session_path, :class => 'fuser' %>
34
+ <%= link_to t('log_in', default: "Log in"), new_user_session_path, :class => 'fuser' %>
35
35
  </li>
36
36
  <% end %>
37
37
  </ul>
38
38
  <% end %>
39
39
  <% content_for :footer_links do %>
40
- <a href="<%= root_path %>">Home</a>
41
- <a href="<%= tour_path(:start) %>">Tour</a>
42
- <a href="<%= community_path %>">Community</a>
43
- <a href="<%= help_path %>">Help</a>
40
+ <a href="<%= root_path %>"><%= t('home', default: 'Home') %></a>
41
+ <a href="<%= tour_path(:start) %>"><%= t('tour', default: 'Tour') %></a>
42
+ <a href="<%= community_path %>"><%= t('community', default: 'Community') %></a>
43
+ <a href="<%= help_path %>"><%= t('help', default: 'Help') %></a>
44
44
  <% end %>
45
45
  <%= render :file => 'layouts/instedd_application' %>
@@ -1,3 +1,3 @@
1
1
  module InsteddRails
2
- VERSION = "0.0.22"
2
+ VERSION = "0.0.23"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instedd-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instedd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-10 00:00:00.000000000 Z
11
+ date: 2014-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -102,6 +102,7 @@ files:
102
102
  - app/views/user_mailer/confirmation_instructions.text.erb
103
103
  - app/views/user_mailer/reset_password_instructions.html.erb
104
104
  - app/views/user_mailer/reset_password_instructions.text.erb
105
+ - config/locales/fr.yml
105
106
  - config/routes.rb
106
107
  - instedd-rails.gemspec
107
108
  - lib/generators/instedd_rails/config_generator.rb
@@ -133,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
134
  version: '0'
134
135
  requirements: []
135
136
  rubyforge_project: instedd-rails
136
- rubygems_version: 2.2.2
137
+ rubygems_version: 2.1.4
137
138
  signing_key:
138
139
  specification_version: 4
139
140
  summary: Instedd Platform Common helpers for Rails