refinerycms-images 0.9.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/app/controllers/admin/images_controller.rb +108 -0
  2. data/app/helpers/admin/images_helper.rb +27 -0
  3. data/app/models/image.rb +72 -0
  4. data/app/views/admin/images/_existing_image.html.erb +73 -0
  5. data/app/views/admin/images/_form.html.erb +54 -0
  6. data/app/views/admin/images/_grid_view.html.erb +19 -0
  7. data/app/views/admin/images/_images.html.erb +2 -0
  8. data/app/views/admin/images/_list_view.html.erb +10 -0
  9. data/app/views/admin/images/_list_view_image.html.erb +17 -0
  10. data/app/views/admin/images/edit.html.erb +1 -0
  11. data/app/views/admin/images/index.html.erb +38 -0
  12. data/app/views/admin/images/insert.html.erb +47 -0
  13. data/app/views/admin/images/new.html.erb +1 -0
  14. data/config/locales/cs.yml +41 -0
  15. data/config/locales/da.yml +41 -0
  16. data/config/locales/de.yml +41 -0
  17. data/config/locales/el.yml +41 -0
  18. data/config/locales/en.yml +41 -0
  19. data/config/locales/es.yml +40 -0
  20. data/config/locales/fr.yml +41 -0
  21. data/config/locales/it.yml +47 -0
  22. data/config/locales/lolcat.yml +41 -0
  23. data/config/locales/lt.yml +41 -0
  24. data/config/locales/lv.yml +41 -0
  25. data/config/locales/nb.yml +42 -0
  26. data/config/locales/nl.yml +40 -0
  27. data/config/locales/pl.yml +42 -0
  28. data/config/locales/pt-BR.yml +42 -0
  29. data/config/locales/rs.yml +42 -0
  30. data/config/locales/ru.yml +41 -0
  31. data/config/locales/sl.yml +40 -0
  32. data/config/locales/sv.yml +41 -0
  33. data/config/locales/vi.yml +41 -0
  34. data/config/locales/zh-CN.yml +41 -0
  35. data/config/locales/zh-TW.yml +41 -0
  36. data/config/routes.rb +12 -0
  37. data/db/migrate/20100913234707_create_refinerycms_images_schema.rb +23 -0
  38. data/features/manage_images.feature +49 -0
  39. data/features/step_definitions/image_steps.rb +40 -0
  40. data/features/support/factories.rb +5 -0
  41. data/features/support/paths.rb +17 -0
  42. data/features/uploads/beach.jpeg +0 -0
  43. data/features/uploads/id-rather-be-here.jpg +0 -0
  44. data/features/uploads/refinery_is_awesome.txt +1 -0
  45. data/lib/gemspec.rb +35 -0
  46. data/lib/generators/refinerycms_images_generator.rb +8 -0
  47. data/lib/refinerycms-images.rb +69 -0
  48. data/license.md +21 -0
  49. data/readme.md +34 -0
  50. data/refinerycms-images.gemspec +97 -0
  51. data/spec/models/image_spec.rb +87 -0
  52. data/spec/uploads/beach.jpeg +0 -0
  53. metadata +142 -0
