Guest User

Untitled

a guest
Feb 21st, 2018
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 KB | None | 0 0
  1. From aace1aac2488cf69883c29375faed1cffb84dc72 Mon Sep 17 00:00:00 2001
  2. From: Marc Beyerlin <marc@beyerlin.net>
  3. Date: Wed, 17 Dec 2008 17:39:19 +0100
  4. Subject: [PATCH] I18n: Added more German translations
  5.  
  6. ---
  7. app/views/passwords/new.html.erb | 2 +-
  8. app/views/passwords/reset.html.erb | 14 ++++++++------
  9. config/locales/de-DE.yml | 9 ++++-----
  10. 3 files changed, 13 insertions(+), 12 deletions(-)
  11.  
  12. diff --git a/app/views/passwords/new.html.erb b/app/views/passwords/new.html.erb
  13. index 899c730..0c6d3d3 100644
  14. --- a/app/views/passwords/new.html.erb
  15. +++ b/app/views/passwords/new.html.erb
  16. @@ -6,7 +6,7 @@
  17. <legend><%= t('passwords.label.your_email_address') %></legend>
  18. <ol>
  19. <li>
  20. - <%= f.label :email, t('activerecord.attributes.password.email') %>
  21. + <%= f.label :email, t('activerecord.attributes.user.email') %>
  22. <%= f.text_field :email %>
  23. </li>
  24. </ol>
  25. diff --git a/app/views/passwords/reset.html.erb b/app/views/passwords/reset.html.erb
  26. index 3e38a4a..e03f92d 100644
  27. --- a/app/views/passwords/reset.html.erb
  28. +++ b/app/views/passwords/reset.html.erb
  29. @@ -1,23 +1,25 @@
  30. -<%= title "Reset Your Password", :h2 %>
  31. +<%= title t('passwords.title.reset_password'), :h2 %>
  32.  
  33. <% form_for :user, :url => { :action => 'update_after_forgetting' } do |f| %>
  34. <%= f.error_messages %>
  35. - <p>Please enter a new password and confirm it.</p>
  36. +
  37. + <p><%= t('passwords.label.enter_new_password') %></p>
  38. +
  39. <fieldset>
  40. - <legend>Update Password</legend>
  41. + <legend><%= t('passwords.label.update_password') %></legend>
  42. <ol>
  43. <li>
  44. - <%= f.label :password %>
  45. + <%= f.label :password, t('activerecord.attributes.user.password') %>
  46. <%= f.password_field :password %>
  47. </li>
  48. <li>
  49. - <%= f.label :password_confirmation %>
  50. + <%= f.label :password_confirmation, t('activerecord.attributes.user.password_confirmation') %>
  51. <%= f.password_field :password_confirmation %>
  52. </li>
  53. </ol>
  54. </fieldset>
  55. <%= hidden_field_tag :reset_code, params[:reset_code] %>
  56. <div class="buttons">
  57. - <%= f.submit "Submit" %>
  58. + <%= f.submit t('app.button.submit') %>
  59. </div>
  60. <% end %>
  61. diff --git a/config/locales/de-DE.yml b/config/locales/de-DE.yml
  62. index e2b8480..0eb1bfe 100644
  63. --- a/config/locales/de-DE.yml
  64. +++ b/config/locales/de-DE.yml
  65. @@ -27,10 +27,13 @@ de-DE:
  66. passwords:
  67. title:
  68. forgot_password: "Passwort vergessen?"
  69. + reset_password: "Passwort zurücksetzten"
  70.  
  71. label:
  72. your_email_address: "Deine E-Mail Adresse an die wir weitere Instruktionen schicken ?"
  73. -
  74. + update_password: "Dein neues Passwort"
  75. + enter_new_password: "Bitte ändere hier Dein Passwort und bestätige es."
  76. +
  77. flash:
  78. link_sent: "Zum ändern Deines Passwortes klicke auf den Link in der E-Mail die wir an {{email}} gesendet haben."
  79. url_invalid: "Die URL zum ändern Deines Passwortes ist ungültig."
  80. @@ -92,10 +95,6 @@ de-DE:
  81. remember_me: "Auf diesem Computer angemeldet bleiben"
  82. openid_url: "Deine OpenId URL"
  83.  
  84. - password:
  85. - email: "E-Mail"
  86. - user: "Benutzer"
  87. -
  88. errors:
  89. messages:
  90. no_user_for_email: "konnte nicht gefunden werden"
  91. \ No newline at end of file
  92. --
  93. 1.5.4.4+GitX
Add Comment
Please, Sign In to add comment