Permalink
Browse files

locales in gem

  • Loading branch information...
1 parent d739391 commit b5979a79b5f74de17b99951cf2f45fbdf6996d8a Ace Suares committed Mar 12, 2012
@@ -9,10 +9,6 @@ module InlineFormsHelper
private
- def inline_forms_version
- InlineForms::VERSION
- end
-
# used as class name
def has_validations(object, attribute)
"has_validations " unless object.class.validators_on(attribute).empty?
@@ -13,7 +13,7 @@
<div class="float_right"><%= f.label :password_confirmation %>&nbsp;&nbsp;<%= f.password_field :password_confirmation %></div>
<div style="clear: both"></div>
- <div><%= f.submit t("inline_forms.devise.sign_in") %></div>
+ <div><%= f.submit t("inline_forms.devise.sign_up") %></div>
<% end %>
</div>
</div>
@@ -1,27 +1,27 @@
<div id="shared_links">
| <%- if controller_name != 'sessions' %>
- <%= link_to "Sign in", new_session_path(resource_name) %> |
+ <%= link_to t("inline_forms.devise.links.sign_in"), new_session_path(resource_name) %> |
<% end -%>
<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
- <%= link_to "Sign up", new_registration_path(resource_name) %> |
+ <%= link_to t("inline_forms.devise.links.sign_up"), new_registration_path(resource_name) %> |
<% end -%>
<%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
- <%= link_to "Forgot your password?", new_password_path(resource_name) %> |
+ <%= link_to t("inline_forms.devise.links.forgot_password"), new_password_path(resource_name) %> |
<% end -%>
<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
- <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %> |
+ <%= link_to t("inline_forms.devise.links.no_instructions"), new_confirmation_path(resource_name) %> |
<% end -%>
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
- <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %> |
+ <%= link_to t("inline_forms.devise.links.no_unlock_instructions"), new_unlock_path(resource_name) %> |
<% end -%>
<%- if devise_mapping.omniauthable? %>
<%- resource_class.omniauth_providers.each do |provider| %>
- <%= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) %> |
+ <%= link_to t("inline_forms.devise.links.sign_in_with", :provider => provider.to_s.titleize), omniauth_authorize_path(resource_name, provider) %> |
<% end -%>
<% end -%>
</div>
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <title><%= application_title -%> v<%= inline_forms_version -%></title>
+ <title><%= t('application.name') + " v" + InlineForms::VERSION -%></title>
<%= stylesheet_link_tag 'devise' %>
<%#= javascript_include_tag :defaults %>
<%= csrf_meta_tag %>
@@ -2,7 +2,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
- <title><%= h( yield(:title) || "Unconfigured Titile") %></title>
+ <title><%= t('application.name') + " v" + InlineForms::VERSION -%></title>
<%= stylesheet_link_tag 'inline_forms_application', 'application' %>
<%= javascript_include_tag 'application', 'inline_forms_application' %>
<%= csrf_meta_tag %>
@@ -2,8 +2,9 @@ nl:
inline_forms:
view:
close: Sluiten
- activerecord:
+ devise:
+ logout: afmelden
+ activerecord:
attributes:
if_translation:
is_proc: procedureel
-

0 comments on commit b5979a7

Please sign in to comment.