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 @@
1
+ <%= render :partial => "/admin/images/form" %>
@@ -0,0 +1,41 @@
1
+ cs:
2
+ plugins:
3
+ refinery_images:
4
+ title: Obrázky
5
+ description: Spravovat obrázky
6
+ admin:
7
+ images:
8
+ delete: Smazat tento obrázek
9
+ edit: Upravit tento obrázek
10
+ form:
11
+ image: Obrázek
12
+ use_current_image: Použít vybraný obrázek
13
+ or: nebo
14
+ replace_image: " nahradit jej tímto..."
15
+ current_image: Vybraný obrázek
16
+ maximum_image_size: Maximální velikost obrázku je %{megabytes} MB.
17
+ index:
18
+ create_new_image: Přidat nový obrázek
19
+ no_images_yet: Zatím nebyl nahraný žádný obrázek.
20
+ view:
21
+ switch_to: "Přepnout pohled na: %{view_name}"
22
+ list: seznam
23
+ grid: tabulka
24
+ grid_view:
25
+ view_live_html: Zobrazit tento obrázek <br/><em>Otevře se novém okně</em>
26
+ existing_image:
27
+ button_text: Vložit
28
+ resize_image: Změnít velikost?
29
+ size: Velikost
30
+ insert:
31
+ existing_image: Existující obrázek
32
+ new_image: Nový obrázek
33
+ activerecord:
34
+ models:
35
+ image: obrázek
36
+ errors:
37
+ models:
38
+ image:
39
+ blank: Musíte zadat obrázek který chcete nahrát
40
+ too_long: Maximální velikost obrázku je %{count}
41
+ incorrect_format: 'Obrázek musí být ve formátu JPG, PNG nebo GIF'
@@ -0,0 +1,41 @@
1
+ da:
2
+ plugins:
3
+ refinery_images:
4
+ title: Billeder
5
+ description: Vedligehold billeder
6
+ admin:
7
+ images:
8
+ delete: Slet billedet
9
+ edit: Redigér billede
10
+ form:
11
+ image: Billede
12
+ use_current_image: Behold nuværende billede
13
+ or: eller
14
+ replace_image: " erstat med dette..."
15
+ current_image: Nuværende billede
16
+ maximum_image_size: Billedet må maksimalt fylde %{megabytes} megabytes.
17
+ index:
18
+ create_new_image: Tilføj et nyt billede
19
+ no_images_yet: Der er ingen billeder endnu. Klik "Tilføj et nyt billede" for at oprette det første.
20
+ view:
21
+ switch_to: Skift til %{view_name}visning
22
+ list: liste
23
+ grid: gitter
24
+ grid_view:
25
+ view_live_html: Vis billede<br/><em>(åbner i nyt vindue)</em>
26
+ existing_image:
27
+ button_text: Indsæt
28
+ resize_image: Skalér billedet?
29
+ size: Størrelse
30
+ insert:
31
+ existing_image: Arkiv
32
+ new_image: Upload
33
+ activerecord:
34
+ models:
35
+ image: billede
36
+ errors:
37
+ models:
38
+ image:
39
+ blank: Du skal angive et billede, der skal uploades
40
+ too_long: Filer må højest være på %{count}
41
+ incorrect_format: 'Dit billede skal være enten JPG, PNG eller GIF format'
@@ -0,0 +1,41 @@
1
+ de:
2
+ plugins:
3
+ refinery_images:
4
+ title: Bilder
5
+ description: Verwaltet Bilder
6
+ admin:
7
+ images:
8
+ delete: Dieses Bild für immer löschen
9
+ edit: Dieses Bild bearbeiten
10
+ form:
11
+ image: Bild
12
+ use_current_image: Aktuelles Bild verwenden
13
+ or: oder
14
+ replace_image: " mit diesem ersetzen..."
15
+ current_image: Aktuelles Bild
16
+ maximum_image_size: Die maximale Größe eines Bildes beträgt %{megabytes} Megabytes.
17
+ index:
18
+ create_new_image: Neues Bild anlegen
19
+ no_images_yet: Es sind noch keine Bilder vorhanden. Klicken Sie auf "Neues Bild anlegen", um Ihr estes Bild hinzuzufügen.
20
+ view:
21
+ switch_to: Zur %{view_name}-Ansicht wechseln
22
+ list: Listen
23
+ grid: Gitter
24
+ grid_view:
25
+ view_live_html: Dieses Bild betrachten <br/><em>Öffnet sich in einem neuen Fenster</em>
26
+ existing_image:
27
+ button_text: Einfügen
28
+ resize_image: Bild in der Größe ändern?
29
+ size: Größe
30
+ insert:
31
+ existing_image: Vorhandenes Bild
32
+ new_image: Neues Bild
33
+ activerecord:
34
+ models:
35
+ image: Bild
36
+ errors:
37
+ models:
38
+ image:
39
+ blank: Sie müssen ein Bild zum Hochladen angeben
40
+ too_long: Bild sollte kleiner als %{count} sein
41
+ incorrect_format: 'Ihr Bild sollte ein JPG, PNG oder GIF sein'
@@ -0,0 +1,41 @@
1
+ el:
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: or
14
+ replace_image: " αλλαγή με αυτήν..."
15
+ current_image: Τρέχουσα εικόνα
16
+ maximum_image_size: Το μέγιστο μέγεθος εικόνας είναι %{megabytes} megabytes.
17
+ index:
18
+ create_new_image: Προσθήκη νέας εικόνας
19
+ no_images_yet: Δεν υπάρχουν εικόνες. Κάντε κλικ στο "Προσθήκη εικόνας" για να προσθέτε την πρώτη εικόνα.
20
+ view:
21
+ switch_to: Αλλαγή σε %{view_name} view
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
+ en:
2
+ plugins:
3
+ refinery_images:
4
+ title: Images
5
+ description: Manage images
6
+ admin:
7
+ images:
8
+ delete: Remove this image forever
9
+ edit: Edit this image
10
+ form:
11
+ image: Image
12
+ use_current_image: Use current image
13
+ or: or
14
+ replace_image: " replace it with this one..."
15
+ current_image: Current Image
16
+ maximum_image_size: The maximum image size is %{megabytes} megabytes.
17
+ index:
18
+ create_new_image: Add new image
19
+ no_images_yet: There are no images yet. Click "Add new image" to add your first image.
20
+ view:
21
+ switch_to: Switch to %{view_name} view
22
+ list: list
23
+ grid: grid
24
+ grid_view:
25
+ view_live_html: View this image <br/><em>Opens in a new window</em>
26
+ existing_image:
27
+ button_text: Insert
28
+ resize_image: Resize the image?
29
+ size: Size
30
+ insert:
31
+ existing_image: Library
32
+ new_image: Upload
33
+ activerecord:
34
+ models:
35
+ image: image
36
+ errors:
37
+ models:
38
+ image:
39
+ blank: You must specify an image for upload
40
+ too_long: Image should be smaller than %{count} in size
41
+ incorrect_format: 'Your image must be either a JPG, PNG or GIF'
@@ -0,0 +1,40 @@
1
+ es:
2
+ plugins:
3
+ refinery_images:
4
+ title: Imágenes
5
+ admin:
6
+ images:
7
+ delete: Borrar esta imagen para siempre
8
+ edit: Editar esta imagen
9
+ form:
10
+ image: Imagen
11
+ use_current_image: Usar imagen actual
12
+ or: o
13
+ replace_image: " reemplazarla con esta otra..."
14
+ current_image: Imagen actual
15
+ maximum_image_size: El peso máximo para una imagen son %{megabytes} megabytes.
16
+ index:
17
+ create_new_image: Crear nueva imagen
18
+ no_images_yet: Aún no hay imágenes. Haz click en "Crear nueva imagen" para añadir la primera.
19
+ view:
20
+ switch_to: Cambiar a vista %{view_name}
21
+ list: lista
22
+ grid: cuadrícula
23
+ grid_view:
24
+ view_live_html: Ver imagen <br/><em>Abre en ventana nueva</em>
25
+ existing_image:
26
+ button_text: Insertar
27
+ resize_image: ¿Redimensionar la imagen?
28
+ size: Tamaño
29
+ insert:
30
+ existing_image: Imagen existente
31
+ new_image: Nueva imagen
32
+ activerecord:
33
+ models:
34
+ image: imagen
35
+ errors:
36
+ models:
37
+ image:
38
+ blank: Debes indicar qué imagen quieres subir
39
+ too_long: La imagen debe pesar menos de %{count}
40
+ incorrect_format: Tu imagen debe ser un archivo JPG, PNG o GIF
@@ -0,0 +1,41 @@
1
+ fr:
2
+ plugins:
3
+ refinery_images:
4
+ title: Images
5
+ description: Gestion des images
6
+ admin:
7
+ images:
8
+ delete: Supprimer définitivement cette image
9
+ edit: Modifier cette image
10
+ form:
11
+ image: Image
12
+ use_current_image: Utiliser l'image actuelle
13
+ or: ou
14
+ replace_image: " la remplacer par celle-ci..."
15
+ current_image: Image actuelle
16
+ maximum_image_size: "La taille de l'image ne doit pas excéder %{megabytes} megaoctets."
17
+ index:
18
+ create_new_image: Ajouter une image
19
+ no_images_yet: "Il n'y a pas encore d'image. Cliquer sur 'Ajouter une image' pour en ajouter une."
20
+ view:
21
+ switch_to: Afficher sous forme de %{view_name}
22
+ list: liste
23
+ grid: grille
24
+ grid_view:
25
+ view_live_html: "Voir cette image<br/><em>Ouvre une nouvelle fenêtre</em>"
26
+ existing_image:
27
+ button_text: Insérer
28
+ resize_image: Redimensionner l'image ?
29
+ size: Taille
30
+ insert:
31
+ existing_image: Image existante
32
+ new_image: Nouvelle image
33
+ activerecord:
34
+ models:
35
+ image: image
36
+ errors:
37
+ models:
38
+ image:
39
+ blank: Vous devez sélectionner une image à télécharger
40
+ too_long: L'image doit être plus petite que %{count}
41
+ incorrect_format: 'Seules les images aux formats JPG, PNG or GIF sont acceptées'
@@ -0,0 +1,47 @@
1
+ it:
2
+ plugins:
3
+ refinery_images:
4
+ title: Immagine
5
+ description: Gestione immagini
6
+ admin:
7
+ images:
8
+ delete: Eliminare questa immagine per sempre
9
+ edit: Modifica questa immagine
10
+ form:
11
+ image: Immagine
12
+ use_current_image: Usa immagine corrente
13
+ or: o
14
+ replace_image: Sostituirlo con questo ...
15
+ current_image: Immagine corrente
16
+ maximum_image_size: "La dimensione massima per l'immagine è %{megabytes} megabytes."
17
+ index:
18
+ create_new_image: Crea nuova immagine
19
+ no_images_yet: Non ci sono ancora immagini. Fare clic su "Crea nuova immagine" per aggiungere la tua prima immagine.
20
+ view:
21
+ switch_to: Passare alla vista %{view_name}
22
+ list: lista
23
+ grid: griglia
24
+ grid_view:
25
+ edit: Modifica questa immagine
26
+ view_live_html: Visualizza questa immagine <br/><em>Apri in una nuova finestra</em>
27
+ existing_image:
28
+ button_text: Inserisci
29
+ resize_image: Ridimensionare l'immagine?
30
+ size: Dimensioni
31
+ list_view_image:
32
+ edit_this_image: Modifica questa immagine
33
+ insert:
34
+ existing_image: Immagine Esistente
35
+ new_image: Nuova immagine
36
+ previous: Precedente
37
+ next: Prossimo
38
+ submit_insert: Inserire
39
+ or: o
40
+ cancel: Annullare
41
+ activerecord:
42
+ errors:
43
+ models:
44
+ image:
45
+ blank: Devi scegliere un file da caricare
46
+ too_long: I file devono essere di dimensioni inferiori a %{count}
47
+ incorrect_format: L'immagine deve essere un JPG, PNG o GIF
@@ -0,0 +1,41 @@
1
+ lolcat:
2
+ plugins:
3
+ refinery_images:
4
+ title: IMAGEZ
5
+ description: MANAGE IMAGEZ
6
+ admin:
7
+ images:
8
+ delete: REMOOV DIS IMAGE FOREVR
9
+ edit: EDIT DIS IMAGE
10
+ form:
11
+ image: IMAGE
12
+ use_current_image: USE CURRENT IMAGE
13
+ or: OR
14
+ replace_image: " REPLACE IT WIF DIS WAN..."
15
+ current_image: CURRENT IMAGE
16
+ maximum_image_size: TEH MAXIMUM IMAGE SIZE IZ %{megabytes} MEGABYTEZ.
17
+ index:
18
+ create_new_image: ADD NEW IMAGE
19
+ no_images_yet: THAR R NO IMAGEZ YET. CLICK "ADD NEW IMAGE" 2 ADD UR FURST IMAGE.
20
+ view:
21
+ switch_to: SWITCH 2 %{view_name} VIEW
22
+ list: LIST
23
+ grid: GRID
24
+ grid_view:
25
+ view_live_html: VIEW DIS IMAGE <BR/><EM>OPENS IN NEW WINDOW</EM>
26
+ existing_image:
27
+ button_text: INSERT
28
+ resize_image: RESIZE TEH IMAGE?
29
+ size: SIZE
30
+ insert:
31
+ existing_image: EXISTIN IMAGE
32
+ new_image: NEW IMAGE
33
+ activerecord:
34
+ models:
35
+ image: IMAGE
36
+ errors:
37
+ models:
38
+ image:
39
+ blank: U MUST SPECIFY AN IMAGE 4 UPLOAD
40
+ too_long: IMAGE SHUD BE SMALLR THAN %{count} IN SIZE
41
+ incorrect_format: UR IMAGE MUST BE EITHR JPG, PNG OR GIF
@@ -0,0 +1,41 @@
1
+ lt:
2
+ plugins:
3
+ refinery_images:
4
+ title: Paveikslėliai
5
+ description: Valdyti paveikslėlius
6
+ admin:
7
+ images:
8
+ delete: Pašalinti paveikslėlį visam laikui
9
+ edit: Redaguoti paveikslėlį
10
+ form:
11
+ image: Paveikslėlis
12
+ use_current_image: Naudoti pasirinktą paveikslėlį
13
+ or: arba
14
+ replace_image: " pakeisti jį šiuo..."
15
+ current_image: Pasirinktas paveikslėlis
16
+ maximum_image_size: Maksimalus paveikslėlio dydis yra %{megabytes} megabaitų.
17
+ index:
18
+ create_new_image: Pridėti naują paveikslėlį
19
+ no_images_yet: Dar nėra paveikslėlių. Paspauskite "Pridėti naują paveikslėlį" norėdami sukurti jūsų pirmą paveikslėlį.
20
+ view:
21
+ switch_to: Persijungti į %{view_name} vaizdą
22
+ list: sąrašo
23
+ grid: tinklelio
24
+ grid_view:
25
+ view_live_html: Peržiūrėti paveikslėlį <br/><em>Atsirado naujame lange</em>
26
+ existing_image:
27
+ button_text: Pridėti
28
+ resize_image: Keisti paveikslėlio išmatavimus?
29
+ size: Dydis
30
+ insert:
31
+ existing_image: Egzistuojantis paveikslėlis
32
+ new_image: Naujas paveikslėlis
33
+ activerecord:
34
+ models:
35
+ image: paveikslėlis
36
+ errors:
37
+ models:
38
+ image:
39
+ blank: Turite nurodyti paveikslėlį įkėlimui
40
+ too_long: "Paveikslėlio dydis turėtų būti mažesnis, nei %{count}"
41
+ incorrect_format: 'Paveikslėlis turi būti JPG, PNG arba GIF formatu'
@@ -0,0 +1,41 @@
1
+ lv:
2
+ plugins:
3
+ refinery_images:
4
+ title: Bildes
5
+ article: s
6
+ description: Bilžu pārvaldīšana
7
+ admin:
8
+ images:
9
+ delete: Dzēst šo bildi
10
+ edit: Labot šo bildi
11
+ form:
12
+ use_current_image: Lietot pašreizējo bildi
13
+ or: vai
14
+ replace_image: " aizstāt to ar šo..."
15
+ current_image: Pašreizējā Bilde
16
+ maximum_image_size: Maksimāli pieļaujamais bildes izmērs ir %{megabytes} megabaiti.
17
+ index:
18
+ create_new_image: Augšupielādēt bildi
19
+ no_images_yet: Vēl nav nevienas bildes. Spied "Augšupielādēt bildi", lai ielādētu bildi.
20
+ view:
21
+ switch_to: Pārslēgt uz %{view_name} skatu
22
+ list: saraksta
23
+ grid: režģa
24
+ grid_view:
25
+ view_live_html: Skatīt šo bildi <br/><em>Atvērsies jaunā logā</em>
26
+ existing_image:
27
+ button_text: Ievietot
28
+ resize_image: Mainīt bildes izmērus?
29
+ size: Izmērs
30
+ insert:
31
+ existing_image: Esoša Bilde
32
+ new_image: Jauna Bilde
33
+ activerecord:
34
+ models:
35
+ image: bilde
36
+ errors:
37
+ models:
38
+ image:
39
+ blank: Jānorāda bilde pirms augšupielādes
40
+ too_long: Bildes izmēram jābūt mazākam par %{count}
41
+ incorrect_format: "Bilde drīkst būt tikai sekojošos formātos: JPG, PNG vai GIF"