i18n_rails_helpers 0.7.6 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/config/locales/de-CH.yml +9 -10
- data/config/locales/de.yml +9 -10
- data/config/locales/en.yml +22 -0
- data/lib/i18n_rails_helpers.rb +3 -4
- metadata +5 -4
data/config/locales/de-CH.yml
CHANGED
@@ -10,14 +10,13 @@ de-CH:
|
|
10
10
|
new: "%{model} anlegen"
|
11
11
|
update: "%{model} ändern"
|
12
12
|
delete: "%{model} löschen"
|
13
|
-
back: "Zurück"
|
14
13
|
action:
|
15
|
-
index:
|
16
|
-
edit:
|
17
|
-
show:
|
18
|
-
new:
|
19
|
-
update:
|
20
|
-
delete:
|
21
|
-
back:
|
22
|
-
|
23
|
-
|
14
|
+
index: "Liste"
|
15
|
+
edit: "Bearbeiten"
|
16
|
+
show: "Anzeigen"
|
17
|
+
new: "Anlegen"
|
18
|
+
update: "Ändern"
|
19
|
+
delete: "Löschen"
|
20
|
+
back: "Zurück"
|
21
|
+
previous: "Zurück"
|
22
|
+
next: "Weiter"
|
data/config/locales/de.yml
CHANGED
@@ -10,14 +10,13 @@ de:
|
|
10
10
|
new: "%{model} anlegen"
|
11
11
|
update: "%{model} ändern"
|
12
12
|
delete: "%{model} löschen"
|
13
|
-
back: "Zurück"
|
14
13
|
action:
|
15
|
-
index:
|
16
|
-
edit:
|
17
|
-
show:
|
18
|
-
new:
|
19
|
-
update:
|
20
|
-
delete:
|
21
|
-
back:
|
22
|
-
|
23
|
-
|
14
|
+
index: "Liste"
|
15
|
+
edit: "Bearbeiten"
|
16
|
+
show: "Anzeigen"
|
17
|
+
new: "Anlegen"
|
18
|
+
update: "Ändern"
|
19
|
+
delete: "Löschen"
|
20
|
+
back: "Zurück"
|
21
|
+
previous: "Zurück"
|
22
|
+
next: "Weiter"
|
@@ -0,0 +1,22 @@
|
|
1
|
+
en:
|
2
|
+
messages:
|
3
|
+
confirm_delete: "Really delete %{model} %{record}?"
|
4
|
+
|
5
|
+
crud:
|
6
|
+
title:
|
7
|
+
index: "%{model} index"
|
8
|
+
edit: "Edit %{model}"
|
9
|
+
show: "Show %{model}"
|
10
|
+
new: "New %{model}"
|
11
|
+
update: "Update %{model}"
|
12
|
+
delete: "Delete %{model}"
|
13
|
+
action:
|
14
|
+
index: "Index"
|
15
|
+
edit: "Edit"
|
16
|
+
show: "Show"
|
17
|
+
new: "New"
|
18
|
+
update: "Update"
|
19
|
+
delete: "Delete"
|
20
|
+
back: "Back"
|
21
|
+
previous: "Previous"
|
22
|
+
next: "Next"
|
data/lib/i18n_rails_helpers.rb
CHANGED
@@ -48,7 +48,7 @@ module I18nRailsHelpers
|
|
48
48
|
# singularize it. +model+ can be both a class or an actual instance.
|
49
49
|
#
|
50
50
|
# The translation file comming with the plugin supports the following actions
|
51
|
-
# by default: index, edit, show, new, delete
|
51
|
+
# by default: index, edit, show, new, delete
|
52
52
|
#
|
53
53
|
# Example:
|
54
54
|
# t_title('new', Account') => 'Konto anlegen'
|
@@ -65,8 +65,8 @@ module I18nRailsHelpers
|
|
65
65
|
#
|
66
66
|
# If no +action+ is given, it uses the current action.
|
67
67
|
#
|
68
|
-
# The translation file
|
69
|
-
# by default: index, edit, show, new, delete, back
|
68
|
+
# The translation file comes with the plugin supports the following actions
|
69
|
+
# by default: index, edit, show, new, delete, back, next, previous
|
70
70
|
#
|
71
71
|
# Example:
|
72
72
|
# t_action('delete') => 'Löschen'
|
@@ -88,4 +88,3 @@ module I18nRailsHelpers
|
|
88
88
|
I18n::translate('messages.confirm_delete', :model => t_model(record), :record => record.to_s)
|
89
89
|
end
|
90
90
|
end
|
91
|
-
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
7
|
+
- 8
|
8
|
+
- 0
|
9
|
+
version: 0.8.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- "Simon H\xC3\xBCrlimann"
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-08-
|
17
|
+
date: 2010-08-12 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -55,6 +55,7 @@ files:
|
|
55
55
|
- Rakefile
|
56
56
|
- config/locales/de-CH.yml
|
57
57
|
- config/locales/de.yml
|
58
|
+
- config/locales/en.yml
|
58
59
|
- lib/i18n_rails_helpers.rb
|
59
60
|
- lib/i18n_rails_helpers/railtie.rb
|
60
61
|
- rails/init.rb
|