lipsiadmin 3.3.1 → 3.3.2
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/CHANGELOG +4 -0
- data/lib/version.rb +1 -1
- data/lipsiadmin_generators/backend/templates/config/locales/models/en.yml +1 -2
- data/lipsiadmin_generators/backend/templates/config/locales/rails/en.yml +52 -33
- data/lipsiadmin_generators/backend/templates/config/locales/rails/it.yml +38 -5
- data/tasks/lipsiadmin_tasks.rake +14 -2
- metadata +2 -5
- data/lipsiadmin_generators/backend/templates/config/locales/frontend/en.yml +0 -5
- data/lipsiadmin_generators/backend/templates/config/locales/frontend/it.yml +0 -5
data/CHANGELOG
CHANGED
data/lib/version.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
# Sample localization file for English. Add more files in this directory for other locales.
|
2
|
-
# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
|
3
1
|
en:
|
4
2
|
date:
|
5
3
|
formats:
|
@@ -9,10 +7,10 @@ en:
|
|
9
7
|
default: "%Y-%m-%d"
|
10
8
|
short: "%b %d"
|
11
9
|
long: "%B %d, %Y"
|
12
|
-
|
10
|
+
|
13
11
|
day_names: [Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday]
|
14
12
|
abbr_day_names: [Sun, Mon, Tue, Wed, Thu, Fri, Sat]
|
15
|
-
|
13
|
+
|
16
14
|
# Don't forget the nil at the beginning; there's no such thing as a 0th month
|
17
15
|
month_names: [~, January, February, March, April, May, June, July, August, September, October, November, December]
|
18
16
|
abbr_month_names: [~, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
|
@@ -26,13 +24,14 @@ en:
|
|
26
24
|
long: "%B %d, %Y %H:%M"
|
27
25
|
am: "am"
|
28
26
|
pm: "pm"
|
29
|
-
|
30
|
-
|
27
|
+
|
28
|
+
# Used in array.to_sentence.
|
31
29
|
support:
|
32
30
|
array:
|
33
|
-
|
34
|
-
|
35
|
-
|
31
|
+
words_connector: ", "
|
32
|
+
two_words_connector: " and "
|
33
|
+
last_word_connector: ", and "
|
34
|
+
|
36
35
|
number:
|
37
36
|
# Used in number_with_delimiter()
|
38
37
|
# These are also the defaults for 'currency', 'percentage', 'precision', and 'human'
|
@@ -78,6 +77,18 @@ en:
|
|
78
77
|
# separator:
|
79
78
|
delimiter: ""
|
80
79
|
precision: 1
|
80
|
+
storage_units:
|
81
|
+
# Storage units output formatting.
|
82
|
+
# %u is the storage unit, %n is the number (default: 2 MB)
|
83
|
+
format: "%n %u"
|
84
|
+
units:
|
85
|
+
byte:
|
86
|
+
one: "Byte"
|
87
|
+
other: "Bytes"
|
88
|
+
kb: "KB"
|
89
|
+
mb: "MB"
|
90
|
+
gb: "GB"
|
91
|
+
tb: "TB"
|
81
92
|
|
82
93
|
# Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
|
83
94
|
datetime:
|
@@ -113,6 +124,13 @@ en:
|
|
113
124
|
over_x_years:
|
114
125
|
one: "over 1 year"
|
115
126
|
other: "over {{count}} years"
|
127
|
+
prompts:
|
128
|
+
year: "Year"
|
129
|
+
month: "Month"
|
130
|
+
day: "Day"
|
131
|
+
hour: "Hour"
|
132
|
+
minute: "Minute"
|
133
|
+
second: "Seconds"
|
116
134
|
|
117
135
|
activerecord:
|
118
136
|
errors:
|
@@ -122,27 +140,28 @@ en:
|
|
122
140
|
other: "{{count}} errors prohibited this {{model}} from being saved"
|
123
141
|
# The variable :count is also available
|
124
142
|
body: "There were problems with the following fields:"
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
143
|
+
# The values :model, :attribute and :value are always available for interpolation
|
144
|
+
# The value :count is available when applicable. Can be used for pluralization.
|
145
|
+
messages:
|
146
|
+
inclusion: "is not included in the list"
|
147
|
+
exclusion: "is reserved"
|
148
|
+
invalid: "is invalid"
|
149
|
+
confirmation: "doesn't match confirmation"
|
150
|
+
accepted: "must be accepted"
|
151
|
+
empty: "can't be empty"
|
152
|
+
blank: "can't be blank"
|
153
|
+
too_long: "is too long (maximum is {{count}} characters)"
|
154
|
+
too_short: "is too short (minimum is {{count}} characters)"
|
155
|
+
wrong_length: "is the wrong length (should be {{count}} characters)"
|
156
|
+
taken: "has already been taken"
|
157
|
+
not_a_number: "is not a number"
|
158
|
+
greater_than: "must be greater than {{count}}"
|
159
|
+
greater_than_or_equal_to: "must be greater than or equal to {{count}}"
|
160
|
+
equal_to: "must be equal to {{count}}"
|
161
|
+
less_than: "must be less than {{count}}"
|
162
|
+
less_than_or_equal_to: "must be less than or equal to {{count}}"
|
163
|
+
odd: "must be odd"
|
164
|
+
even: "must be even"
|
165
|
+
content_type: "file format not supported"
|
166
|
+
# Append your own errors here or at the model/attributes scope.
|
167
|
+
|
@@ -70,15 +70,48 @@ it:
|
|
70
70
|
|
71
71
|
number:
|
72
72
|
format:
|
73
|
+
separator: ","
|
74
|
+
delimiter: "."
|
73
75
|
precision: 3
|
74
|
-
|
75
|
-
delimiter: '.'
|
76
|
+
|
76
77
|
currency:
|
77
78
|
format:
|
78
|
-
|
79
|
+
format: "%n %u"
|
80
|
+
unit: "€"
|
81
|
+
separator: "."
|
82
|
+
delimiter: ","
|
79
83
|
precision: 2
|
80
|
-
|
81
|
-
|
84
|
+
|
85
|
+
percentage:
|
86
|
+
format:
|
87
|
+
delimiter: ""
|
88
|
+
# precision:
|
89
|
+
|
90
|
+
precision:
|
91
|
+
format:
|
92
|
+
# separator:
|
93
|
+
delimiter: ""
|
94
|
+
# precision:
|
95
|
+
|
96
|
+
human:
|
97
|
+
format:
|
98
|
+
# These three are to override number.format and are optional
|
99
|
+
# separator:
|
100
|
+
delimiter: ""
|
101
|
+
precision: 1
|
102
|
+
storage_units:
|
103
|
+
# Storage units output formatting.
|
104
|
+
# %u is the storage unit, %n is the number (default: 2 MB)
|
105
|
+
format: "%n %u"
|
106
|
+
units:
|
107
|
+
byte:
|
108
|
+
one: "Byte"
|
109
|
+
other: "Bytes"
|
110
|
+
kb: "KB"
|
111
|
+
mb: "MB"
|
112
|
+
gb: "GB"
|
113
|
+
tb: "TB"
|
114
|
+
|
82
115
|
activerecord:
|
83
116
|
errors:
|
84
117
|
template:
|
data/tasks/lipsiadmin_tasks.rake
CHANGED
@@ -3,10 +3,22 @@ namespace :lipsiadmin do
|
|
3
3
|
namespace :update do
|
4
4
|
desc "Update your javascripts from your current lipsiadmin install"
|
5
5
|
task :javascripts do
|
6
|
-
project_dir = RAILS_ROOT + '/public/javascripts/'
|
7
6
|
Dir[File.join(File.dirname(__FILE__), '..', '/lipsiadmin_generators/backend/templates/javascripts/*.js')].each do |js|
|
8
7
|
puts "Coping #{File.basename(js)} ... DONE"
|
9
|
-
FileUtils.cp(js,
|
8
|
+
FileUtils.cp(js, RAILS_ROOT + '/public/javascripts/')
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
desc "Updated the current rails locale and backend locale"
|
13
|
+
task :locales do
|
14
|
+
Dir[File.join(File.dirname(__FILE__), '..', '/lipsiadmin_generators/backend/templates/config/locales/rails/*.yml')].each do |yml|
|
15
|
+
puts "Coping config/locales/rails/#{File.basename(yml)} ... DONE"
|
16
|
+
FileUtils.cp(yml, RAILS_ROOT + '/config/locales/rails')
|
17
|
+
end
|
18
|
+
|
19
|
+
Dir[File.join(File.dirname(__FILE__), '..', '/lipsiadmin_generators/backend/templates/config/locales/backend/*.yml')].each do |yml|
|
20
|
+
puts "Coping config/locales/backend/#{File.basename(yml)} ... DONE"
|
21
|
+
FileUtils.cp(yml, RAILS_ROOT + '/config/locales/backend')
|
10
22
|
end
|
11
23
|
end
|
12
24
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lipsiadmin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Davide D'Agostino
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-03-
|
12
|
+
date: 2009-03-16 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -47,9 +47,6 @@ files:
|
|
47
47
|
- lipsiadmin_generators/backend/templates/config/locales/backend
|
48
48
|
- lipsiadmin_generators/backend/templates/config/locales/backend/en.yml
|
49
49
|
- lipsiadmin_generators/backend/templates/config/locales/backend/it.yml
|
50
|
-
- lipsiadmin_generators/backend/templates/config/locales/frontend
|
51
|
-
- lipsiadmin_generators/backend/templates/config/locales/frontend/en.yml
|
52
|
-
- lipsiadmin_generators/backend/templates/config/locales/frontend/it.yml
|
53
50
|
- lipsiadmin_generators/backend/templates/config/locales/models
|
54
51
|
- lipsiadmin_generators/backend/templates/config/locales/models/en.yml
|
55
52
|
- lipsiadmin_generators/backend/templates/config/locales/models/it.yml
|
@@ -1,5 +0,0 @@
|
|
1
|
-
# This file is used for translate the frontend
|
2
|
-
# We remind you that in Backend was introduced a simple method in style gibberish for translations
|
3
|
-
# So you can write "Translate Me in English"[] will be I18n.t("translate_me_in_english", :default => "Translate Me in English")
|
4
|
-
en:
|
5
|
-
translate_me_in_english: Traslate me English
|
@@ -1,5 +0,0 @@
|
|
1
|
-
# Questo file è generalmente utilizzato per tradurre il frontend
|
2
|
-
# Ti ricordiamo che in Backend è stato introdotto un metodo semplice in stile gibberish per le traduzioni
|
3
|
-
# Infatti puoi scrivere "Translate Me in Italian"[] e verrà convertito in I18n.t("translate_me_in_italian", :default => "Translate Me in Italian")
|
4
|
-
it:
|
5
|
-
translate_me_in_italian: Traducimi in Italiano
|