carrierwave-i18n 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1737fbb9a089b328a181051839bc69603c87da54
4
+ data.tar.gz: 30e8e4f806a1ab2a208b616a6ebfdfbf1f5e8162
5
+ SHA512:
6
+ metadata.gz: 30f3cf535a103349308ee49a5fd4bcfef483222a9b3d991538277405e837c992df151db9f1826847d083f776d3b756e11c0535f4592d1717d2e02ebd57e5f1f7
7
+ data.tar.gz: cde22ef98eba85dda4841a658a236592d840b51526c6ec3ec2c3c0ad6966da3853701f8df97c60f53e217815119c11710730aab09df09f89f29e0cd765a89315
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.3.0
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/LICENSE.md ADDED
@@ -0,0 +1,23 @@
1
+ LICENSE
2
+
3
+ The MIT License
4
+
5
+ Copyright (c) Mehdi Lahmam and Craftsmen.
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in
15
+ all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # CarrierWave i18n
2
+
3
+
4
+ ## Installation
5
+
6
+ To extend CarrierWave with locales, add this line to your application's Gemfile:
7
+
8
+ ```ruby
9
+ gem 'carrierwave-i18n'
10
+ ```
11
+
12
+ And then execute:
13
+
14
+ $ bundle
15
+
16
+ Or install it yourself as:
17
+
18
+ $ gem install carrierwave-i18n
19
+
20
+ ## Development
21
+
22
+ After checking out the repo, run `bundle install` to install dependencies. Then, run `rake spec` to run the tests.
23
+
24
+ ## Contributing
25
+
26
+ Bug reports and pull requests are welcome on GitHub at https://github.com/craftsmen/carrierwave-i18n.
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,22 @@
1
+ lib = File.expand_path('../lib', __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+
4
+ Gem::Specification.new do |spec|
5
+ spec.name = "carrierwave-i18n"
6
+ spec.version = "0.1.0"
7
+ spec.authors = ["Mehdi Lahmam"]
8
+ spec.email = ["mehdi@craftsmen.io"]
9
+
10
+ spec.summary = "Locales for CarrierWave"
11
+ spec.homepage = "https://github.com/craftsmen/carrierwave-i18n"
12
+ spec.license = "MIT"
13
+
14
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
15
+ spec.require_paths = ["lib"]
16
+
17
+ spec.add_development_dependency "bundler", "~> 1.11"
18
+ spec.add_development_dependency "rake", "~> 10.0"
19
+ spec.add_development_dependency "rspec", "~> 3.0"
20
+ spec.add_development_dependency "i18n-spec", "~> 0.6.0"
21
+ spec.add_development_dependency "railties"
22
+ end
@@ -0,0 +1,26 @@
1
+ require "rails"
2
+
3
+ module CarrierwaveI18n
4
+ class Railtie < ::Rails::Railtie
5
+ initializer "carrierwave-i18n" do |app|
6
+ CarrierwaveI18n::Railtie.instance_eval do
7
+ pattern = pattern_from app.config.i18n.available_locales
8
+
9
+ add("rails/locales/#{pattern}.yml")
10
+ end
11
+ end
12
+
13
+ protected
14
+
15
+ def self.add(pattern)
16
+ files = Dir[File.join(File.dirname(__FILE__), "../..", pattern)]
17
+
18
+ I18n.load_path.concat(files)
19
+ end
20
+
21
+ def self.pattern_from(args)
22
+ array = Array(args || [])
23
+ array.blank? ? "*" : "{#{array.join ','}}"
24
+ end
25
+ end
26
+ end
@@ -0,0 +1 @@
1
+ require "carrierwave-i18n/railtie" if defined?(Rails)
@@ -0,0 +1,12 @@
1
+ cs:
2
+ errors:
3
+ messages:
4
+ carrierwave_processing_error: se nepodařilo zpracovat
5
+ carrierwave_integrity_error: není povolený typ souboru
6
+ carrierwave_download_error: nemůže být stažen
7
+ extension_whitelist_error: "Není možné nahrávat %{extension} soubory, povolené typy: %{allowed_types}"
8
+ extension_blacklist_error: "Není možné nahrávat %{extension} soubory, zakázané typy: %{prohibited_types}"
9
+ rmagick_processing_error: "Nepodařilo se upravit pomocí rmagick, možná se nejedná o obrázek? Hlášená Chyba: %{e}"
10
+ mini_magick_processing_error: "Nepodařilo se upravit pomocí MiniMagick, možná se nejedná o obrázek? Hlášená Chyba: %{e}"
11
+ min_size_error: "Velikost souboru by měla být větší než %{min_size}"
12
+ max_size_error: "Velikost souboru by měla být nižší než %{max_size}"
@@ -0,0 +1,12 @@
1
+ de:
2
+ errors:
3
+ messages:
4
+ carrierwave_processing_error: konnte nicht verarbeitet werden
5
+ carrierwave_integrity_error: ist kein erlaubter Dateityp
6
+ carrierwave_download_error: konnte nicht heruntergeladen werden
7
+ extension_whitelist_error: "Sie sind nicht berechtigt %{extension} Dateien hochzuladen, erlaubte Typen: %{allowed_types}"
8
+ extension_blacklist_error: "Sie sind nicht berechtigt %{extension} Dateien hochzuladen, verbotene Typen: %{prohibited_types}"
9
+ rmagick_processing_error: "Verarbeitung mit rmagick fehlgeschlagen, vielleicht ist es kein Bild? Original Fehler: %{e}"
10
+ mini_magick_processing_error: "Verarbeitung mit MiniMagick fehlgeschlagen, vielleicht ist es kein Bild? Original Fehler: %{e}"
11
+ min_size_error: "Die dateigröße sollte größer sein als %{min_size}"
12
+ max_size_error: "Die dateigröße sollte weniger als sein %{max_size}"
@@ -0,0 +1,14 @@
1
+ el:
2
+ errors:
3
+ messages:
4
+ carrierwave_processing_error: "απέτυχε στην επεξεργασία"
5
+ carrierwave_integrity_error: "δεν ανήκει σε επιτρεπτό τύπο αρχείου"
6
+ carrierwave_download_error: "δεν ήταν δυνατό να μεταφορτωθεί"
7
+ extension_whitelist_error: "Δεν επιτρέπεται το ανέβασμα αρχείων %{extension}, επιτρεπτοί τύποι: %{allowed_types}"
8
+ extension_blacklist_error: "Δεν επιτρέπεται το ανέβασμα αρχείων %{extension}, μη επιτρεπτοί τύποι: %{prohibited_types}"
9
+ content_type_whitelist_error: "Δεν επιτρέπεται το ανέβασμα αρχείων τύπου %{content_type}"
10
+ content_type_blacklist_error: "Δεν επιτρέπεται το ανέβασμα αρχείων τύπου %{content_type}"
11
+ rmagick_processing_error: "Απέτυχε ο χειρισμός με rmagick, ίσως δεν είναι εικόνα; Αρχικό Σφάλμα: %{e}"
12
+ mini_magick_processing_error: "Απέτυχε ο χειρισμός με MiniMagick, ίσως δεν είναι εικόνα; Αρχικό Σφάλμα: %{e}"
13
+ min_size_error: "το μέγεθος του αρχείου θα πρέπει να είναι μεγαλύτερο από %{min_size}"
14
+ max_size_error: "το μέγεθος του αρχείου θα πρέπει να είναι μικρότερο από %{max_size}"
@@ -0,0 +1,14 @@
1
+ en:
2
+ errors:
3
+ messages:
4
+ carrierwave_processing_error: failed to be processed
5
+ carrierwave_integrity_error: is not of an allowed file type
6
+ carrierwave_download_error: could not be downloaded
7
+ extension_whitelist_error: "You are not allowed to upload %{extension} files, allowed types: %{allowed_types}"
8
+ extension_blacklist_error: "You are not allowed to upload %{extension} files, prohibited types: %{prohibited_types}"
9
+ content_type_whitelist_error: "You are not allowed to upload %{content_type} files"
10
+ content_type_blacklist_error: "You are not allowed to upload %{content_type} files"
11
+ rmagick_processing_error: "Failed to manipulate with rmagick, maybe it is not an image?"
12
+ mini_magick_processing_error: "Failed to manipulate with MiniMagick, maybe it is not an image? Original Error: %{e}"
13
+ min_size_error: "File size should be greater than %{min_size}"
14
+ max_size_error: "File size should be less than %{max_size}"
@@ -0,0 +1,12 @@
1
+ es:
2
+ errors:
3
+ messages:
4
+ carrierwave_processing_error: no pudo ser procesado
5
+ carrierwave_integrity_error: no es de un tipo de archivo permitido
6
+ carrierwave_download_error: no pudo ser descargado
7
+ extension_whitelist_error: "No se pueden subir archivos de la extensión %{extension}. Las extensiones permitidas son: %{allowed_types}"
8
+ extension_blacklist_error: "No se pueden subir archivos de la extensión %{extension}. Las extensiones prohibidas son: %{prohibited_types}"
9
+ rmagick_processing_error: "No se pudo manipular con rmagick, quizá porque no es una imágen? Error original: %{e}"
10
+ mini_magick_processing_error: "No se pudo manipular con MiniMagick, quizá porque no es una imágen? Error original: %{e}"
11
+ min_size_error: "El tamaño del archivo debe ser mayor que %{min_size}"
12
+ max_size_error: "El tamaño del archivo debe ser inferior a %{max_size}"
@@ -0,0 +1,14 @@
1
+ fr:
2
+ errors:
3
+ messages:
4
+ carrierwave_processing_error: "Impossible de redimensionner l'image."
5
+ carrierwave_integrity_error: "Ce n'est pas une image."
6
+ carrierwave_download_error: "Impossible de télécharger l'image."
7
+ extension_whitelist_error: "Vous n'êtes pas autorisé à uploader des fichiers %{extension}, types autorisés: %{allowed_types}"
8
+ extension_blacklist_error: "Vous n'êtes pas autorisé à uploader des fichiers %{extension}, types interdits: %{prohibited_types}"
9
+ content_type_whitelist_error: "Vous n'êtes pas autorisé à uploader des fichiers de type %{content_type}"
10
+ content_type_blacklist_error: "Vous n'êtes pas autorisé à uploader des fichiers de type %{content_type}"
11
+ rmagick_processing_error: "La manipulation d'image avec rmagick a échoué. Peut-être que ce n'est pas une image ? Erreur originale: %{e}"
12
+ mini_magick_processing_error: "La manipulation d'image avec MiniMagick a échoué. Peut-être que ce n'est pas une image ? Erreur originale: %{e}"
13
+ min_size_error: "La taille du fichier doit être supérieure à %{min_size}"
14
+ max_size_error: "La taille du fichier doit être inférieure à %{max_size}"
@@ -0,0 +1,14 @@
1
+ id:
2
+ errors:
3
+ messages:
4
+ carrierwave_processing_error: gagal diproses
5
+ carrierwave_integrity_error: bukan salah satu tipe file yang diperbolehkan
6
+ carrierwave_download_error: gagal download
7
+ extension_whitelist_error: "Dilarang mengupload tipe file %{extension}, tipe file yang dibolehkan: %{allowed_types}"
8
+ extension_blacklist_error: "Dilarang mengupload tipe file %{extension}, tipe file yang dilarang: %{prohibited_types}"
9
+ content_type_whitelist_error: "Anda dilarang mengupload file %{content_type}"
10
+ content_type_blacklist_error: "Anda dilarang mengupload file %{content_type}"
11
+ rmagick_processing_error: "Gagal memanipulasi dengan rmagick, mungkin file ini bukan gambar?"
12
+ mini_magick_processing_error: "Gagal memanipulasi citra menggunakan MiniMagick, mungkin bukan file gambar? Error semula: %{e}"
13
+ min_size_error: "Ukuran file harus lebih besar daripada %{min_size}"
14
+ max_size_error: "Ukuran file harus kurang dari %{max_size}"
@@ -0,0 +1,12 @@
1
+ ja:
2
+ errors:
3
+ messages:
4
+ carrierwave_processing_error: 処理できませんでした
5
+ carrierwave_integrity_error: は許可されていないファイルタイプです
6
+ carrierwave_download_error: はダウンロードできません
7
+ extension_whitelist_error: "%{extension}ファイルのアップロードは許可されていません。アップロードできるファイルタイプ: %{allowed_types}"
8
+ extension_blacklist_error: "%{extension}ファイルのアップロードは許可されていません。アップロードできないファイルタイプ: %{prohibited_types}"
9
+ rmagick_processing_error: "rmagickがファイルを処理できませんでした。画像を確認してください。エラーメッセージ: %{e}"
10
+ mini_magick_processing_error: "MiniMagickがファイルを処理できませんでした。画像を確認してください。エラーメッセージ: %{e}"
11
+ min_size_error: "ファイルを%{min_size}バイト以上のサイズにしてください"
12
+ max_size_error: "ファイルを%{max_size}バイト以下のサイズにしてください"
@@ -0,0 +1,12 @@
1
+ nb:
2
+ errors:
3
+ messages:
4
+ carrierwave_processing_error: kunne ikke behandles
5
+ carrierwave_integrity_error: er ikke en tillatt filtype
6
+ carrierwave_download_error: kunne ikke lastes ned
7
+ extension_whitelist_error: "Du kan ikke laste opp %{extension}-filer, tillatte filtyper: %{allowed_types}"
8
+ extension_blacklist_error: "Du kan ikke laste opp %{extension}-filer, forbudte filtyper: %{prohibited_types}"
9
+ rmagick_processing_error: "Kunne ikke manipulere med rmagick. Er du sikker på at det er et bilde? Feilmelding: %{e}"
10
+ mini_magick_processing_error: "Kunne ikke manipulere med MiniMagick. Er du sikker på at det er et bilde? Feilmelding: %{e}"
11
+ min_size_error: "Filen størrelse bør være større enn %{min_size}"
12
+ max_size_error: "Filen størrelse bør være mindre enn %{max_size}"
@@ -0,0 +1,12 @@
1
+ nl:
2
+ errors:
3
+ messages:
4
+ carrierwave_processing_error: kon niet worden verwerkt
5
+ carrierwave_integrity_error: is niet van een toegestaan bestandstype
6
+ carrierwave_download_error: kon niet gedownload worden
7
+ extension_whitelist_error: "Het is niet toegestaan om %{extension} bestanden te uploaden; toegestane bestandstypes: %{allowed_types}"
8
+ extension_blacklist_error: "Het is niet toegestaan om %{extension} bestanden te uploaden; verboden bestandstypes: %{prohibited_types}"
9
+ rmagick_processing_error: "Bewerking met rmagick is mislukt, misschien is het geen afbeelding? Originele foutmelding: %{e}"
10
+ mini_magick_processing_error: "Bewerking met MiniMagick is mislukt, misschien is het geen afbeelding? Originele foutmelding: %{e}"
11
+ min_size_error: "De bestandsgrootte moet groter zijn dan %{min_size}"
12
+ max_size_error: "De bestandsgrootte moet minder zijn dan %{max_size}"
@@ -0,0 +1,12 @@
1
+ pl:
2
+ errors:
3
+ messages:
4
+ carrierwave_processing_error: nie można przetworzyć
5
+ carrierwave_integrity_error: niedozwolony typ pliku
6
+ carrierwave_download_error: nie można pobrać pliku
7
+ extension_whitelist_error: "Nie można wgrać pliku o rozszerzeniu %{extension}, dozwolone typy plików: %{allowed_types}"
8
+ extension_blacklist_error: "Nie można wgrać pliku o rozszerzeniu %{extension}, zakazane typy plików: %{prohibited_types}"
9
+ rmagick_processing_error: "Nie udało się przetworzyć pliku przy pomocy rmagick, może to nie jest obrazek? Oryginalna treść błędu: %{e}"
10
+ mini_magick_processing_error: "Nie udało się przetworzyć pliku przy pomocy MiniMagick, może to nie jest obrazek? Oryginalna treść błędu: %{e}"
11
+ min_size_error: "Rozmiar pliku powinna być większa niż %{min_size}"
12
+ max_size_error: "Rozmiar pliku powinna być mniejsza niż %{max_size}"
@@ -0,0 +1,12 @@
1
+ pt-BR:
2
+ errors:
3
+ messages:
4
+ carrierwave_processing_error: falhou em ser processado
5
+ carrierwave_integrity_error: não é um tipo de arquivo permitido
6
+ carrierwave_download_error: não pôde ser baixado
7
+ extension_whitelist_error: "Não é permitido o envio de arquivos %{extension}, tipos permitidos: %{allowed_types}"
8
+ extension_blacklist_error: "Não é permitido o envio de arquivos %{extension}, tipos proibidos: %{prohibited_types}"
9
+ rmagick_processing_error: "Falha ao manipular com RMagick, talvez arquivo não seja uma imagem? Erro original: %{e}"
10
+ mini_magick_processing_error: "Falha ao manipular com MiniMagick, talvez arquivo não seja uma imagem? Erro original: %{e}"
11
+ min_size_error: "O tamanho do arquivo deve ser maior do que %{min_size}"
12
+ max_size_error: "O tamanho do arquivo deve ser inferior a %{max_size}"
@@ -0,0 +1,12 @@
1
+ pt-PT:
2
+ errors:
3
+ messages:
4
+ carrierwave_processing_error: falhou ao ser processado
5
+ carrierwave_integrity_error: não é um tipo de ficheiro permitido
6
+ carrierwave_download_error: não pôde ser transferido
7
+ extension_whitelist_error: "Não é permitido o envio de ficheiros com a extensão %{extension}, tipos de ficheiro permitidos: %{allowed_types}"
8
+ extension_blacklist_error: "Não é permitido o envio de ficheiros com a extensão %{extension}, tipos de ficheiro proibidos: %{prohibited_types}"
9
+ rmagick_processing_error: "Ocorreu uma falha ao processar com rmagick, talvez o ficheiro não seja uma imagem? Erro original: %{e}"
10
+ mini_magick_processing_error: "Ocorreu uma falha ao processar com MiniMagick, talvez o ficheiro não seja uma imagem? Erro original: %{e}"
11
+ min_size_error: "O tamanho do arquivo deve ser maior do que %{min_size}"
12
+ max_size_error: "O tamanho do arquivo deve ser inferior a %{max_size}"
@@ -0,0 +1,12 @@
1
+ ru:
2
+ errors:
3
+ messages:
4
+ carrierwave_processing_error: Невозможно обработать изображение
5
+ carrierwave_integrity_error: Файл не является изображением
6
+ carrierwave_download_error: Невозможно скачать файл
7
+ extension_whitelist_error: "Вы не можете загружать файлы типа %{extension}, разрешенные типы: %{allowed_types}"
8
+ extension_blacklist_error: "Вы не можете загружать файлы типа %{extension}, запрещенные типы: %{prohibited_types}"
9
+ rmagick_processing_error: "Ошибка взаимодействия с RMagick, может быть это не изображение? Исходная ошибка: %{e}"
10
+ mini_magick_processing_error: "Ошибка взаимодействия с MiniMagick, может быть это не изображение? Исходная ошибка: %{e}"
11
+ min_size_error: "Размер файла должен быть больше, чем %{min_size}"
12
+ max_size_error: "Размер файла должен быть меньше, чем %{max_size}"
@@ -0,0 +1,12 @@
1
+ sk:
2
+ errors:
3
+ messages:
4
+ carrierwave_processing_error: sa nepodarilo spracovať
5
+ carrierwave_integrity_error: nie je povolený typ súboru
6
+ carrierwave_download_error: nie je možné stiahnuť
7
+ extension_whitelist_error: "Nie je možné nahrávať %{extension} súbory, povolené typy: %{allowed_types}"
8
+ extension_blacklist_error: "Nie je možné nahrávať %{extension} súbory, zakázané typy: %{prohibited_types}"
9
+ rmagick_processing_error: "Nepodarilo sa upraviť pomocou rmagick, možno nejde o obrázok? Hlásená chyba: %{e}"
10
+ mini_magick_processing_error: "Nepodarilo sa upraviť pomocou MiniMagick, možno nejde o obrázok? Hlásená chyba: %{e}"
11
+ min_size_error: "Filstorleken ska vara större än %{min_size}"
12
+ max_size_error: "Filstorleken bör vara mindre än %{max_size}"
@@ -0,0 +1,12 @@
1
+ tr:
2
+ errors:
3
+ messages:
4
+ carrierwave_processing_error: işlenmesi sırasında hata oluştu
5
+ carrierwave_integrity_error: izin verilebilir bir dosya türü değil
6
+ carrierwave_download_error: indirilemedi
7
+ extension_whitelist_error: "%{extension} uzantılı dosyaları yükleme izniniz yok, izin verilen uzantılar: %{allowed_types}"
8
+ extension_blacklist_error: "%{extension} uzantılı dosyaları yükleme izniniz yok, izin verilmeyen uzantılar: %{prohibited_types}"
9
+ rmagick_processing_error: "Resim rmagick ile düzenlenemedi, belkide resim değildir? Orjinal Hata: %{e}"
10
+ mini_magick_processing_error: "Resim MiniMagick ile düzenlenemedi, belkide resim değildir? Orjinal Hata: %{e}"
11
+ min_size_error: "Dosya boyutu daha büyük olmalıdır %{min_size}"
12
+ max_size_error: "Dosya boyutu daha az olmalıdır %{max_size}"
@@ -0,0 +1,12 @@
1
+ zh-CN:
2
+ errors:
3
+ messages:
4
+ carrierwave_processing_error: 处理错误
5
+ carrierwave_integrity_error: 文件类型不正确
6
+ carrierwave_download_error: 下载错误
7
+ extension_whitelist_error: "不可上传 %{extension} 文件, 可上传文件类型为: %{allowed_types}"
8
+ extension_blacklist_error: "不可上传 %{extension} 文件, 不可上传文件类型为: %{prohibited_types}"
9
+ rmagick_processing_error: "rmagick 错误, 也许上传的文件不是图片? 原错误: %{e}"
10
+ mini_magick_processing_error: "MiniMagick 错误, 也许上传的文件不是图片? 原错误: %{e}"
11
+ min_size_error: "文件大小应大于 %{min_size}"
12
+ max_size_error: "文件的大小应小于 %{max_size}"
@@ -0,0 +1,12 @@
1
+ zh-TW:
2
+ errors:
3
+ messages:
4
+ carrierwave_processing_error: 處理錯誤
5
+ carrierwave_integrity_error: 文件類型錯誤
6
+ carrierwave_download_error: 下載錯誤
7
+ extension_whitelist_error: "不可上傳 %{extension} 文件, 可上傳文件類型為: %{allowed_types}"
8
+ extension_blacklist_error: "不可上傳 %{extension} 文件, 不可上傳文件類型為: %{prohibited_types}"
9
+ rmagick_processing_error: "rmagick 錯誤, 也許上傳的的文件不是圖片? 原錯誤: %{e}"
10
+ mini_magick_processing_error: "MiniMagick 錯誤, 也許上傳的文件不是圖片? 原錯誤: %{e}"
11
+ min_size_error: "文件大小應大於 %{min_size}"
12
+ max_size_error: "文件大小應小於 %{max_size}"
metadata ADDED
@@ -0,0 +1,142 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: carrierwave-i18n
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Mehdi Lahmam
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-02-02 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.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
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: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: i18n-spec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.6.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.6.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: railties
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description:
84
+ email:
85
+ - mehdi@craftsmen.io
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - ".rspec"
92
+ - ".travis.yml"
93
+ - Gemfile
94
+ - LICENSE.md
95
+ - README.md
96
+ - Rakefile
97
+ - carrierwave-i18n.gemspec
98
+ - lib/carrierwave-i18n.rb
99
+ - lib/carrierwave-i18n/railtie.rb
100
+ - rails/locales/cs.yml
101
+ - rails/locales/de.yml
102
+ - rails/locales/el.yml
103
+ - rails/locales/en.yml
104
+ - rails/locales/es.yml
105
+ - rails/locales/fr.yml
106
+ - rails/locales/id.yml
107
+ - rails/locales/ja.yml
108
+ - rails/locales/nb.yml
109
+ - rails/locales/nl.yml
110
+ - rails/locales/pl.yml
111
+ - rails/locales/pt-BR.yml
112
+ - rails/locales/pt-PT.yml
113
+ - rails/locales/ru.yml
114
+ - rails/locales/sk.yml
115
+ - rails/locales/tr.yml
116
+ - rails/locales/zh-CN.yml
117
+ - rails/locales/zh-TW.yml
118
+ homepage: https://github.com/craftsmen/carrierwave-i18n
119
+ licenses:
120
+ - MIT
121
+ metadata: {}
122
+ post_install_message:
123
+ rdoc_options: []
124
+ require_paths:
125
+ - lib
126
+ required_ruby_version: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ required_rubygems_version: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - ">="
134
+ - !ruby/object:Gem::Version
135
+ version: '0'
136
+ requirements: []
137
+ rubyforge_project:
138
+ rubygems_version: 2.5.1
139
+ signing_key:
140
+ specification_version: 4
141
+ summary: Locales for CarrierWave
142
+ test_files: []