contact_us 0.4.0.beta → 0.4.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/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ *.gem
2
+ .bundle
3
+ .rbx
4
+ Gemfile.lock
5
+ pkg/*
6
+ coverage
7
+ spec/dummy/config/locales/*
8
+ spec/dummy/db/*.sqlite3
9
+ spec/dummy/log/*.log
10
+ spec/dummy/tmp/
11
+ spec/dummy/Gemfile.lock
data/.rspec ADDED
@@ -0,0 +1,5 @@
1
+ --color
2
+ --format=nested
3
+ --backtrace
4
+ --profile
5
+ --order random
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm 1.9.3-p125@contact_us
data/.travis.yml ADDED
@@ -0,0 +1,11 @@
1
+ script: "bundle exec rspec spec"
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.2
5
+ - 1.9.3
6
+ - ree
7
+ # - ruby-head
8
+ language: ruby
9
+ notifications:
10
+ recipients:
11
+ - JDutil@BurlingtonWebApps.com
data/CHANGELOG ADDED
@@ -0,0 +1,51 @@
1
+ *ContactUs 0.4.0 (Oct 29th 2012)*
2
+
3
+ * Add default rails form helper support and remove Formtastic dependency. [Jeff Dutil]
4
+
5
+ * Added support for SimpleForm. [flyerhzm]
6
+
7
+ * Added Japanese locale. [yosiyuki]
8
+
9
+ * Added French locale. [bgantaume]
10
+
11
+ * No longer copy default views & locales during installation. Copy manually with rake tasks when wanting to customize now. [Jeff Dutil]
12
+
13
+ *ContactUs 0.3.0 (May 15th 2012)*
14
+
15
+ * Changed route to /contact-us from /contract_us for seo. [Jeff Dutil]
16
+
17
+ *ContactUs 0.2.1 (May 4th 2012)*
18
+
19
+ * Use the users provided email address in the email notifications reply_to field. [Jeff Dutil]
20
+
21
+ *ContactUs 0.2.0 (February 25th 2012)*
22
+
23
+ * Added ContactUs.mailer_from setting in order to send from verified address, which is better practice than pretending the email is from the user. [Jeff Dutil]
24
+
25
+ * Added ContactUs.require_name setting in order to ask for the name with the contact form. [Jeff Dutil]
26
+
27
+ * Added ContactUs.require_subject setting in order to for the subject with the contact form. [Jeff Dutil]
28
+
29
+ * Formtastic dependency updated to >= 2.1.0 in order to fix commit_button deprecation. [Jeff Dutil]
30
+
31
+ *ContactUs 0.1.5 (January 6th, 2012)*
32
+
33
+ * Added Chinese zh locale [kinopyo]
34
+
35
+ *ContactUs 0.1.4 (September 26th, 2011)*
36
+
37
+ * Added German locale
38
+
39
+ * Email subject is now included in i18n
40
+
41
+ *ContactUs 0.1.3 (September 2, 2011)*
42
+
43
+ * Added Brazilian Portuguese locale [brunoarueira]
44
+
45
+ * Added Spanish locale [igmarin]
46
+
47
+ * Added Italian locale [igmarin]
48
+
49
+ *ContactUs 0.1.2 (August 18, 2011)*
50
+
51
+ * 100% Test Coverage under Ruby 1.8.7, 1.9.2, 1.9.3, REE, ruby-head, rbx-2.0 [Jeff Dutil]
data/README.md CHANGED
@@ -23,7 +23,7 @@ It is also recommended to use Formtastic or SimpleForm (see configuration) in or
23
23
 
24
24
  In your `Gemfile`, add the following dependencies:
25
25
 
26
- gem 'contact_us', '~> 0.4.0.beta'
26
+ gem 'contact_us', '~> 0.4.0'
27
27
 
28
28
  From `Rails.root` run:
29
29
 
@@ -45,13 +45,25 @@ You may also specify an email address for the notification emails from field:
45
45
 
46
46
  ## CONFIGURATION
47
47
 
48
- The generator copies the view files to `app/views/contact_us`, and you can customize them to suit your needs. If you would like to add a name or subject field to the form you may simply
48
+ If you would like to add a name or subject field to the form you may simply
49
49
  set the options to true within the contact_us initializer located at `config/initializers/contact_us.rb`:
50
50
 
51
51
  config.require_name = true
52
52
  config.require_subject = true
53
53
 
54
- You may also update your locales under `config/locales/contact_us.en.yml` or create your own. Please feel free to submit your own locales so that other users will hopefully find this gem more useful.
54
+ ### Views
55
+
56
+ To copy the view files to `app/views/contact_us`, and customize them to suit your needs run:
57
+
58
+ bundle exec rake contact_us:copy_views
59
+
60
+ ### Locales
61
+
62
+ To copy the locale files to `config/locales/contact_us.*.yml`, and customize them to suit your needs run:
63
+
64
+ bundle exec rake contact_us:copy_locales
65
+
66
+ Please feel free to submit your own locales so that other users will hopefully find this gem more useful in your language.
55
67
 
56
68
  ### Formtastic
57
69
 
@@ -112,6 +124,5 @@ Here are some ways *you* can contribute:
112
124
  ## TODO
113
125
 
114
126
  * Add new language translations.
115
- * Stop copying views/locales by default.
116
127
 
117
128
  Copyright (c) 2011 Jeff Dutil, released under the [MIT license](https://github.com/jdutil/contact_us/tree/master/MIT-LICENSE).
@@ -0,0 +1,25 @@
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
+
4
+ fr:
5
+ contact_us:
6
+ contact_mailer:
7
+ contact_email:
8
+ sent_by_contact_form: "Envoyé depuis le fomulaire de contact par %{email}"
9
+ sent_by_name: "Envoyé par %{name} depuis %{email}"
10
+ subject: "Message 'Contactez nous' de %{email}"
11
+ contacts:
12
+ new: &new
13
+ contact_us: "Contactez Nous"
14
+ email: "Email"
15
+ message: "Message"
16
+ name: "Nom"
17
+ subject: "Sujet"
18
+ submit: "Envoyer"
19
+ new_formtastic:
20
+ <<: *new
21
+ new_simple_form:
22
+ <<: *new
23
+ notices:
24
+ error: "Merci de saisir les deux champs."
25
+ success: "Votre message a bien été envoyé."
@@ -0,0 +1,25 @@
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
+
4
+ ja:
5
+ contact_us:
6
+ contact_mailer:
7
+ contact_email:
8
+ sent_by_contact_form: "お問い合せメールを送信しました : %{email}"
9
+ sent_by_name: "%{name} さんがお問い合せメールを送信しました : %{email}"
10
+ subject: "お問い合わせメール : %{email}"
11
+ contacts:
12
+ new: &new
13
+ contact_us: "お問い合わせ"
14
+ email: "メールアドレス"
15
+ message: "お問い合せ内容"
16
+ name: "お名前"
17
+ subject: "件名"
18
+ submit: "送信する"
19
+ new_formtastic:
20
+ <<: *new
21
+ new_simple_form:
22
+ <<: *new
23
+ notices:
24
+ error: "すべての項目を入力してください。"
25
+ success: "お問い合わせを送信しました。"
@@ -0,0 +1,30 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "contact_us/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "contact_us"
7
+ s.version = ContactUs::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Jeff Dutil"]
10
+ s.email = ["JDutil@BurlingtonWebApps.com"]
11
+ s.homepage = "https://github.com/jdutil/contact_us"
12
+ s.summary = %q{Gem providing simple Contact Us functionality with a Rails 3+ Engine.}
13
+ s.description = %q{A Rails 3+ Engine providing a basic contact form. I used Formtastic to keep things simple, and to hook into your apps custom Formtastic stylesheets.}
14
+
15
+ s.rubyforge_project = "contact_us"
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.require_paths = ["lib"]
20
+
21
+ s.add_development_dependency "capybara", "~> 1.1"
22
+ s.add_development_dependency "rspec-rails", "~> 2.11"
23
+ s.add_development_dependency "shoulda-matchers", "~> 1.1"
24
+ s.add_development_dependency "simplecov", "~> 0.7"
25
+ s.add_development_dependency "sqlite3", "~> 1.3.5"
26
+ s.add_development_dependency "formtastic", ">= 2.1.0"
27
+ s.add_development_dependency "simple_form"
28
+
29
+ s.add_runtime_dependency "rails", ">= 3.0.0"
30
+ end
@@ -7,8 +7,6 @@ module ContactUs
7
7
 
8
8
  def run
9
9
  copy_initializer_file
10
- copy_locales_files
11
- copy_view_files
12
10
  puts "Done!"
13
11
  end
14
12
 
@@ -1,3 +1,3 @@
1
1
  module ContactUs
2
- VERSION = "0.4.0.beta"
2
+ VERSION = "0.4.0"
3
3
  end
File without changes
@@ -2,24 +2,27 @@ require 'spec_helper'
2
2
 
3
3
  describe "Rake tasks" do
4
4
 
5
- describe "contact_us:install" do
5
+ after(:each) do
6
+ @destination_root = File.expand_path("../../dummy", __FILE__)
7
+ FileUtils.rm_rf(@destination_root + "/config/initializers/contact_us.rb")
8
+ FileUtils.rm_rf(@destination_root + "/config/locales/contact_us.en.yml")
9
+ FileUtils.rm_rf(@destination_root + "/app/views/contact_us")
10
+ FileUtils.rm_rf(@destination_root + "/app/views/contact_us/contact_mailer")
11
+ FileUtils.rm_rf(@destination_root + "/app/views/contact_us/contacts")
12
+ end
6
13
 
7
- after(:each) do
8
- @destination_root = File.expand_path("../../dummy", __FILE__)
9
- FileUtils.rm_rf(@destination_root + "/config/initializers/contact_us.rb")
10
- FileUtils.rm_rf(@destination_root + "/config/locales/contact_us.en.yml")
11
- FileUtils.rm_rf(@destination_root + "/app/views/contact_us")
12
- FileUtils.rm_rf(@destination_root + "/app/views/contact_us/contact_mailer")
13
- FileUtils.rm_rf(@destination_root + "/app/views/contact_us/contacts")
14
- end
14
+ before(:each) do
15
+ @destination_root = File.expand_path("../../dummy", __FILE__)
16
+ File.exists?(@destination_root + "/config/initializers/contact_us.rb").should eql(false)
17
+ File.exists?(@destination_root + "/config/locales/contact_us.en.yml").should eql(false)
18
+ File.directory?(@destination_root + "/app/views/contact_us").should eql(false)
19
+ File.directory?(@destination_root + "/app/views/contact_us/contact_mailer").should eql(false)
20
+ File.directory?(@destination_root + "/app/views/contact_us/contacts").should eql(false)
21
+ end
15
22
 
16
- before(:each) do
17
- @destination_root = File.expand_path("../../dummy", __FILE__)
18
- File.exists?(@destination_root + "/config/initializers/contact_us.rb").should eql(false)
19
- File.exists?(@destination_root + "/config/locales/contact_us.en.yml").should eql(false)
20
- File.directory?(@destination_root + "/app/views/contact_us").should eql(false)
21
- File.directory?(@destination_root + "/app/views/contact_us/contact_mailer").should eql(false)
22
- File.directory?(@destination_root + "/app/views/contact_us/contacts").should eql(false)
23
+ describe "contact_us:install" do
24
+
25
+ before do
23
26
  ContactUs::Tasks::Install.run
24
27
  end
25
28
 
@@ -27,9 +30,23 @@ describe "Rake tasks" do
27
30
  File.exists?(File.join(@destination_root + "/config/initializers/contact_us.rb")).should eql(true)
28
31
  end
29
32
 
33
+ end
34
+
35
+ describe 'contact_us:copy_locales' do
36
+ before do
37
+ ContactUs::Tasks::Install.copy_locales_files
38
+ end
39
+
30
40
  it "creates locales files" do
31
41
  File.exists?(File.join(@destination_root + "/config/locales/contact_us.en.yml")).should eql(true)
32
42
  end
43
+ end
44
+
45
+ describe "contact_us:install" do
46
+
47
+ before do
48
+ ContactUs::Tasks::Install.copy_view_files
49
+ end
33
50
 
34
51
  it "creates view files" do
35
52
  File.directory?(@destination_root + "/app/views/contact_us").should eql(true)
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contact_us
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.beta
5
- prerelease: 6
4
+ version: 0.4.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jeff Dutil
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-05 00:00:00.000000000 Z
12
+ date: 2012-10-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capybara
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: '2.8'
37
+ version: '2.11'
38
38
  type: :development
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: '2.8'
45
+ version: '2.11'
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: shoulda-matchers
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ~>
52
52
  - !ruby/object:Gem::Version
53
- version: '1.0'
53
+ version: '1.1'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,7 +58,7 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: '1.0'
61
+ version: '1.1'
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: simplecov
64
64
  requirement: !ruby/object:Gem::Requirement
@@ -66,7 +66,7 @@ dependencies:
66
66
  requirements:
67
67
  - - ~>
68
68
  - !ruby/object:Gem::Version
69
- version: '0.6'
69
+ version: '0.7'
70
70
  type: :development
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -74,7 +74,7 @@ dependencies:
74
74
  requirements:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
- version: '0.6'
77
+ version: '0.7'
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: sqlite3
80
80
  requirement: !ruby/object:Gem::Requirement
@@ -147,6 +147,11 @@ executables: []
147
147
  extensions: []
148
148
  extra_rdoc_files: []
149
149
  files:
150
+ - .gitignore
151
+ - .rspec
152
+ - .rvmrc
153
+ - .travis.yml
154
+ - CHANGELOG
150
155
  - Gemfile
151
156
  - MIT-LICENSE
152
157
  - README.md
@@ -163,20 +168,26 @@ files:
163
168
  - config/locales/contact_us.de.yml
164
169
  - config/locales/contact_us.en.yml
165
170
  - config/locales/contact_us.es.yml
171
+ - config/locales/contact_us.fr.yml
166
172
  - config/locales/contact_us.it.yml
173
+ - config/locales/contact_us.ja.yml
167
174
  - config/locales/contact_us.pt-BR.yml
168
175
  - config/locales/contact_us.zh.yml
169
176
  - config/routes.rb
177
+ - contact_us.gemspec
178
+ - lib/contact_us.rb
170
179
  - lib/contact_us/engine.rb
171
180
  - lib/contact_us/tasks/install.rb
172
181
  - lib/contact_us/version.rb
173
- - lib/contact_us.rb
174
182
  - lib/tasks/install.rake
175
183
  - lib/templates/contact_us.rb
176
184
  - spec/controllers/contact_us/contact_controller_spec.rb
185
+ - spec/dummy/Gemfile
186
+ - spec/dummy/Rakefile
177
187
  - spec/dummy/app/controllers/application_controller.rb
178
188
  - spec/dummy/app/helpers/application_helper.rb
179
189
  - spec/dummy/app/views/layouts/application.html.erb
190
+ - spec/dummy/config.ru
180
191
  - spec/dummy/config/application.rb
181
192
  - spec/dummy/config/boot.rb
182
193
  - spec/dummy/config/database.yml
@@ -189,15 +200,7 @@ files:
189
200
  - spec/dummy/config/initializers/mime_types.rb
190
201
  - spec/dummy/config/initializers/secret_token.rb
191
202
  - spec/dummy/config/initializers/session_store.rb
192
- - spec/dummy/config/locales/contact_us.de.yml
193
- - spec/dummy/config/locales/contact_us.es.yml
194
- - spec/dummy/config/locales/contact_us.it.yml
195
- - spec/dummy/config/locales/contact_us.pt-BR.yml
196
- - spec/dummy/config/locales/contact_us.zh.yml
197
203
  - spec/dummy/config/routes.rb
198
- - spec/dummy/config.ru
199
- - spec/dummy/Gemfile
200
- - spec/dummy/log/test.log
201
204
  - spec/dummy/public/404.html
202
205
  - spec/dummy/public/422.html
203
206
  - spec/dummy/public/500.html
@@ -208,7 +211,7 @@ files:
208
211
  - spec/dummy/public/javascripts/effects.js
209
212
  - spec/dummy/public/javascripts/prototype.js
210
213
  - spec/dummy/public/javascripts/rails.js
211
- - spec/dummy/Rakefile
214
+ - spec/dummy/public/stylesheets/.gitkeep
212
215
  - spec/dummy/script/rails
213
216
  - spec/integration/contact_us_lint_spec.rb
214
217
  - spec/lib/contact_us_spec.rb
@@ -229,26 +232,26 @@ required_ruby_version: !ruby/object:Gem::Requirement
229
232
  - - ! '>='
230
233
  - !ruby/object:Gem::Version
231
234
  version: '0'
232
- segments:
233
- - 0
234
- hash: -2120348152043544289
235
235
  required_rubygems_version: !ruby/object:Gem::Requirement
236
236
  none: false
237
237
  requirements:
238
- - - ! '>'
238
+ - - ! '>='
239
239
  - !ruby/object:Gem::Version
240
- version: 1.3.1
240
+ version: '0'
241
241
  requirements: []
242
242
  rubyforge_project: contact_us
243
- rubygems_version: 1.8.19
243
+ rubygems_version: 1.8.23
244
244
  signing_key:
245
245
  specification_version: 3
246
246
  summary: Gem providing simple Contact Us functionality with a Rails 3+ Engine.
247
247
  test_files:
248
248
  - spec/controllers/contact_us/contact_controller_spec.rb
249
+ - spec/dummy/Gemfile
250
+ - spec/dummy/Rakefile
249
251
  - spec/dummy/app/controllers/application_controller.rb
250
252
  - spec/dummy/app/helpers/application_helper.rb
251
253
  - spec/dummy/app/views/layouts/application.html.erb
254
+ - spec/dummy/config.ru
252
255
  - spec/dummy/config/application.rb
253
256
  - spec/dummy/config/boot.rb
254
257
  - spec/dummy/config/database.yml
@@ -261,15 +264,7 @@ test_files:
261
264
  - spec/dummy/config/initializers/mime_types.rb
262
265
  - spec/dummy/config/initializers/secret_token.rb
263
266
  - spec/dummy/config/initializers/session_store.rb
264
- - spec/dummy/config/locales/contact_us.de.yml
265
- - spec/dummy/config/locales/contact_us.es.yml
266
- - spec/dummy/config/locales/contact_us.it.yml
267
- - spec/dummy/config/locales/contact_us.pt-BR.yml
268
- - spec/dummy/config/locales/contact_us.zh.yml
269
267
  - spec/dummy/config/routes.rb
270
- - spec/dummy/config.ru
271
- - spec/dummy/Gemfile
272
- - spec/dummy/log/test.log
273
268
  - spec/dummy/public/404.html
274
269
  - spec/dummy/public/422.html
275
270
  - spec/dummy/public/500.html
@@ -280,7 +275,7 @@ test_files:
280
275
  - spec/dummy/public/javascripts/effects.js
281
276
  - spec/dummy/public/javascripts/prototype.js
282
277
  - spec/dummy/public/javascripts/rails.js
283
- - spec/dummy/Rakefile
278
+ - spec/dummy/public/stylesheets/.gitkeep
284
279
  - spec/dummy/script/rails
285
280
  - spec/integration/contact_us_lint_spec.rb
286
281
  - spec/lib/contact_us_spec.rb
@@ -1,25 +0,0 @@
1
- # Sample localization file for German. 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
-
4
- de:
5
- contact_us:
6
- contact_mailer:
7
- contact_email:
8
- sent_by_contact_form: "Gesendet durch das Kontaktformular. %{email}"
9
- sent_by_name: "Sent by %{name} from %{email}"
10
- subject: "Contact Us message from %{email}"
11
- contacts:
12
- new: &new
13
- contact_us: "Kontaktiere Uns"
14
- email: "Email"
15
- message: "Nachricht"
16
- name: "Name"
17
- subject: "Subject"
18
- submit: "Abschicken"
19
- new_formtastic:
20
- <<: *new
21
- new_simple_form:
22
- <<: *new
23
- notices:
24
- error: "Beide Felder müssen ausgefüllt werden."
25
- success: "Die Nachricht wurde erfolgreich versendet."
@@ -1,25 +0,0 @@
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
-
4
- es:
5
- contact_us:
6
- contact_mailer:
7
- contact_email:
8
- sent_by_contact_form: "Enviado por el formulario de contacto. %{email}"
9
- sent_by_name: "Sent by %{name} from %{email}"
10
- subject: "Contact Us message from %{email}"
11
- contacts:
12
- new: &new
13
- contact_us: "Contactanos"
14
- email: "Email"
15
- message: "Mensaje"
16
- name: "Name"
17
- subject: "Subject"
18
- submit: "Enviar"
19
- new_formtastic:
20
- <<: *new
21
- new_simple_form:
22
- <<: *new
23
- notices:
24
- error: "Debes de ingresar ambos campos."
25
- success: "El correo electrónico de contacto fue enviado con éxito."
@@ -1,25 +0,0 @@
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
-
4
- it:
5
- contact_us:
6
- contact_mailer:
7
- contact_email:
8
- sent_by_contact_form: "Inviato dal formato di contatto. %{email}"
9
- sent_by_name: "Sent by %{name} from %{email}"
10
- subject: "Contact Us message from %{email}"
11
- contacts:
12
- new: &new
13
- contact_us: "Contattaci"
14
- email: "Email"
15
- message: "Messaggio"
16
- name: "Name"
17
- subject: "Subject"
18
- submit: "Inviare"
19
- new_formtastic:
20
- <<: *new
21
- new_simple_form:
22
- <<: *new
23
- notices:
24
- error: "Devi inserire entrambi i campi."
25
- success: "La mail di contatto è stata inviata."
@@ -1,25 +0,0 @@
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
-
4
- pt-BR:
5
- contact_us:
6
- contact_mailer:
7
- contact_email:
8
- sent_by_contact_form: "Enviado pelo formulário de contato. %{email}"
9
- sent_by_name: "Sent by %{name} from %{email}"
10
- subject: "Contact Us message from %{email}"
11
- contacts:
12
- new: &new
13
- contact_us: "Contate-nos"
14
- email: "Email"
15
- message: "Messagem"
16
- name: "Name"
17
- subject: "Subject"
18
- submit: "Enviar"
19
- new_formtastic:
20
- <<: *new
21
- new_simple_form:
22
- <<: *new
23
- notices:
24
- error: "Você deve preencher os campos."
25
- success: "Email de contato foi enviado com sucesso."
@@ -1,25 +0,0 @@
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
-
4
- zh:
5
- contact_us:
6
- contact_mailer:
7
- contact_email:
8
- sent_by_contact_form: "由contact form发送。 %{email}"
9
- sent_by_name: "Sent by %{name} from %{email}"
10
- subject: "Contact Us message from %{email}"
11
- contacts:
12
- new: &new
13
- contact_us: "联系我们"
14
- email: "邮箱"
15
- message: "消息"
16
- name: "Name"
17
- subject: "Subject"
18
- submit: "发送"
19
- new_formtastic:
20
- <<: *new
21
- new_simple_form:
22
- <<: *new
23
- notices:
24
- error: "请正确输入邮箱与信息。"
25
- success: "邮件已成功发送。"