tkh_content 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
 
4
4
 
5
+ ## 0.1.11
6
+
7
+ * Added some translations to the contact form area
8
+
9
+
5
10
  ## 0.1.10
6
11
 
7
12
  * Added an admin section in sidebar of non-blog pages
@@ -14,12 +14,12 @@ class ContactsController < ApplicationController
14
14
  sent_email = send_message_to_admin(@contact)
15
15
 
16
16
  if saved && sent_email == 'success'
17
- redirect_to root_path, notice: "Your message has been sent. Thank you very much!"
17
+ redirect_to root_path, notice: t("contacts.create.notice")
18
18
  elsif saved && sent_email == 'exception'
19
- flash[:error] = "There was a problem sending this message<br />#{e}"
19
+ flash[:error] = t("contacts.create.warning")
20
20
  redirect_to :back
21
21
  elsif saved && sent_email == 'invalid'
22
- flash[:error] = 'There was a problem sending this message. Your email address does not seem to be valid!'
22
+ flash[:error] = "#{t("contacts.create.warning")} Your email address does not seem to be valid!"
23
23
  redirect_to :back
24
24
  else
25
25
  flash[:error] = 'Something went wrong. Your message did not reach the intended recipient.'
@@ -2,9 +2,9 @@
2
2
  <%= f.error_notification %>
3
3
 
4
4
  <div class="form-inputs">
5
- <%= f.input :sender_name, label: 'your name' %>
6
- <%= f.input :sender_email, label: 'your email' %>
7
- <%= f.input :body, label: 'your message', :input_html => { :rows => 10 } %>
5
+ <%= f.input :sender_name, label: t('activerecord.attributes.contacts.sender_name') %>
6
+ <%= f.input :sender_email, label: t('activerecord.attributes.contacts.sender_email') %>
7
+ <%= f.input :body, label: t('activerecord.attributes.contacts.body'), :input_html => { :rows => 10 } %>
8
8
  </div>
9
9
 
10
10
  <div class="form-actions">
@@ -22,9 +22,9 @@ de:
22
22
  for_the_blog: 'Für den Blog'
23
23
 
24
24
  contacts:
25
- sender_name: "sender name"
26
- sender_email: 'sender email'
27
- body: 'message'
25
+ sender_name: "Absender-Name"
26
+ sender_email: 'Absender-Email'
27
+ body: 'Nachricht'
28
28
 
29
29
  pages:
30
30
  author: 'Autor'
@@ -33,17 +33,17 @@ de:
33
33
 
34
34
  create:
35
35
  notice: 'Diese Seite wurde erfolgreich angelegt.'
36
- warning: 'Beim Speichern dieser Seite ist ein Problem aufgetreten'
36
+ warning: 'Beim Speichern dieser Seite ist ein Problem aufgetreten.'
37
37
  update:
38
38
  notice: 'Die Seite wurde erfolgreich aktualisiert.'
39
- warning: 'Beim Speichern der Seite ist ein Problem aufgetreten'
39
+ warning: 'Beim Speichern der Seite ist ein Problem aufgetreten.'
40
40
  destroy:
41
- notice: 'Die Seite wurde gelöscht'
41
+ notice: 'Die Seite wurde gelöscht.'
42
42
  root_warning: "Du kannst diese Seite nicht löschen, da es die Root-Seite ist. Du kannst sie nur bearbeiten."
43
43
 
44
44
  contacts:
45
- sent: 'Sent at'
45
+ sent: 'Gesendet am'
46
46
 
47
47
  create:
48
- notice: 'Your message has been sent'
49
- warning: 'There was a problem sending your message.'
48
+ notice: 'Die Nachricht wurde gesendet.'
49
+ warning: 'Beim Versenden der Nachricht gab es ein Problem.'
@@ -1,3 +1,3 @@
1
1
  module TkhContent
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkh_content
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-09 00:00:00.000000000 Z
12
+ date: 2013-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -237,7 +237,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
237
237
  version: '0'
238
238
  segments:
239
239
  - 0
240
- hash: 4395062461440943694
240
+ hash: 2718395640424394989
241
241
  required_rubygems_version: !ruby/object:Gem::Requirement
242
242
  none: false
243
243
  requirements:
@@ -246,7 +246,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
246
246
  version: '0'
247
247
  segments:
248
248
  - 0
249
- hash: 4395062461440943694
249
+ hash: 2718395640424394989
250
250
  requirements: []
251
251
  rubyforge_project:
252
252
  rubygems_version: 1.8.23