formtastic-i18n 0.4.1

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 41ef0d7f151804b64ebca3f567515bf79e1df927
4
+ data.tar.gz: a599670c29198fe1c470a2c5bed85102c2f2486c
5
+ SHA512:
6
+ metadata.gz: 0cff7b2803c4412900ec6ac70009f2c8717c17b5f0d496c52c0e4335a45bdd9623ca4c235d81117128f74a69d47f2c9ebc17cff54987eff0b12f3e5e62c4805c
7
+ data.tar.gz: 59534d483be89153b90a6293e67f1f6fceee7e7591f29d83de72f4cad386fbb2634dc11dbf0436e8e2179476f97aeadd675b899edf38ef4c533bf97054eb34a4
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.bundle
11
+ *.so
12
+ *.o
13
+ *.a
14
+ mkmf.log
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Timo Schilling
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,27 @@
1
+ # Formtastic I18n
2
+
3
+ I18n translation for the formtastic gem
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'formtastic_i18n'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ ## Usage
18
+
19
+ Just include it in your Gemfile
20
+
21
+ ## Contributing
22
+
23
+ 1. Fork it ( https://github.com/timoschilling/formtastic_i18n/fork )
24
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
25
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
26
+ 4. Push to the branch (`git push origin my-new-feature`)
27
+ 5. Create a new Pull Request
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,10 @@
1
+ ca:
2
+ formtastic:
3
+ :yes: "Sí"
4
+ :no: "No"
5
+ :create: "Crear %{model}"
6
+ :update: "Actualitzar %{model}"
7
+ :submit: "Acceptar"
8
+ :cancel: "Cancel·lar"
9
+ :reset: "Restablir %{model}"
10
+ :required: "obligatori"
@@ -0,0 +1,10 @@
1
+ de:
2
+ formtastic:
3
+ :yes: "Ja"
4
+ :no: "Nein"
5
+ :create: "%{model} anlegen"
6
+ :update: "%{model} aktualisieren"
7
+ :submit: "Abschicken"
8
+ :cancel: "Abbrechen"
9
+ :reset: "%{model} zurücksetzen"
10
+ :required: "Pflichtfeld"
@@ -0,0 +1,11 @@
1
+ es:
2
+ formtastic:
3
+ :yes: "Sí"
4
+ :no: "No"
5
+ :create: "Guardar %{model}"
6
+ :update: "Guardar %{model}"
7
+ :submit: "Aceptar"
8
+ :cancel: "Cancelar"
9
+ :reset: "Restablecer %{model}"
10
+ :required: "requerido"
11
+
@@ -0,0 +1,10 @@
1
+ it:
2
+ formtastic:
3
+ :yes: "Sì"
4
+ :no: "No"
5
+ :create: "Crea %{model}"
6
+ :update: "Aggiorna %{model}"
7
+ :submit: "Invia"
8
+ :cancel: "Annulla"
9
+ :reset: "Ripristina %{model}"
10
+ :required: "obbligatorio"
@@ -0,0 +1,5 @@
1
+ pl:
2
+ formtastic:
3
+ :update: "Aktualizuj %{model}"
4
+ :create: "Utwórz %{model}"
5
+
@@ -0,0 +1,10 @@
1
+ pt-BR:
2
+ formtastic:
3
+ :yes: 'Sim'
4
+ :no: 'Não'
5
+ :create: 'Criar %{model}'
6
+ :update: 'Atualizar %{model}'
7
+ :submit: 'Salvar %{model}'
8
+ :cancel: 'Cancelar %{model}'
9
+ :reset: 'Voltar %{model}'
10
+ :required: 'obrigatório'
@@ -0,0 +1,10 @@
1
+ pt:
2
+ formtastic:
3
+ :yes: 'Sim'
4
+ :no: 'Não'
5
+ :create: 'Criar %{model}'
6
+ :update: 'Atualizar %{model}'
7
+ :submit: 'Salvar %{model}'
8
+ :cancel: 'Cancelar %{model}'
9
+ :reset: 'Resetar %{model}'
10
+ :required: 'obrigatório'
@@ -0,0 +1,10 @@
1
+ tr:
2
+ formtastic:
3
+ :yes: "Evet"
4
+ :no: "Hayır"
5
+ :create: "%{model} oluştur"
6
+ :update: "%{model} güncelle"
7
+ :submit: "Gönder"
8
+ :cancel: "İptal"
9
+ :reset: "%{model} sıfırla"
10
+ :required: "Zorunlu"
@@ -0,0 +1,10 @@
1
+ "zh-CN":
2
+ formtastic:
3
+ :yes: "YES"
4
+ :no: "NO"
5
+ :create: "新建%{model}"
6
+ :update: "更新%{model}"
7
+ :submit: "确认"
8
+ :cancel: "取消"
9
+ :reset: "重置%{model}"
10
+ :required: "必须的"
@@ -0,0 +1,21 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'formtastic_i18n/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "formtastic-i18n"
8
+ spec.version = FormtasticI18n::VERSION
9
+ spec.authors = ["debbbbie"]
10
+ spec.email = ["debbbbie@163.com"]
11
+ spec.summary = "I18n translation for the formtastic gem"
12
+ spec.homepage = "https://github.com/debbbbie/formtastic_i18n"
13
+ spec.license = "MIT"
14
+
15
+ spec.files = `git ls-files -z`.split("\x0")
16
+ spec.require_paths = ["lib"]
17
+
18
+ spec.add_development_dependency "bundler", "~> 1.7"
19
+ spec.add_development_dependency "rake", "~> 10.0"
20
+ spec.add_development_dependency "i18n"
21
+ end
@@ -0,0 +1,6 @@
1
+ require "formtastic_i18n/engine"
2
+ require "formtastic_i18n/version"
3
+ require "formtastic_i18n/translate"
4
+
5
+ module FormtasticI18n
6
+ end
@@ -0,0 +1,4 @@
1
+ module FormtasticI18n
2
+ class Engine < ::Rails::Engine
3
+ end
4
+ end
@@ -0,0 +1,5 @@
1
+ require 'i18n'
2
+
3
+ I18n.load_path += Dir[
4
+ File.join(File.dirname(__FILE__), '../../config', 'locales'.freeze, '*.yml'.freeze)
5
+ ]
@@ -0,0 +1,3 @@
1
+ module FormtasticI18n
2
+ VERSION = "0.4.1"
3
+ end
metadata ADDED
@@ -0,0 +1,105 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: formtastic-i18n
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.1
5
+ platform: ruby
6
+ authors:
7
+ - debbbbie
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-05-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.7'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: i18n
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description:
56
+ email:
57
+ - debbbbie@163.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - .gitignore
63
+ - Gemfile
64
+ - LICENSE.txt
65
+ - README.md
66
+ - Rakefile
67
+ - config/locales/ca.yml
68
+ - config/locales/de.yml
69
+ - config/locales/es.yml
70
+ - config/locales/it.yml
71
+ - config/locales/pl.yml
72
+ - config/locales/pt-BR.yml
73
+ - config/locales/pt.yml
74
+ - config/locales/tr.yml
75
+ - config/locales/zh-CN.yml
76
+ - formtastic_i18n.gemspec
77
+ - lib/formtastic_i18n.rb
78
+ - lib/formtastic_i18n/engine.rb
79
+ - lib/formtastic_i18n/translate.rb
80
+ - lib/formtastic_i18n/version.rb
81
+ homepage: https://github.com/debbbbie/formtastic_i18n
82
+ licenses:
83
+ - MIT
84
+ metadata: {}
85
+ post_install_message:
86
+ rdoc_options: []
87
+ require_paths:
88
+ - lib
89
+ required_ruby_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ required_rubygems_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ requirements: []
100
+ rubyforge_project:
101
+ rubygems_version: 2.4.5
102
+ signing_key:
103
+ specification_version: 4
104
+ summary: I18n translation for the formtastic gem
105
+ test_files: []