paperclip-i18n 4.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2535febebfaf6063d027df11766725eb5e5bb830
4
+ data.tar.gz: 5a8a569939f07c073db2c2d92c65e8b8e9716ee7
5
+ SHA512:
6
+ metadata.gz: 3099c83f8501c974ab727890d07f5b6e17c2f5cdbaf69f12d60ec92f203e5d19168e8e3b992f3035deab14420ac5471999dfd953720a40a5d9cb835ebd1b4ccb
7
+ data.tar.gz: 2d74df9ff308ce7ff1ca1d7d7da0265fb52cc177bcec921bf880405557a4e720b36126698c517fd16b5e6fea67551c01ffbd26357b4b66807127840828dfa586
@@ -0,0 +1,2 @@
1
+ .DS_Store
2
+ Gemfile.lock
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.3.0
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "http://rubygems.org"
2
+
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,24 @@
1
+
2
+ LICENSE
3
+
4
+ The MIT License
5
+
6
+ Copyright (c) Tute Costa and thoughtbot, inc.
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in
16
+ all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ THE SOFTWARE.
@@ -0,0 +1,11 @@
1
+ # paperclip-i18n
2
+
3
+ [![Build Status](https://secure.travis-ci.org/thoughtbot/paperclip-i18n.svg?branch=master)](http://travis-ci.org/thoughtbot/paperclip-i18n)
4
+
5
+ To extend paperclip with locales, add to your Gemfile:
6
+
7
+ ```ruby
8
+ gem 'paperclip-i18n'
9
+ ```
10
+
11
+ Or copy over the relevant `.yml` files into your repo.
@@ -0,0 +1,18 @@
1
+ require "bundler"
2
+ require "rake"
3
+ require "rspec/core"
4
+ require "rspec/core/rake_task"
5
+
6
+ begin
7
+ Bundler.setup(:default, :development)
8
+ rescue Bundler::BundlerError => e
9
+ $stderr.puts e.message
10
+ $stderr.puts "Run `bundle install` to install missing gems"
11
+ exit e.status_code
12
+ end
13
+
14
+ RSpec::Core::RakeTask.new(:spec) do |spec|
15
+ spec.pattern = FileList["spec/**/*_spec.rb"]
16
+ end
17
+
18
+ task default: :spec
@@ -0,0 +1,22 @@
1
+ ar:
2
+ errors:
3
+ messages:
4
+ in_between: "يجب أن يكون %{min} و %{max}"
5
+ spoofed_media_type: "يحتوي على محتوى غير مطابق عما هو مذكور"
6
+
7
+ number:
8
+ human:
9
+ storage_units:
10
+ format: "%n %u"
11
+ units:
12
+ byte:
13
+ zero: "بايت"
14
+ one: "واحد بايت"
15
+ two: "بايتين اثنين"
16
+ few: "بايت"
17
+ many: "بايتًا"
18
+ other: "بايتات"
19
+ kb: "كيلوبايت"
20
+ mb: "ميحابايت"
21
+ gb: "غيغابايت"
22
+ tb: "تيرابايت"
@@ -0,0 +1,18 @@
1
+ de:
2
+ errors:
3
+ messages:
4
+ in_between: "muss zwischen %{min} und %{max} sein"
5
+ spoofed_media_type: "trägt eine Dateiendung, die nicht mit dem Inhalt der Datei übereinstimmt"
6
+
7
+ number:
8
+ human:
9
+ storage_units:
10
+ format: "%n %u"
11
+ units:
12
+ byte:
13
+ one: "Byte"
14
+ other: "Bytes"
15
+ kb: "KB"
16
+ mb: "MB"
17
+ gb: "GB"
18
+ tb: "TB"
@@ -0,0 +1,18 @@
1
+ en:
2
+ errors:
3
+ messages:
4
+ in_between: "must be in between %{min} and %{max}"
5
+ spoofed_media_type: "has contents that are not what they are reported to be"
6
+
7
+ number:
8
+ human:
9
+ storage_units:
10
+ format: "%n %u"
11
+ units:
12
+ byte:
13
+ one: "Byte"
14
+ other: "Bytes"
15
+ kb: "KB"
16
+ mb: "MB"
17
+ gb: "GB"
18
+ tb: "TB"
@@ -0,0 +1,18 @@
1
+ es:
2
+ errors:
3
+ messages:
4
+ in_between: "debe estar entre %{min} y %{max}"
5
+ spoofed_media_type: "tiene una extensión que no coincide con su contenido"
6
+
7
+ number:
8
+ human:
9
+ storage_units:
10
+ format: "%n %u"
11
+ units:
12
+ byte:
13
+ one: "Byte"
14
+ other: "Bytes"
15
+ kb: "KB"
16
+ mb: "MB"
17
+ gb: "GB"
18
+ tb: "TB"
@@ -0,0 +1,18 @@
1
+ fr:
2
+ errors:
3
+ messages:
4
+ in_between: "doit être compris entre %{min} et %{max}"
5
+ spoofed_media_type: "ne correspond pas à ce que cela devrait être"
6
+
7
+ number:
8
+ human:
9
+ storage_units:
10
+ format: "%n %u"
11
+ units:
12
+ byte:
13
+ one: "Octet"
14
+ other: "Octets"
15
+ kb: "ko"
16
+ mb: "Mo"
17
+ gb: "Go"
18
+ tb: "To"
@@ -0,0 +1,18 @@
1
+ ja:
2
+ errors:
3
+ messages:
4
+ in_between: "の容量は%{min}以上%{max}以下にしてください。"
5
+ spoofed_media_type: "の拡張子と内容が一致していません。"
6
+
7
+ number:
8
+ human:
9
+ storage_units:
10
+ format: "%n %u"
11
+ units:
12
+ byte:
13
+ one: "Byte"
14
+ other: "Bytes"
15
+ kb: "KB"
16
+ mb: "MB"
17
+ gb: "GB"
18
+ tb: "TB"
@@ -0,0 +1,18 @@
1
+ nl:
2
+ errors:
3
+ messages:
4
+ in_between: "waarde moet tussen de %{min} en %{max} liggen"
5
+ spoofed_media_type: "heeft content die niet overeenkomt met wat is opgegeven"
6
+
7
+ number:
8
+ human:
9
+ storage_units:
10
+ format: "%n %u"
11
+ units:
12
+ byte:
13
+ one: "Byte"
14
+ other: "Bytes"
15
+ kb: "KB"
16
+ mb: "MB"
17
+ gb: "GB"
18
+ tb: "TB"
@@ -0,0 +1,20 @@
1
+ pl:
2
+ errors:
3
+ messages:
4
+ in_between: "musi być pomiędzy %{min} a %{max}"
5
+ spoofed_media_type: "zawiera treść, która nie odpowiada temu, jaka powinna być"
6
+
7
+ number:
8
+ human:
9
+ storage_units:
10
+ format: "%n %u"
11
+ units:
12
+ byte:
13
+ one: "bajt"
14
+ few: "bajty"
15
+ many: "bajtów"
16
+ other: "bajty"
17
+ kb: "KB"
18
+ mb: "MB"
19
+ gb: "GB"
20
+ tb: "TB"
@@ -0,0 +1,18 @@
1
+ pt-BR:
2
+ errors:
3
+ messages:
4
+ in_between: "deve ter entre %{min} e %{max}"
5
+ spoofed_media_type: "tem uma extensão que não corresponde ao seu conteúdo"
6
+
7
+ number:
8
+ human:
9
+ storage_units:
10
+ format: "%n %u"
11
+ units:
12
+ byte:
13
+ one: "Byte"
14
+ other: "Bytes"
15
+ kb: "KB"
16
+ mb: "MB"
17
+ gb: "GB"
18
+ tb: "TB"
@@ -0,0 +1,20 @@
1
+ ru:
2
+ errors:
3
+ messages:
4
+ in_between: "должен быть между %{min} и %{max}"
5
+ spoofed_media_type: "имеет содержимое, не соответствующее заявленному"
6
+
7
+ number:
8
+ human:
9
+ storage_units:
10
+ format: "%n %u"
11
+ units:
12
+ byte:
13
+ few: "Байта"
14
+ many: "Байт"
15
+ one: "Байт"
16
+ other: "Байта"
17
+ gb: "ГБ"
18
+ kb: "КБ"
19
+ mb: "МБ"
20
+ tb: "ТБ"
@@ -0,0 +1,18 @@
1
+ tr:
2
+ errors:
3
+ messages:
4
+ in_between: "%{min} ile %{max} arasında olmalıdır"
5
+ spoofed_media_type: "olmaması gerektiği raporlanan içerik bulunuyor"
6
+
7
+ number:
8
+ human:
9
+ storage_units:
10
+ format: "%n %u"
11
+ units:
12
+ byte:
13
+ one: "Bayt"
14
+ other: "Bayt"
15
+ kb: "KB"
16
+ mb: "MB"
17
+ gb: "GB"
18
+ tb: "TB"
@@ -0,0 +1,19 @@
1
+ vi:
2
+ errors:
3
+ messages:
4
+ in_between: "phải ở khoảng giữa %{min} và %{max}"
5
+ spoofed_media_type: "có nội dung không phù hợp"
6
+
7
+ number:
8
+ human:
9
+ storage_units:
10
+ format: "%n %u"
11
+ units:
12
+ byte:
13
+ one: "Byte"
14
+ other: "Bytes"
15
+ kb: "KB"
16
+ mb: "MB"
17
+ gb: "GB"
18
+ tb: "TB"
19
+
@@ -0,0 +1,18 @@
1
+ zh-CN:
2
+ errors:
3
+ messages:
4
+ in_between: "文件大小必须介于 %{min} 到 %{max} 之间"
5
+ spoofed_media_type: "扩展名与内容类型不符"
6
+
7
+ number:
8
+ human:
9
+ storage_units:
10
+ format: "%n %u"
11
+ units:
12
+ byte:
13
+ one: "Byte"
14
+ other: "Bytes"
15
+ kb: "KB"
16
+ mb: "MB"
17
+ gb: "GB"
18
+ tb: "TB"
@@ -0,0 +1,18 @@
1
+ zh-HK:
2
+ errors:
3
+ messages:
4
+ in_between: "必須介於%{min}到%{max}之間"
5
+ spoofed_media_type: "副檔名與內容類型不匹配"
6
+
7
+ number:
8
+ human:
9
+ storage_units:
10
+ format: "%n %u"
11
+ units:
12
+ byte:
13
+ one: "Byte"
14
+ other: "Bytes"
15
+ kb: "KB"
16
+ mb: "MB"
17
+ gb: "GB"
18
+ tb: "TB"
@@ -0,0 +1,18 @@
1
+ zh-TW:
2
+ errors:
3
+ messages:
4
+ in_between: "檔案大小必須介於 %{min} 到 %{max} 之間"
5
+ spoofed_media_type: "副檔名與內容類型不符"
6
+
7
+ number:
8
+ human:
9
+ storage_units:
10
+ format: "%n %u"
11
+ units:
12
+ byte:
13
+ one: "Byte"
14
+ other: "Bytes"
15
+ kb: "KB"
16
+ mb: "MB"
17
+ gb: "GB"
18
+ tb: "TB"
@@ -0,0 +1,4 @@
1
+ module PaperclipI18n
2
+ class Engine < ::Rails::Engine
3
+ end
4
+ end
@@ -0,0 +1,20 @@
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = "paperclip-i18n"
5
+ s.version = "4.3.0"
6
+ s.authors = ["Tute Costa"]
7
+ s.email = %w(tute@thoughtbot.com)
8
+ s.homepage = "https://github.com/thoughbot/paperclip-i18n"
9
+ s.summary = "Translations for paperclip rubygem."
10
+ s.description = "Translations for paperclip rubygem."
11
+ s.license = "MIT"
12
+
13
+ s.files = `git ls-files`.split("\n")
14
+ s.test_files = `git ls-files -- test/*`.split("\n")
15
+ s.require_paths = ["lib"]
16
+
17
+ s.add_development_dependency "rake"
18
+ s.add_development_dependency "rspec"
19
+ s.add_development_dependency "i18n-spec", "~> 0.6.0"
20
+ end
@@ -0,0 +1,8 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ Dir.glob('config/locales/*.yml').each do |locale_file|
4
+ describe "a paperclip-i18n #{locale_file} locale file" do
5
+ it_behaves_like 'a valid locale file', locale_file
6
+ it { expect(locale_file).to be_a_subset_of 'config/locales/en.yml' }
7
+ end
8
+ end
@@ -0,0 +1,5 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
+
4
+ require "rspec"
5
+ require "i18n-spec"
metadata ADDED
@@ -0,0 +1,111 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: paperclip-i18n
3
+ version: !ruby/object:Gem::Version
4
+ version: 4.3.0
5
+ platform: ruby
6
+ authors:
7
+ - Tute Costa
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-08-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: i18n-spec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.6.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.6.0
55
+ description: Translations for paperclip rubygem.
56
+ email:
57
+ - tute@thoughtbot.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".travis.yml"
64
+ - Gemfile
65
+ - LICENSE
66
+ - README.md
67
+ - Rakefile
68
+ - config/locales/ar.yml
69
+ - config/locales/de.yml
70
+ - config/locales/en.yml
71
+ - config/locales/es.yml
72
+ - config/locales/fr.yml
73
+ - config/locales/ja.yml
74
+ - config/locales/nl.yml
75
+ - config/locales/pl.yml
76
+ - config/locales/pt-BR.yml
77
+ - config/locales/ru.yml
78
+ - config/locales/tr.yml
79
+ - config/locales/vi.yml
80
+ - config/locales/zh-CN.yml
81
+ - config/locales/zh-HK.yml
82
+ - config/locales/zh-TW.yml
83
+ - lib/paperclip-i18n.rb
84
+ - paperclip-i18n.gemspec
85
+ - spec/paperclip-i18n_spec.rb
86
+ - spec/spec_helper.rb
87
+ homepage: https://github.com/thoughbot/paperclip-i18n
88
+ licenses:
89
+ - MIT
90
+ metadata: {}
91
+ post_install_message:
92
+ rdoc_options: []
93
+ require_paths:
94
+ - lib
95
+ required_ruby_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ required_rubygems_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ requirements: []
106
+ rubyforge_project:
107
+ rubygems_version: 2.5.1
108
+ signing_key:
109
+ specification_version: 4
110
+ summary: Translations for paperclip rubygem.
111
+ test_files: []