@@ -0,0 +1,42 @@
1
+ nb:
2
+ plugins:
3
+ refinery_images:
4
+ title: Bilder
5
+ description: Behandle bilder
6
+ admin:
7
+ images:
8
+ delete: Fjern dette bildet permanent
9
+ edit: Rediger dette bildet
10
+ form:
11
+ image: Bilde
12
+ use_current_image: Bruk gjeldende bilde
13
+ or: eller
14
+ replace_image: Erstatt det med dette ...
15
+ current_image: Gjeldende bilde
16
+ maximum_image_size: "Den største tillatte størrelsen på et bilde er %{megabytes} MB."
17
+ index:
18
+ create_new_image: Lag et nytt bilde
19
+ no_images_yet: Det er ingen bilder her enda. Trykk på "Lag et nytt bilde" for å legge til ditt første bilde.
20
+ view:
21
+ switch_to: "Endre til %{view_name} visning"
22
+ list: liste
23
+ grid: rutenett
24
+ grid_view:
25
+ view_live_html: Vis dette bildet <br/><em>Åpner i et nytt vindu</em>
26
+ existing_image:
27
+ button_text: Sett inn
28
+ resize_image: "Endre størrelsen på bildet? <em>(Anbefales)</em>"
29
+ size: Størrelse
30
+ insert:
31
+ existing_image: Eksisterende bilde
32
+ new_image: Nytt bilde
33
+ activerecord:
34
+ models:
35
+ image: bilde
36
+ errors:
37
+ models:
38
+ image:
39
+ blank: Du må angi bildet som skal lastet opp
40
+ too_long: Bildet må være mindre enn %{count}
41
+ incorrect_format: 'Bildefilen må være av filtypen JPG, PNG eller GIF'
42
+
@@ -0,0 +1,40 @@
1
+ nl:
2
+ plugins:
3
+ refinery_images:
4
+ title: Afbeeldingen
5
+ admin:
6
+ images:
7
+ delete: Verwijder deze afbeelding permanent
8
+ edit: Bewerk deze afbeelding
9
+ form:
10
+ image: Afbeelding
11
+ use_current_image: Gebruik huidige afbeelding
12
+ or: of
13
+ replace_image: Vervang de afbeelding door deze
14
+ current_image: Huidige afbeelding
15
+ maximum_image_size: "The maximum image size is %{megabytes} megabytes."
16
+ index:
17
+ create_new_image: Upload een nieuwe afbeelding
18
+ no_images_yet: Er zijn nog geen afbeeldingen. Klik op "Upload een nieuwe afbeelding" om uw eerste afbleelding toe te voegen.
19
+ view:
20
+ switch_to: Bekijk de %{view_name} versie
21
+ list: lijst
22
+ grid: tabel
23
+ grid_view:
24
+ view_live_html: Bekijk deze afbeelding <br/><em>(opent een nieuw venster)</em>
25
+ existing_image:
26
+ button_text: Invoegen
27
+ resize_image: Schaal de afbeelding
28
+ size: Grootte
29
+ insert:
30
+ existing_image: Bibliotheek
31
+ new_image: Uploaden
32
+ activerecord:
33
+ models:
34
+ image: afbeelding
35
+ errors:
36
+ models:
37
+ image:
38
+ blank: U moet een afbeelding kiezen om te uploaden.
39
+ too_long: Afbeeldingen mogen niet groter dan %{count} zijn.
40
+ incorrect_format: Uw afbeelding moet een JPG, PNG of GIF zijn.
@@ -0,0 +1,42 @@
1
+ pl:
2
+ plugins:
3
+ refinery_images:
4
+ title: Obrazy
5
+ description: Zarządzaj obrazami
6
+ article: masculine
7
+ admin:
8
+ images:
9
+ delete: Na zawsze usuń ten obraz
10
+ edit: Zmień ten obraz
11
+ form:
12
+ image: Obraz
13
+ use_current_image: Użyj obecnego obrazu
14
+ or: lub
15
+ replace_image: " zastąp go tym..."
16
+ current_image: Obecny obraz
17
+ maximum_image_size: Maksymalny rozmiar obrazu to %{megabytes} megabajtów.
18
+ index:
19
+ create_new_image: Dodaj nowy obraz
20
+ no_images_yet: Nie ma jeszcze żadnych obrazów. Kliknij "Dodaj nowy obraz" aby dodać pierwszy.
21
+ view:
22
+ switch_to: Przełącz do widoku %{view_name}
23
+ list: lista
24
+ grid: siatka
25
+ grid_view:
26
+ view_live_html: Obejrzyj ten obraz <br/><em>Otwarcie w nowym oknie</em>
27
+ existing_image:
28
+ button_text: Wstaw
29
+ resize_image: Zmień rozmiar tego obrazu?
30
+ size: Rozmiar
31
+ insert:
32
+ existing_image: Istniejący obraz
33
+ new_image: Nowy obraz
34
+ activerecord:
35
+ models:
36
+ image: obraz
37
+ errors:
38
+ models:
39
+ image:
40
+ blank: Musisz określić obraz do wgrania
41
+ too_long: Obraz powinien być mniejszy niż %{count}
42
+ incorrect_format: 'Obraz musi być plikiem typu JPG, PNG lub GIF'
@@ -0,0 +1,42 @@
1
+ pt-BR:
2
+ plugins:
3
+ refinery_images:
4
+ title: Imagens
5
+ article: a
6
+ description: Gerenciar imagens
7
+ admin:
8
+ images:
9
+ delete: Remover esta imagem para sempre
10
+ edit: Editar esta imagem
11
+ form:
12
+ image: Imagem
13
+ use_current_image: Usar imagem atual
14
+ or: ou
15
+ replace_image: " substituir por esta..."
16
+ current_image: Imagem atual
17
+ maximum_image_size: "O tamanho máximo permitido é de %{megabytes} megabytes."
18
+ index:
19
+ create_new_image: Criar Nova Imagem
20
+ no_images_yet: Ainda não existem imagens. Clique em "Criar Nova Imagem" para adicionar sua primeira imagem.
21
+ view:
22
+ switch_to: Trocar para visão em %{view_name}
23
+ list: lista
24
+ grid: grade
25
+ grid_view:
26
+ view_live_html: "Ver esta imagem<br/><em>Abre em uma nova janela</em>"
27
+ existing_image:
28
+ button_text: Inserir
29
+ resize_image: "Redimencionar a imagem?"
30
+ size: Tamanho
31
+ insert:
32
+ existing_image: Do Arquivo
33
+ new_image: Nova Imagem
34
+ activerecord:
35
+ models:
36
+ image: Imagem
37
+ errors:
38
+ models:
39
+ image:
40
+ blank: Você deve escolher uma imagem para enviar
41
+ too_long: "Imagem deve possuir menos de %{count} de tamanho"
42
+ incorrect_format: 'Sua imagem deve ser uma JPG, PNG ou GIF'
@@ -0,0 +1,42 @@
1
+ rs:
2
+ plugins:
3
+ refinery_images:
4
+ title: Slike
5
+ description: Menjaj slike
6
+ admin:
7
+ images:
8
+ delete: Ukloni ovu sliku zauvek
9
+ edit: Izmeni sliku
10
+ form:
11
+ image: Slika
12
+ use_current_image: Koristi trenutnu sliku
13
+ or: ili
14
+ replace_image: " zameni sa ovom..."
15
+ current_image: Trenutna slika
16
+ maximum_image_size: Maksimalna veličina slike je %{megabytes} megabajta.
17
+ index:
18
+ create_new_image: Dodaj novu sliku
19
+ no_images_yet: Ne postoje slike. Klikni "Dodaj novu sliku" da dodaš.
20
+ view:
21
+ switch_to: Prebaci na %{view_name}
22
+ list: listu
23
+ grid: mrežni prikaz
24
+ grid_view:
25
+ view_live_html: Pogledaj ovu sliku <br/><em>Otvara se u novom prozoru</em>
26
+ existing_image:
27
+ button_text: Unesi
28
+ resize_image: Promeni veličinu slike?
29
+ size: Veličina
30
+ insert:
31
+ existing_image: Trenutne slike
32
+ new_image: Upload
33
+ activerecord:
34
+ models:
35
+ image: slika
36
+ errors:
37
+ models:
38
+ image:
39
+ blank: Moraš izabrati sliku za upload
40
+ too_long: Slika bi trebalo da bude manja od %{count}
41
+ incorrect_format: 'Slika mora biti u JPG, PNG ili GIF formatu'
42
+
@@ -0,0 +1,41 @@
1
+ ru:
2
+ plugins:
3
+ refinery_images:
4
+ title: Изображения
5
+ article: neuter
6
+ activerecord:
7
+ models:
8
+ image: изображение
9
+ errors:
10
+ models:
11
+ image:
12
+ blank: Вы должны выбрать файл для загрузки
13
+ too_long: "Файлы должны быть меньше по размеру, чем %{count}"
14
+ incorrect_format: "Ваше изображение может быть только в форматах JPG, PNG или GIF"
15
+ admin:
16
+ images:
17
+ delete: Удалить это изображение навсегда
18
+ edit: Редактировать это изображение
19
+ form:
20
+ image: Изображение
21
+ use_current_image: Использовать текущее изображение
22
+ or: или
23
+ replace_image: " заменить его этим"
24
+ current_image: Текущее изображение
25
+ maximum_image_size: "Максимальный размер изображения — %{megabytes} МБ."
26
+ index:
27
+ create_new_image: Создать новое изображение
28
+ no_images_yet: "Изображений пока что нет. Нажмите «Создать новое изображение», чтобы добавить ваше первое изображение."
29
+ view:
30
+ switch_to: Показать %{view_name}
31
+ list: списком
32
+ grid: сеткой
33
+ grid_view:
34
+ view_live_html: Показать это изображение <br/><em>Откроется в новом окне</em>
35
+ existing_image:
36
+ button_text: Вставить
37
+ resize_image: Изменить размер изображения?
38
+ size: Размер
39
+ insert:
40
+ existing_image: Существующее изображение
41
+ new_image: Новое изображение
@@ -0,0 +1,40 @@
1
+ sl:
2
+ plugins:
3
+ refinery_images:
4
+ title: Slike
5
+ admin:
6
+ images:
7
+ delete: Odstrani sliko
8
+ edit: Uredi sliko
9
+ form:
10
+ image: Slika
11
+ use_current_image: Uporabi tretnutno sliko
12
+ or: ali
13
+ replace_image: " zamenjaj jo s tole..."
14
+ current_image: Trenutna Slika
15
+ maximum_image_size: "Največja dovoljena velikost slike je lahko %{megabytes} megabajtov."
16
+ index:
17
+ create_new_image: Ustvari Novo Sliko
18
+ no_images_yet: Trenutno še ni nobene slike. Za prenos prve slike kliknite "Ustvari Novo Sliko".
19
+ view:
20
+ switch_to: Preklopi pogled v %{view_name}
21
+ list: seznam
22
+ grid: mrežo
23
+ grid_view:
24
+ view_live_html: Poglej sliko <br/><em>Odpre se v novem oknu</em>
25
+ existing_image:
26
+ button_text: Vstavi
27
+ resize_image: Spremeni velikost slike?
28
+ size: Velikost
29
+ insert:
30
+ existing_image: Obstoječa Slika
31
+ new_image: Nova Slika
32
+ activerecord:
33
+ models:
34
+ image: slika
35
+ errors:
36
+ models:
37
+ image:
38
+ blank: Izbrati morate datoteko, ki jo želite naložiti
39
+ too_long: Velikost slike mora biti manjša od %{count}
40
+ incorrect_format: Slika mora biti tipa JPG, PNG ali GIF
@@ -0,0 +1,41 @@
1
+ sv:
2
+ plugins:
3
+ refinery_images:
4
+ title: Bilder
5
+ description: Hantera bilder
6
+ admin:
7
+ images:
8
+ delete: Ta bort den här bilden för alltid
9
+ edit: Redigera den här bilden
10
+ form:
11
+ image: Bild
12
+ use_current_image: Använd denna bild
13
+ or: eller
14
+ replace_image: " ersätt den med den här..."
15
+ current_image: Denna bild
16
+ maximum_image_size: Maximal filstorlek för bilden är %{megabytes} megabytes.
17
+ index:
18
+ create_new_image: Ladda upp en bild
19
+ no_images_yet: Det finns inga bilder än. Klicka på "Ladda upp en bild" för att ladda upp en bild.
20
+ view:
21
+ switch_to: Byt till %{view_name} vyn
22
+ list: lista
23
+ grid: rutnät
24
+ grid_view:
25
+ view_live_html: Visa den här bilden <br/><em>Öppnas i nytt fönster</em>
26
+ existing_image:
27
+ button_text: Klistra in
28
+ resize_image: Ändra storlek på bilden?
29
+ size: Storlek
30
+ insert:
31
+ existing_image: Redan existerande bild
32
+ new_image: Ny bild
33
+ activerecord:
34
+ models:
35
+ image: bild
36
+ errors:
37
+ models:
38
+ image:
39
+ blank: Du måste ange en bild att ladda upp
40
+ too_long: Bilden ska vara mindre än %{count} stor
41
+ incorrect_format: 'Din bild måste vara antingen JPG, PNG eller GIF'
@@ -0,0 +1,41 @@
1
+ vi:
2
+ plugins:
3
+ refinery_images:
4
+ title: Hình ảnh
5
+ description: Quản lý các hình ảnh
6
+ admin:
7
+ images:
8
+ delete: Xóa ảnh này vĩnh viễn
9
+ edit: Sửa ảnh này
10
+ form:
11
+ image: Ảnh
12
+ use_current_image: Dùng ảnh hiện tại
13
+ or: hoặc
14
+ replace_image: " thay bằng ảnh khác..."
15
+ current_image: Ảnh hiện tại
16
+ maximum_image_size: Dung lượng ảnh tối đa là %{megabytes} megabytes.
17
+ index:
18
+ create_new_image: Tạo ảnh mới
19
+ no_images_yet: Hiện chưa có ảnh nào. Ấn vào "Tạo ảnh mới" để tạo ảnh.
20
+ view:
21
+ switch_to: Đổi sang kiểu xem %{view_name}
22
+ list: danh sách
23
+ grid: lưới
24
+ grid_view:
25
+ view_live_html: Xem ảnh này <br/><em>Mở trong cửa sổ mới</em>
26
+ existing_image:
27
+ button_text: Chèn
28
+ resize_image: Đổi kích thước ảnh?
29
+ size: Kích thước
30
+ insert:
31
+ existing_image: Thư viện
32
+ new_image: Tải lên
33
+ activerecord:
34
+ models:
35
+ image: ảnh
36
+ errors:
37
+ models:
38
+ image:
39
+ blank: Bạn phải chọn ảnh để tải lên
40
+ too_long: Ảnh phải có kích thước nhỏ hơn %{count}
41
+ incorrect_format: 'Ảnh phải ở một trong các định dạng JPG, PNG hoặc GIF'
@@ -0,0 +1,41 @@
1
+ zh-CN:
2
+ plugins:
3
+ refinery_images:
4
+ title: 图片
5
+ description: 图片管理
6
+ admin:
7
+ images:
8
+ delete: 永久删除此图片
9
+ edit: 编辑此图片
10
+ form:
11
+ image: 图片
12
+ use_current_image: 使用当前图片
13
+ or: 或
14
+ replace_image: " 使用这个去覆盖..."
15
+ current_image: 当前图片
16
+ maximum_image_size: 最大的图片大小为 %{megabytes} MB.
17
+ index:
18
+ create_new_image: 添加新图片
19
+ no_images_yet: 这里还没有图片. 点击 "添加新图片" 去添加您的第一张图片.
20
+ view:
21
+ switch_to: 切换到 %{view_name} 视图
22
+ list: 列表
23
+ grid: 表格
24
+ grid_view:
25
+ view_live_html: 查看此图片 <br/><em>新窗口打开</em>
26
+ existing_image:
27
+ button_text: 插入
28
+ resize_image: 调整图片尺寸?
29
+ size: 大小
30
+ insert:
31
+ existing_image: 图片库
32
+ new_image: 上传
33
+ activerecord:
34
+ models:
35
+ image: 图片
36
+ errors:
37
+ models:
38
+ image:
39
+ blank: 你必须选择一个图片来上传
40
+ too_long: 图片应该小于 %{count} 大小
41
+ incorrect_format: '你的图片必须是JPG, PNG 或者 GIF'
@@ -0,0 +1,41 @@
1
+ zh-TW:
2
+ plugins:
3
+ refinery_images:
4
+ title: 圖片
5
+ description: 管理圖片
6
+ admin:
7
+ images:
8
+ delete: 永遠地移除這張圖片
9
+ edit: 編輯圖片
10
+ form:
11
+ image: 圖片
12
+ use_current_image: 使用目前圖片
13
+ or: 或
14
+ replace_image: " 用這個來取代..."
15
+ current_image: 目前圖片
16
+ maximum_image_size: 圖片大小限制為 %{megabytes} MB.
17
+ index:
18
+ create_new_image: 新增圖片
19
+ no_images_yet: 目前沒有任何圖片. 點選 "新增圖片" 來加入您的第一張圖片.
20
+ view:
21
+ switch_to: 切換到%{view_name}模式
22
+ list: 列表
23
+ grid: 格狀
24
+ grid_view:
25
+ view_live_html: 瀏覽圖片 <br/><em>在新視窗中開啟</em>
26
+ existing_image:
27
+ button_text: 插入
28
+ resize_image: 調整圖片大小?
29
+ size: 大小
30
+ insert:
31
+ existing_image: 圖片庫
32
+ new_image: 上傳
33
+ activerecord:
34
+ models:
35
+ image: 圖片
36
+ errors:
37
+ models:
38
+ image:
39
+ blank: 您必須指定一張圖片來上傳
40
+ too_long: 圖片必須小於 %{count} 這個大小
41
+ incorrect_format: '您的圖片必須是 JPG, PNG 或是 GIF'