carrierwave-i18n 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +26 -0
- data/{LICENSE.md → LICENSE.txt} +0 -4
- data/README.md +7 -12
- data/lib/carrierwave-i18n/railtie.rb +2 -2
- data/lib/carrierwave-i18n/version.rb +3 -0
- data/rails/locales/ar.yml +14 -0
- data/rails/locales/cs.yml +2 -0
- data/rails/locales/de.yml +2 -0
- data/rails/locales/es.yml +2 -0
- data/rails/locales/fr-CA.yml +14 -0
- data/rails/locales/ja.yml +2 -0
- data/rails/locales/nb.yml +2 -0
- data/rails/locales/nl.yml +2 -0
- data/rails/locales/pl.yml +4 -2
- data/rails/locales/pt-BR.yml +2 -0
- data/rails/locales/pt-PT.yml +2 -0
- data/rails/locales/ro.yml +14 -0
- data/rails/locales/ru.yml +2 -0
- data/rails/locales/sk.yml +2 -0
- data/rails/locales/tr.yml +2 -0
- data/rails/locales/vi.yml +14 -0
- data/rails/locales/zh-CN.yml +2 -0
- data/rails/locales/zh-TW.yml +2 -0
- metadata +11 -11
- data/.gitignore +0 -9
- data/.rspec +0 -2
- data/.travis.yml +0 -3
- data/Gemfile +0 -3
- data/Rakefile +0 -6
- data/carrierwave-i18n.gemspec +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04c1e50c199372fb23d070e427b51067c2f2081d
|
4
|
+
data.tar.gz: 19305daa307d027d750aa0963a9fc359215fe037
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 877b8a0c7f7dbf171e3244714dfc8c72682ae5e4ced5e3d531683ed00bee220e442ce04526353df5eaa6ad0285f3e1b421414836f978bddf3123a7d5dd4391c5
|
7
|
+
data.tar.gz: 0477525f4af33886c290f59d4cdc20c29ea286a3fd9ddf582746ef62974f59f953032b609b7d0143844be4d0a31006d175ad5797a426c43ffb60fcd13ea6b4bd
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# Contributing to CarrierWave i18n
|
2
|
+
|
3
|
+
Contributions and bug reports are welcomed. Please submit either a pull request or issue as relevant.
|
4
|
+
|
5
|
+
## Development Environment
|
6
|
+
|
7
|
+
```
|
8
|
+
git clone git@github.com:carrierwaveuploader/carrierwave-i18n.git
|
9
|
+
cd carrierwave-i18n
|
10
|
+
|
11
|
+
# Bundler is used for dependency management
|
12
|
+
bundle install
|
13
|
+
|
14
|
+
# Run the test suite
|
15
|
+
rspec
|
16
|
+
|
17
|
+
```
|
18
|
+
|
19
|
+
## Contributing Code
|
20
|
+
|
21
|
+
1. Fork it on GitHub
|
22
|
+
2. Create a branch (`git checkout -b new-feature`)
|
23
|
+
3. Add your feature and specs.
|
24
|
+
4. Commit your changes (`git commit -am 'My excellent feature.'`)
|
25
|
+
5. Push to the branch (`git push origin new-feature`)
|
26
|
+
6. Create new Pull Request
|
data/{LICENSE.md → LICENSE.txt}
RENAMED
data/README.md
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
-
# CarrierWave i18n
|
1
|
+
# CarrierWave i18n [![Build Status](https://travis-ci.org/carrierwaveuploader/carrierwave-i18n.svg?branch=master)](https://travis-ci.org/carrierwaveuploader/carrierwave-i18n)
|
2
2
|
|
3
|
+
Provides additional locales for CarrierWave, the classier solution for file uploads for Rails.
|
3
4
|
|
4
5
|
## Installation
|
5
6
|
|
6
|
-
|
7
|
+
Add the following line to your `Gemfile`:
|
7
8
|
|
8
9
|
```ruby
|
9
10
|
gem 'carrierwave-i18n'
|
@@ -11,16 +12,10 @@ gem 'carrierwave-i18n'
|
|
11
12
|
|
12
13
|
And then execute:
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
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.
|
15
|
+
```
|
16
|
+
$ bundle
|
17
|
+
```
|
23
18
|
|
24
19
|
## Contributing
|
25
20
|
|
26
|
-
|
21
|
+
Refer to details in `CONTRIBUTING.md`.
|
@@ -1,9 +1,9 @@
|
|
1
1
|
require "rails"
|
2
2
|
|
3
|
-
module
|
3
|
+
module CarrierWaveI18n
|
4
4
|
class Railtie < ::Rails::Railtie
|
5
5
|
initializer "carrierwave-i18n" do |app|
|
6
|
-
|
6
|
+
CarrierWaveI18n::Railtie.instance_eval do
|
7
7
|
pattern = pattern_from app.config.i18n.available_locales
|
8
8
|
|
9
9
|
add("rails/locales/#{pattern}.yml")
|
@@ -0,0 +1,14 @@
|
|
1
|
+
ar:
|
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: "حدث خطأ أثناء محاولة تعديل الصورة، الرجاء التأكد من الملف المرفوع"
|
12
|
+
mini_magick_processing_error: "حدث خطأ أثناء محاولة تعديل الصورة، الرجاء التأكد من الملف المرفوع، الخطأ: %{e}"
|
13
|
+
min_size_error: "حجم الملف المرفوع يجب أن يكون أكبر من %{min_size}"
|
14
|
+
max_size_error: "حجم الملف المرفوع يجب أن يكون أقل من %{max_size}"
|
data/rails/locales/cs.yml
CHANGED
@@ -6,6 +6,8 @@ cs:
|
|
6
6
|
carrierwave_download_error: nemůže být stažen
|
7
7
|
extension_whitelist_error: "Není možné nahrávat %{extension} soubory, povolené typy: %{allowed_types}"
|
8
8
|
extension_blacklist_error: "Není možné nahrávat %{extension} soubory, zakázané typy: %{prohibited_types}"
|
9
|
+
content_type_whitelist_error: "Není možné nahrávat %{content_type} soubory"
|
10
|
+
content_type_blacklist_error: "Není možné nahrávat %{content_type} soubory"
|
9
11
|
rmagick_processing_error: "Nepodařilo se upravit pomocí rmagick, možná se nejedná o obrázek? Hlášená Chyba: %{e}"
|
10
12
|
mini_magick_processing_error: "Nepodařilo se upravit pomocí MiniMagick, možná se nejedná o obrázek? Hlášená Chyba: %{e}"
|
11
13
|
min_size_error: "Velikost souboru by měla být větší než %{min_size}"
|
data/rails/locales/de.yml
CHANGED
@@ -6,6 +6,8 @@ de:
|
|
6
6
|
carrierwave_download_error: konnte nicht heruntergeladen werden
|
7
7
|
extension_whitelist_error: "Sie sind nicht berechtigt %{extension} Dateien hochzuladen, erlaubte Typen: %{allowed_types}"
|
8
8
|
extension_blacklist_error: "Sie sind nicht berechtigt %{extension} Dateien hochzuladen, verbotene Typen: %{prohibited_types}"
|
9
|
+
content_type_whitelist_error: "Sie sind nicht berechtigt %{content_type} Dateien hochzuladen"
|
10
|
+
content_type_blacklist_error: "Sie sind nicht berechtigt %{content_type} Dateien hochzuladen"
|
9
11
|
rmagick_processing_error: "Verarbeitung mit rmagick fehlgeschlagen, vielleicht ist es kein Bild? Original Fehler: %{e}"
|
10
12
|
mini_magick_processing_error: "Verarbeitung mit MiniMagick fehlgeschlagen, vielleicht ist es kein Bild? Original Fehler: %{e}"
|
11
13
|
min_size_error: "Die dateigröße sollte größer sein als %{min_size}"
|
data/rails/locales/es.yml
CHANGED
@@ -6,6 +6,8 @@ es:
|
|
6
6
|
carrierwave_download_error: no pudo ser descargado
|
7
7
|
extension_whitelist_error: "No se pueden subir archivos de la extensión %{extension}. Las extensiones permitidas son: %{allowed_types}"
|
8
8
|
extension_blacklist_error: "No se pueden subir archivos de la extensión %{extension}. Las extensiones prohibidas son: %{prohibited_types}"
|
9
|
+
content_type_whitelist_error: "No se pueden subir archivos de la extensión %{content_type}"
|
10
|
+
content_type_blacklist_error: "No se pueden subir archivos de la extensión %{content_type}"
|
9
11
|
rmagick_processing_error: "No se pudo manipular con rmagick, quizá porque no es una imágen? Error original: %{e}"
|
10
12
|
mini_magick_processing_error: "No se pudo manipular con MiniMagick, quizá porque no es una imágen? Error original: %{e}"
|
11
13
|
min_size_error: "El tamaño del archivo debe ser mayor que %{min_size}"
|
@@ -0,0 +1,14 @@
|
|
1
|
+
fr-CA:
|
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 %{content_type}"
|
10
|
+
content_type_blacklist_error: "Vous n'êtes pas autorisé à uploader des fichiers %{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}"
|
data/rails/locales/ja.yml
CHANGED
@@ -6,6 +6,8 @@ ja:
|
|
6
6
|
carrierwave_download_error: はダウンロードできません
|
7
7
|
extension_whitelist_error: "%{extension}ファイルのアップロードは許可されていません。アップロードできるファイルタイプ: %{allowed_types}"
|
8
8
|
extension_blacklist_error: "%{extension}ファイルのアップロードは許可されていません。アップロードできないファイルタイプ: %{prohibited_types}"
|
9
|
+
content_type_whitelist_error: "%{content_type}ファイルのアップロードは許可されていません"
|
10
|
+
content_type_blacklist_error: "%{content_type}ファイルのアップロードは許可されていません"
|
9
11
|
rmagick_processing_error: "rmagickがファイルを処理できませんでした。画像を確認してください。エラーメッセージ: %{e}"
|
10
12
|
mini_magick_processing_error: "MiniMagickがファイルを処理できませんでした。画像を確認してください。エラーメッセージ: %{e}"
|
11
13
|
min_size_error: "ファイルを%{min_size}バイト以上のサイズにしてください"
|
data/rails/locales/nb.yml
CHANGED
@@ -6,6 +6,8 @@ nb:
|
|
6
6
|
carrierwave_download_error: kunne ikke lastes ned
|
7
7
|
extension_whitelist_error: "Du kan ikke laste opp %{extension}-filer, tillatte filtyper: %{allowed_types}"
|
8
8
|
extension_blacklist_error: "Du kan ikke laste opp %{extension}-filer, forbudte filtyper: %{prohibited_types}"
|
9
|
+
content_type_whitelist_error: "Du kan ikke laste opp %{content_type}-filer"
|
10
|
+
content_type_blacklist_error: "Du kan ikke laste opp %{content_type}-filer"
|
9
11
|
rmagick_processing_error: "Kunne ikke manipulere med rmagick. Er du sikker på at det er et bilde? Feilmelding: %{e}"
|
10
12
|
mini_magick_processing_error: "Kunne ikke manipulere med MiniMagick. Er du sikker på at det er et bilde? Feilmelding: %{e}"
|
11
13
|
min_size_error: "Filen størrelse bør være større enn %{min_size}"
|
data/rails/locales/nl.yml
CHANGED
@@ -6,6 +6,8 @@ nl:
|
|
6
6
|
carrierwave_download_error: kon niet gedownload worden
|
7
7
|
extension_whitelist_error: "Het is niet toegestaan om %{extension} bestanden te uploaden; toegestane bestandstypes: %{allowed_types}"
|
8
8
|
extension_blacklist_error: "Het is niet toegestaan om %{extension} bestanden te uploaden; verboden bestandstypes: %{prohibited_types}"
|
9
|
+
content_type_whitelist_error: "Het is niet toegestaan om %{content_type} bestanden te uploaden"
|
10
|
+
content_type_blacklist_error: "Het is niet toegestaan om %{content_type} bestanden te uploaden"
|
9
11
|
rmagick_processing_error: "Bewerking met rmagick is mislukt, misschien is het geen afbeelding? Originele foutmelding: %{e}"
|
10
12
|
mini_magick_processing_error: "Bewerking met MiniMagick is mislukt, misschien is het geen afbeelding? Originele foutmelding: %{e}"
|
11
13
|
min_size_error: "De bestandsgrootte moet groter zijn dan %{min_size}"
|
data/rails/locales/pl.yml
CHANGED
@@ -6,7 +6,9 @@ pl:
|
|
6
6
|
carrierwave_download_error: nie można pobrać pliku
|
7
7
|
extension_whitelist_error: "Nie można wgrać pliku o rozszerzeniu %{extension}, dozwolone typy plików: %{allowed_types}"
|
8
8
|
extension_blacklist_error: "Nie można wgrać pliku o rozszerzeniu %{extension}, zakazane typy plików: %{prohibited_types}"
|
9
|
+
content_type_whitelist_error: "Nie można wgrać pliku o rozszerzeniu %{content_type}"
|
10
|
+
content_type_blacklist_error: "Nie można wgrać pliku o rozszerzeniu %{content_type}"
|
9
11
|
rmagick_processing_error: "Nie udało się przetworzyć pliku przy pomocy rmagick, może to nie jest obrazek? Oryginalna treść błędu: %{e}"
|
10
12
|
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
|
12
|
-
max_size_error: "Rozmiar pliku
|
13
|
+
min_size_error: "Rozmiar pliku powinien być większy niż %{min_size}"
|
14
|
+
max_size_error: "Rozmiar pliku powinien być mniejszy niż %{max_size}"
|
data/rails/locales/pt-BR.yml
CHANGED
@@ -6,6 +6,8 @@ pt-BR:
|
|
6
6
|
carrierwave_download_error: não pôde ser baixado
|
7
7
|
extension_whitelist_error: "Não é permitido o envio de arquivos %{extension}, tipos permitidos: %{allowed_types}"
|
8
8
|
extension_blacklist_error: "Não é permitido o envio de arquivos %{extension}, tipos proibidos: %{prohibited_types}"
|
9
|
+
content_type_whitelist_error: "Não é permitido o envio de arquivos %{content_type}"
|
10
|
+
content_type_blacklist_error: "Não é permitido o envio de arquivos %{content_type}"
|
9
11
|
rmagick_processing_error: "Falha ao manipular com RMagick, talvez arquivo não seja uma imagem? Erro original: %{e}"
|
10
12
|
mini_magick_processing_error: "Falha ao manipular com MiniMagick, talvez arquivo não seja uma imagem? Erro original: %{e}"
|
11
13
|
min_size_error: "O tamanho do arquivo deve ser maior do que %{min_size}"
|
data/rails/locales/pt-PT.yml
CHANGED
@@ -6,6 +6,8 @@ pt-PT:
|
|
6
6
|
carrierwave_download_error: não pôde ser transferido
|
7
7
|
extension_whitelist_error: "Não é permitido o envio de ficheiros com a extensão %{extension}, tipos de ficheiro permitidos: %{allowed_types}"
|
8
8
|
extension_blacklist_error: "Não é permitido o envio de ficheiros com a extensão %{extension}, tipos de ficheiro proibidos: %{prohibited_types}"
|
9
|
+
content_type_whitelist_error: "Não é permitido o envio de ficheiros com a extensão %{content_type}"
|
10
|
+
content_type_blacklist_error: "Não é permitido o envio de ficheiros com a extensão %{content_type}"
|
9
11
|
rmagick_processing_error: "Ocorreu uma falha ao processar com rmagick, talvez o ficheiro não seja uma imagem? Erro original: %{e}"
|
10
12
|
mini_magick_processing_error: "Ocorreu uma falha ao processar com MiniMagick, talvez o ficheiro não seja uma imagem? Erro original: %{e}"
|
11
13
|
min_size_error: "O tamanho do arquivo deve ser maior do que %{min_size}"
|
@@ -0,0 +1,14 @@
|
|
1
|
+
ro:
|
2
|
+
errors:
|
3
|
+
messages:
|
4
|
+
carrierwave_processing_error: eroare de procesare
|
5
|
+
carrierwave_integrity_error: nu este un tip de fișier permis
|
6
|
+
carrierwave_download_error: nu a putut fi descărcat
|
7
|
+
extension_whitelist_error: "Nu este permisă încarcarea fișierelor cu extensia '%{extension}', tipuri permise: '%{allowed_types}'"
|
8
|
+
extension_blacklist_error: "Nu este permisă încarcarea fișierelor cu extensia '%{extension}', tipuri nepermise: '%{prohibited_types}'"
|
9
|
+
content_type_whitelist_error: "Nu este permisă încarcarea fișierelor de tipul '%{content_type}'"
|
10
|
+
content_type_blacklist_error: "Nu este permisă încarcarea fișierelor de tipul '%{content_type}'"
|
11
|
+
rmagick_processing_error: "Eroare de procesare cu rmagick, probabil fișierul nu este o imagine?"
|
12
|
+
mini_magick_processing_error: "Eroare de procesare cu MiniMagick, probabil fișierul nu este o imagine? Eroare originală: '%{e}'"
|
13
|
+
min_size_error: "Fișierul trebuie să fie mai mare decât %{min_size}"
|
14
|
+
max_size_error: "Fișierul trebuie să fie mai mic decât %{max_size}"
|
data/rails/locales/ru.yml
CHANGED
@@ -6,6 +6,8 @@ ru:
|
|
6
6
|
carrierwave_download_error: Невозможно скачать файл
|
7
7
|
extension_whitelist_error: "Вы не можете загружать файлы типа %{extension}, разрешенные типы: %{allowed_types}"
|
8
8
|
extension_blacklist_error: "Вы не можете загружать файлы типа %{extension}, запрещенные типы: %{prohibited_types}"
|
9
|
+
content_type_whitelist_error: "Вы не можете загружать файлы типа %{content_type}"
|
10
|
+
content_type_blacklist_error: "Вы не можете загружать файлы типа %{content_type}"
|
9
11
|
rmagick_processing_error: "Ошибка взаимодействия с RMagick, может быть это не изображение? Исходная ошибка: %{e}"
|
10
12
|
mini_magick_processing_error: "Ошибка взаимодействия с MiniMagick, может быть это не изображение? Исходная ошибка: %{e}"
|
11
13
|
min_size_error: "Размер файла должен быть больше, чем %{min_size}"
|
data/rails/locales/sk.yml
CHANGED
@@ -6,6 +6,8 @@ sk:
|
|
6
6
|
carrierwave_download_error: nie je možné stiahnuť
|
7
7
|
extension_whitelist_error: "Nie je možné nahrávať %{extension} súbory, povolené typy: %{allowed_types}"
|
8
8
|
extension_blacklist_error: "Nie je možné nahrávať %{extension} súbory, zakázané typy: %{prohibited_types}"
|
9
|
+
content_type_whitelist_error: "Nie je možné nahrávať %{content_type} súbory"
|
10
|
+
content_type_blacklist_error: "Nie je možné nahrávať %{content_type} súbory"
|
9
11
|
rmagick_processing_error: "Nepodarilo sa upraviť pomocou rmagick, možno nejde o obrázok? Hlásená chyba: %{e}"
|
10
12
|
mini_magick_processing_error: "Nepodarilo sa upraviť pomocou MiniMagick, možno nejde o obrázok? Hlásená chyba: %{e}"
|
11
13
|
min_size_error: "Filstorleken ska vara större än %{min_size}"
|
data/rails/locales/tr.yml
CHANGED
@@ -6,6 +6,8 @@ tr:
|
|
6
6
|
carrierwave_download_error: indirilemedi
|
7
7
|
extension_whitelist_error: "%{extension} uzantılı dosyaları yükleme izniniz yok, izin verilen uzantılar: %{allowed_types}"
|
8
8
|
extension_blacklist_error: "%{extension} uzantılı dosyaları yükleme izniniz yok, izin verilmeyen uzantılar: %{prohibited_types}"
|
9
|
+
content_type_whitelist_error: "%{content_type} uzantılı dosyaları yükleme izniniz yok"
|
10
|
+
content_type_blacklist_error: "%{content_type} uzantılı dosyaları yükleme izniniz yok"
|
9
11
|
rmagick_processing_error: "Resim rmagick ile düzenlenemedi, belkide resim değildir? Orjinal Hata: %{e}"
|
10
12
|
mini_magick_processing_error: "Resim MiniMagick ile düzenlenemedi, belkide resim değildir? Orjinal Hata: %{e}"
|
11
13
|
min_size_error: "Dosya boyutu daha büyük olmalıdır %{min_size}"
|
@@ -0,0 +1,14 @@
|
|
1
|
+
vi:
|
2
|
+
errors:
|
3
|
+
messages:
|
4
|
+
carrierwave_processing_error: không xử lý được
|
5
|
+
carrierwave_integrity_error: không phải là kiểu file hợp lệ
|
6
|
+
carrierwave_download_error: không thể download
|
7
|
+
extension_whitelist_error: "Bạn không thể tải file có định dạng %{extension}, chỉ cho phép tải file có định dạng: %{allowed_types}"
|
8
|
+
extension_blacklist_error: "Bạn không thể tải file có định dạng %{extension}, không cho phép tải file có định dạng: %{prohibited_types}"
|
9
|
+
content_type_whitelist_error: "Bạn không thể file có định dạng %{content_type}"
|
10
|
+
content_type_blacklist_error: "Bạn không thể file có định dạng %{content_type}"
|
11
|
+
rmagick_processing_error: "Không thể xử lý với rmagick, có thể file của bạn không phải hình ảnh?"
|
12
|
+
mini_magick_processing_error: "Không thể xử lý với MiniMagick, có thể file của bạn không phải hình ảnh? Lỗi gốc: %{e}"
|
13
|
+
min_size_error: "Kích thước file phải lớn hơn %{min_size}"
|
14
|
+
max_size_error: "Kích thước file phải nhỏ hơn %{max_size}"
|
data/rails/locales/zh-CN.yml
CHANGED
@@ -6,6 +6,8 @@ zh-CN:
|
|
6
6
|
carrierwave_download_error: 下载错误
|
7
7
|
extension_whitelist_error: "不可上传 %{extension} 文件, 可上传文件类型为: %{allowed_types}"
|
8
8
|
extension_blacklist_error: "不可上传 %{extension} 文件, 不可上传文件类型为: %{prohibited_types}"
|
9
|
+
content_type_whitelist_error: "不可上传 %{content_type} 文件"
|
10
|
+
content_type_blacklist_error: "不可上传 %{content_type} 文件"
|
9
11
|
rmagick_processing_error: "rmagick 错误, 也许上传的文件不是图片? 原错误: %{e}"
|
10
12
|
mini_magick_processing_error: "MiniMagick 错误, 也许上传的文件不是图片? 原错误: %{e}"
|
11
13
|
min_size_error: "文件大小应大于 %{min_size}"
|
data/rails/locales/zh-TW.yml
CHANGED
@@ -6,6 +6,8 @@ zh-TW:
|
|
6
6
|
carrierwave_download_error: 下載錯誤
|
7
7
|
extension_whitelist_error: "不可上傳 %{extension} 文件, 可上傳文件類型為: %{allowed_types}"
|
8
8
|
extension_blacklist_error: "不可上傳 %{extension} 文件, 不可上傳文件類型為: %{prohibited_types}"
|
9
|
+
content_type_whitelist_error: "不可上傳 %{content_type} 文件"
|
10
|
+
content_type_blacklist_error: "不可上傳 %{content_type} 文件"
|
9
11
|
rmagick_processing_error: "rmagick 錯誤, 也許上傳的的文件不是圖片? 原錯誤: %{e}"
|
10
12
|
mini_magick_processing_error: "MiniMagick 錯誤, 也許上傳的文件不是圖片? 原錯誤: %{e}"
|
11
13
|
min_size_error: "文件大小應大於 %{min_size}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave-i18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mehdi Lahmam
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -87,21 +87,19 @@ executables: []
|
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
|
-
-
|
91
|
-
-
|
92
|
-
- ".travis.yml"
|
93
|
-
- Gemfile
|
94
|
-
- LICENSE.md
|
90
|
+
- CONTRIBUTING.md
|
91
|
+
- LICENSE.txt
|
95
92
|
- README.md
|
96
|
-
- Rakefile
|
97
|
-
- carrierwave-i18n.gemspec
|
98
93
|
- lib/carrierwave-i18n.rb
|
99
94
|
- lib/carrierwave-i18n/railtie.rb
|
95
|
+
- lib/carrierwave-i18n/version.rb
|
96
|
+
- rails/locales/ar.yml
|
100
97
|
- rails/locales/cs.yml
|
101
98
|
- rails/locales/de.yml
|
102
99
|
- rails/locales/el.yml
|
103
100
|
- rails/locales/en.yml
|
104
101
|
- rails/locales/es.yml
|
102
|
+
- rails/locales/fr-CA.yml
|
105
103
|
- rails/locales/fr.yml
|
106
104
|
- rails/locales/id.yml
|
107
105
|
- rails/locales/ja.yml
|
@@ -110,12 +108,14 @@ files:
|
|
110
108
|
- rails/locales/pl.yml
|
111
109
|
- rails/locales/pt-BR.yml
|
112
110
|
- rails/locales/pt-PT.yml
|
111
|
+
- rails/locales/ro.yml
|
113
112
|
- rails/locales/ru.yml
|
114
113
|
- rails/locales/sk.yml
|
115
114
|
- rails/locales/tr.yml
|
115
|
+
- rails/locales/vi.yml
|
116
116
|
- rails/locales/zh-CN.yml
|
117
117
|
- rails/locales/zh-TW.yml
|
118
|
-
homepage: https://github.com/
|
118
|
+
homepage: https://github.com/carrierwaveuploader/carrierwave-i18n
|
119
119
|
licenses:
|
120
120
|
- MIT
|
121
121
|
metadata: {}
|
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
135
|
version: '0'
|
136
136
|
requirements: []
|
137
137
|
rubyforge_project:
|
138
|
-
rubygems_version: 2.5.
|
138
|
+
rubygems_version: 2.5.2
|
139
139
|
signing_key:
|
140
140
|
specification_version: 4
|
141
141
|
summary: Locales for CarrierWave
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.travis.yml
DELETED
data/Gemfile
DELETED
data/Rakefile
DELETED
data/carrierwave-i18n.gemspec
DELETED
@@ -1,22 +0,0 @@
|
|
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
|