lipsiadmin 3.3.1 → 3.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 2009-03-16
2
+ * Bump to version 3.3.2
3
+ * Updated locales for work with rails 2.3.2 (do rake lipsiadmin:update:locales)
4
+
1
5
  2009-03-14
2
6
  * Bump to version 3.3.1
3
7
  * Removed debug code from state_session_controller
data/lib/version.rb CHANGED
@@ -2,7 +2,7 @@ module Lipsiadmin
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 3
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -27,5 +27,4 @@ en:
27
27
  # For example,
28
28
  # user:
29
29
  # login: "Handle"
30
- # will translate User attribute "login" as "Handle"
31
-
30
+ # will translate User attribute "login" as "Handle"
@@ -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
- # Used in array.to_sentence.
27
+
28
+ # Used in array.to_sentence.
31
29
  support:
32
30
  array:
33
- sentence_connector: "and"
34
- skip_last_comma: false
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
- # The values :model, :attribute and :value are always available for interpolation
126
- # The value :count is available when applicable. Can be used for pluralization.
127
- messages:
128
- inclusion: "is not included in the list"
129
- exclusion: "is reserved"
130
- invalid: "is invalid"
131
- confirmation: "doesn't match confirmation"
132
- accepted: "must be accepted"
133
- empty: "can't be empty"
134
- blank: "can't be blank"
135
- too_long: "is too long (maximum is {{count}} characters)"
136
- too_short: "is too short (minimum is {{count}} characters)"
137
- wrong_length: "is the wrong length (should be {{count}} characters)"
138
- taken: "has already been taken"
139
- not_a_number: "is not a number"
140
- greater_than: "must be greater than {{count}}"
141
- greater_than_or_equal_to: "must be greater than or equal to {{count}}"
142
- equal_to: "must be equal to {{count}}"
143
- less_than: "must be less than {{count}}"
144
- less_than_or_equal_to: "must be less than or equal to {{count}}"
145
- odd: "must be odd"
146
- even: "must be even"
147
- content_type: "is not one of the allowed file content types"
148
- # Append your own errors here or at the model/attributes scope.
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
- separator: ','
75
- delimiter: '.'
76
+
76
77
  currency:
77
78
  format:
78
- unit: '€'
79
+ format: "%n %u"
80
+ unit: "€"
81
+ separator: "."
82
+ delimiter: ","
79
83
  precision: 2
80
- format: '%n %u'
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:
@@ -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, project_dir)
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.1
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-14 00:00:00 +01:00
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