refinerycms-6hoursdaily-photo-gallery 0.0.4.dev

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. data/Gemfile +27 -0
  2. data/LICENSE.md +8 -0
  3. data/README.md +224 -0
  4. data/app/assets/images/refinery/photo_gallery/admin/chosen-sprite.png +0 -0
  5. data/app/assets/images/refinery/photo_gallery/admin/icons/album.png +0 -0
  6. data/app/assets/images/refinery/photo_gallery/admin/icons/album_add.png +0 -0
  7. data/app/assets/images/refinery/photo_gallery/admin/icons/album_edit.png +0 -0
  8. data/app/assets/images/refinery/photo_gallery/admin/icons/cog.png +0 -0
  9. data/app/assets/images/refinery/photo_gallery/admin/icons/down.gif +0 -0
  10. data/app/assets/images/refinery/photo_gallery/admin/icons/folder.png +0 -0
  11. data/app/assets/images/refinery/photo_gallery/admin/icons/folder_add.png +0 -0
  12. data/app/assets/images/refinery/photo_gallery/admin/icons/folder_edit.png +0 -0
  13. data/app/assets/images/refinery/photo_gallery/admin/icons/loading.gif +0 -0
  14. data/app/assets/images/refinery/photo_gallery/admin/icons/page_copy.png +0 -0
  15. data/app/assets/images/refinery/photo_gallery/admin/icons/photo.png +0 -0
  16. data/app/assets/images/refinery/photo_gallery/admin/icons/photo_add.png +0 -0
  17. data/app/assets/images/refinery/photo_gallery/admin/icons/photo_edit.png +0 -0
  18. data/app/assets/images/refinery/photo_gallery/admin/icons/up.gif +0 -0
  19. data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/backgrounds.gif +0 -0
  20. data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/buttons-disabled.png +0 -0
  21. data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/buttons.png +0 -0
  22. data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/delete.gif +0 -0
  23. data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/done.gif +0 -0
  24. data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/error.gif +0 -0
  25. data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/throbber.gif +0 -0
  26. data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/transp50.png +0 -0
  27. data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.ui.plupload/plupload-bw.png +0 -0
  28. data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.ui.plupload/plupload.png +0 -0
  29. data/app/assets/images/refinery/photo_gallery/admin/rss-feed.png +0 -0
  30. data/app/assets/images/refinery/photo_gallery/fancybox/blank.gif +0 -0
  31. data/app/assets/images/refinery/photo_gallery/fancybox/fancybox_loading.gif +0 -0
  32. data/app/assets/images/refinery/photo_gallery/fancybox/fancybox_sprite.png +0 -0
  33. data/app/assets/images/refinery/photo_gallery/fancybox/helpers/fancybox_buttons.png +0 -0
  34. data/app/assets/javascripts/refinery/photo_gallery/admin/jquery.chosen.min.js +10 -0
  35. data/app/assets/javascripts/refinery/photo_gallery/admin/photo_gallery.js +28 -0
  36. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/changelog.txt +218 -0
  37. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/cs.js +14 -0
  38. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/da.js +12 -0
  39. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/de.js +24 -0
  40. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/el.js +14 -0
  41. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/es.js +25 -0
  42. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/et.js +33 -0
  43. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/fi.js +33 -0
  44. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/fr-ca.js +35 -0
  45. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/fr.js +25 -0
  46. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/hr.js +25 -0
  47. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/hu.js +33 -0
  48. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/it.js +24 -0
  49. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/ja.js +37 -0
  50. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/ko.js +36 -0
  51. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/lv.js +33 -0
  52. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/nl.js +21 -0
  53. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/pl.js +24 -0
  54. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/pt-br.js +35 -0
  55. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/ro.js +24 -0
  56. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/ru.js +21 -0
  57. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/sk.js +37 -0
  58. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/sr.js +14 -0
  59. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/sv.js +12 -0
  60. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/jquery.plupload.queue.js +195 -0
  61. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/jquery.ui.plupload.js +383 -0
  62. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/license.txt +339 -0
  63. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.browserplus.js +1 -0
  64. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.flash.js +226 -0
  65. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.flash.swf +0 -0
  66. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.full.js +2525 -0
  67. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.full.js.default +2525 -0
  68. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.gears.js +1 -0
  69. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.html4.js +1 -0
  70. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.html5.js +765 -0
  71. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.html5.js.default +765 -0
  72. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.js +618 -0
  73. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.silverlight.js +1 -0
  74. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.silverlight.xap +0 -0
  75. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/readme.md +46 -0
  76. data/app/assets/javascripts/refinery/photo_gallery/fancybox/CHANGELOG.md +68 -0
  77. data/app/assets/javascripts/refinery/photo_gallery/fancybox/README.md +212 -0
  78. data/app/assets/javascripts/refinery/photo_gallery/fancybox/helpers/jquery.fancybox-buttons.js +115 -0
  79. data/app/assets/javascripts/refinery/photo_gallery/fancybox/helpers/jquery.fancybox-media.js +85 -0
  80. data/app/assets/javascripts/refinery/photo_gallery/fancybox/helpers/jquery.fancybox-thumbs.js +157 -0
  81. data/app/assets/javascripts/refinery/photo_gallery/fancybox/jquery.fancybox.js +1463 -0
  82. data/app/assets/javascripts/refinery/photo_gallery/fancybox/jquery.fancybox.pack.js +35 -0
  83. data/app/assets/javascripts/refinery/photo_gallery/fancybox/lib/jquery.mousewheel-3.0.6.pack.js +13 -0
  84. data/app/assets/stylesheets/refinery/photo_gallery/admin/chosen.css.scss +396 -0
  85. data/app/assets/stylesheets/refinery/photo_gallery/admin/photo_gallery.css.scss +109 -0
  86. data/app/assets/stylesheets/refinery/photo_gallery/admin/plupload/jquery.plupload.queue.css.scss +177 -0
  87. data/app/assets/stylesheets/refinery/photo_gallery/admin/plupload/jquery.ui.plupload.css.scss +147 -0
  88. data/app/assets/stylesheets/refinery/photo_gallery/fancybox/helpers/jquery.fancybox-buttons.css.scss +85 -0
  89. data/app/assets/stylesheets/refinery/photo_gallery/fancybox/helpers/jquery.fancybox-thumbs.css +54 -0
  90. data/app/assets/stylesheets/refinery/photo_gallery/fancybox/jquery.fancybox.css.scss +234 -0
  91. data/app/controllers/refinery/photo_gallery/admin/albums_controller.rb +23 -0
  92. data/app/controllers/refinery/photo_gallery/admin/collections_controller.rb +10 -0
  93. data/app/controllers/refinery/photo_gallery/admin/photos_controller.rb +67 -0
  94. data/app/controllers/refinery/photo_gallery/albums_controller.rb +23 -0
  95. data/app/controllers/refinery/photo_gallery/collections_controller.rb +28 -0
  96. data/app/helpers/refinery/photo_gallery/admin/photos_helper.rb +10 -0
  97. data/app/helpers/refinery/photo_gallery/albums_helper.rb +11 -0
  98. data/app/helpers/refinery/photo_gallery/photo_gallery_helper.rb +113 -0
  99. data/app/middleware/refinery/photo_gallery/admin/flash_session_cookie_middleware.rb +27 -0
  100. data/app/models/refinery/photo_gallery/album.rb +63 -0
  101. data/app/models/refinery/photo_gallery/collection.rb +29 -0
  102. data/app/models/refinery/photo_gallery/collection_album.rb +8 -0
  103. data/app/models/refinery/photo_gallery/photo.rb +63 -0
  104. data/app/uploaders/refinery/photo_gallery/admin/file_uploader.rb +122 -0
  105. data/app/views/refinery/photo_gallery/admin/_submenu.html.erb +44 -0
  106. data/app/views/refinery/photo_gallery/admin/albums/_album.html.erb +31 -0
  107. data/app/views/refinery/photo_gallery/admin/albums/_form.html.erb +78 -0
  108. data/app/views/refinery/photo_gallery/admin/albums/_sortable_list.html.erb +7 -0
  109. data/app/views/refinery/photo_gallery/admin/albums/edit.html.erb +2 -0
  110. data/app/views/refinery/photo_gallery/admin/albums/index.html.erb +28 -0
  111. data/app/views/refinery/photo_gallery/admin/albums/new.html.erb +2 -0
  112. data/app/views/refinery/photo_gallery/admin/collections/_collection.html.erb +23 -0
  113. data/app/views/refinery/photo_gallery/admin/collections/_form.html.erb +32 -0
  114. data/app/views/refinery/photo_gallery/admin/collections/_sortable_list.html.erb +7 -0
  115. data/app/views/refinery/photo_gallery/admin/collections/edit.html.erb +2 -0
  116. data/app/views/refinery/photo_gallery/admin/collections/index.html.erb +28 -0
  117. data/app/views/refinery/photo_gallery/admin/collections/new.html.erb +2 -0
  118. data/app/views/refinery/photo_gallery/admin/collections/test.html.erb +39 -0
  119. data/app/views/refinery/photo_gallery/admin/photos/_destroy.js.erb +15 -0
  120. data/app/views/refinery/photo_gallery/admin/photos/_form.html.erb +7 -0
  121. data/app/views/refinery/photo_gallery/admin/photos/_form_actions.html.erb +6 -0
  122. data/app/views/refinery/photo_gallery/admin/photos/_form_fields.html.erb +31 -0
  123. data/app/views/refinery/photo_gallery/admin/photos/_form_fields_actions.html.erb +15 -0
  124. data/app/views/refinery/photo_gallery/admin/photos/edit_multiple.html.erb +9 -0
  125. data/app/views/refinery/photo_gallery/admin/photos/upload.html.erb +87 -0
  126. data/app/views/refinery/photo_gallery/albums/show.html.erb +49 -0
  127. data/app/views/refinery/photo_gallery/collections/index.html.erb +13 -0
  128. data/app/views/refinery/photo_gallery/collections/show.html.erb +33 -0
  129. data/app/views/refinery/photo_gallery/shared/_layout.html.erb +22 -0
  130. data/app/views/refinery/photo_gallery/shared/_submenu.html.erb +5 -0
  131. data/config/initializers/carrierwave.rb +5 -0
  132. data/config/initializers/form_builder.rb +26 -0
  133. data/config/initializers/refinery/core.rb +10 -0
  134. data/config/initializers/s3.rb +11 -0
  135. data/config/initializers/session_store.rb +10 -0
  136. data/config/locales/en.yml +95 -0
  137. data/config/locales/sk.yml +94 -0
  138. data/config/routes.rb +37 -0
  139. data/db/migrate/20120804063842_create_albums.rb +18 -0
  140. data/db/migrate/20120805131321_create_collections.rb +14 -0
  141. data/db/migrate/20120805131547_create_collection_albums.rb +12 -0
  142. data/db/migrate/20120805165238_create_photos.rb +19 -0
  143. data/db/migrate/20120805222125_add_indexes.rb +24 -0
  144. data/db/seeds.rb +21 -0
  145. data/lib/generators/refinery/photo_gallery_generator.rb +25 -0
  146. data/lib/generators/refinery/templates/config/initializers/refinery/photo_gallery.rb.erb +40 -0
  147. data/lib/refinery/photo_gallery/configuration.rb +33 -0
  148. data/lib/refinery/photo_gallery/engine.rb +33 -0
  149. data/lib/refinery/photo_gallery/version.rb +17 -0
  150. data/lib/refinery/photo_gallery.rb +30 -0
  151. data/lib/refinerycms-photo-gallery.rb +1 -0
  152. data/refinerycms-6hoursdaily-photo-gallery.gemspec +38 -0
  153. data/screenshots/01_collections#index.png +0 -0
  154. data/screenshots/02_albums#create.png +0 -0
  155. data/screenshots/03_photos#upload.png +0 -0
  156. data/screenshots/04_photos#upload- chooser.png +0 -0
  157. data/screenshots/05_photo#upoad-queue.png +0 -0
  158. data/screenshots/06_photos#upload-uploading.png +0 -0
  159. data/screenshots/07_photos#upload-uploading_2.png +0 -0
  160. data/screenshots/08_photos#edit_multiple.png +0 -0
  161. data/screenshots/09_albums#index.png +0 -0
  162. data/screenshots/10_albums_EXIF_reading.png +0 -0
  163. data/screenshots/11_frontend_show.png +0 -0
  164. data/screenshots/12_show_photo_using_fancybox.png +0 -0
  165. metadata +353 -0
@@ -0,0 +1,33 @@
1
+ // .lv file like language pack
2
+ plupload.addI18n({
3
+ 'Select files' : 'Izvēlieties failus',
4
+ 'Add files to the upload queue and click the start button.' : 'Pieveinojiet failus rindai un klikšķiniet uz "Sākt augšupielādi" pogas.',
5
+ 'Filename' : 'Faila nosaukums',
6
+ 'Status' : 'Statuss',
7
+ 'Size' : 'Izmērs',
8
+ 'Add files' : 'Pievienot failus',
9
+ 'Stop current upload' : 'Apturēt pašreizējo augšupielādi',
10
+ 'Start uploading queue' : 'Sākt augšupielādi',
11
+ 'Drag files here.' : 'Ievelciet failus šeit',
12
+ 'Start upload' : 'Sākt augšupielādi',
13
+ 'Uploaded %d/%d files': 'Augšupielādēti %d/%d faili',
14
+ 'Stop upload': 'Pārtraukt augšupielādi',
15
+ 'Start upload': 'Sākt augšupielādi',
16
+ '%d files queued': '%d faili pievienoti rindai',
17
+ 'File: %s': 'Fails: %s',
18
+ 'Close': 'Aizvērt',
19
+ 'Using runtime: ': 'Lieto saskarni: ',
20
+ 'File: %f, size: %s, max file size: %m': 'Fails: %f, izmērs: %s, maksimālais faila izmērs: %m',
21
+ 'Upload element accepts only %d file(s) at a time. Extra files were stripped.': 'Iespējams ielādēt tikai %d failus vienā reizē. Atlikušie faili netika pievienoti',
22
+ 'Upload URL might be wrong or doesn\'t exist': 'Augšupielādes URL varētu būt nepareizs vai neeksistē',
23
+ 'Error: File too large: ': 'Kļūda: Fails pārāk liels: ',
24
+ 'Error: Invalid file extension: ': 'Kļūda: Nekorekts faila paplašinājums:',
25
+ 'File extension error.': 'Faila paplašinājuma kļūda.',
26
+ 'File size error.': 'Faila izmēra kļūda.',
27
+ 'File count error.': 'Failu skaita kļūda',
28
+ 'Init error.': 'Inicializācijas kļūda.',
29
+ 'HTTP Error.': 'HTTP kļūda.',
30
+ 'Security error.': 'Drošības kļūda.',
31
+ 'Generic error.': 'Vispārēja rakstura kļūda.',
32
+ 'IO error.': 'Ievades/Izvades kļūda.'
33
+ });
@@ -0,0 +1,21 @@
1
+ // Dutch
2
+ plupload.addI18n({
3
+ 'Select files' : 'Selecteer bestand(en):',
4
+ 'Add files to the upload queue and click the start button.' : 'Voeg bestanden toe aan de wachtrij en druk op \'Start\'.',
5
+ 'Filename' : 'Bestandsnaam',
6
+ 'Status' : 'Status',
7
+ 'Size' : 'Grootte',
8
+ 'Add files' : 'Voeg bestanden toe',
9
+ 'Stop current upload' : 'Stop upload',
10
+ 'Start uploading queue' : 'Start upload',
11
+ 'Uploaded %d/%d files': '%d/%d bestanden ge-upload',
12
+ 'N/A' : 'Niet beschikbaar',
13
+ 'Drag files here.' : 'Sleep bestanden hierheen.',
14
+ 'File extension error.': 'Ongeldig bestandstype.',
15
+ 'File size error.': 'Bestandsgrootte Error.',
16
+ 'Init error.': 'Initialisatie error.',
17
+ 'HTTP Error.': 'HTTP Error.',
18
+ 'Security error.': 'Beveiliging error.',
19
+ 'Generic error.': 'Onbekende error.',
20
+ 'IO error.': 'IO error.'
21
+ });
@@ -0,0 +1,24 @@
1
+ plupload.addI18n({
2
+ 'Select files' : 'Wybierz pliki:',
3
+ 'Add files to the upload queue and click the start button.' : 'Dodaj pliki i kliknij \'Rozpocznij transfer\'.',
4
+ 'Filename' : 'Nazwa pliku',
5
+ 'Status' : 'Status',
6
+ 'Size' : 'Rozmiar',
7
+ 'Add files' : 'Dodaj pliki',
8
+ 'Stop current upload' : 'Przerwij aktualny transfer',
9
+ 'Start uploading queue' : 'Rozpocznij wysyłanie',
10
+ 'Uploaded %d/%d files': 'Wysłano %d/%d plików',
11
+ 'N/A' : 'Nie dostępne',
12
+ 'Drag files here.' : 'Przeciągnij tu pliki',
13
+ 'File extension error.': 'Nieobsługiwany format pliku.',
14
+ 'File size error.': 'Plik jest zbyt duży.',
15
+ 'Init error.': 'Błąd inicjalizacji.',
16
+ 'HTTP Error.': 'Błąd HTTP.',
17
+ 'Security error.': 'Błąd bezpieczeństwa.',
18
+ 'Generic error.': 'Błąd ogólny.',
19
+ 'IO error.': 'Błąd IO.',
20
+ 'Stop Upload': 'Przerwij transfer.',
21
+ 'Add Files': 'Dodaj pliki',
22
+ 'Start upload': 'Rozpocznij transfer.',
23
+ '%d files queued': '%d plików w kolejce.'
24
+ });
@@ -0,0 +1,35 @@
1
+ // Brazilian Portuguese
2
+ plupload.addI18n({
3
+ 'Select files' : 'Escolha os arquivos',
4
+ 'Add files to the upload queue and click the start button.' : 'Adicione os arquivos abaixo e clique no botão "Iniciar o envio".',
5
+ 'Filename' : 'Nome do arquivo',
6
+ 'Status' : 'Status',
7
+ 'Size' : 'Tamanho',
8
+ 'Add Files' : 'Adicionar arquivo(s)',
9
+ 'Stop Upload' : 'Parar o envio',
10
+ 'Start Upload' : 'Iniciar o envio',
11
+ 'Add files' : 'Adicionar arquivo(s)',
12
+ 'Add files.' : 'Adicionar arquivo(s)',
13
+ 'Stop upload' : 'Parar o envio',
14
+ 'Start upload' : 'Iniciar o envio',
15
+ 'Uploaded %d/%d files': 'Enviado(s) %d/%d arquivo(s)',
16
+ 'N/A' : 'N/D',
17
+ 'Drag files here.' : 'Arraste os arquivos pra cá',
18
+ 'File extension error.': 'Tipo de arquivo não permitido.',
19
+ 'File size error.': 'Tamanho de arquivo não permitido.',
20
+ 'File count error.': 'Erro na contagem dos arquivos',
21
+ 'Init error.': 'Erro inicializando.',
22
+ 'HTTP Error.': 'Erro HTTP.',
23
+ 'Security error.': 'Erro de segurança.',
24
+ 'Generic error.': 'Erro genérico.',
25
+ 'IO error.': 'Erro de E/S.',
26
+ 'File: %s': 'Arquivo: %s',
27
+ 'Close': 'Fechar',
28
+ '%d files queued': '%d arquivo(s)',
29
+ 'Using runtime: ': 'Usando: ',
30
+ 'File: %f, size: %s, max file size: %m': 'Arquivo: %f, tamanho: %s, máximo: %m',
31
+ 'Upload element accepts only %d file(s) at a time. Extra files were stripped.': 'Só são aceitos %d arquivos por vez. O que passou disso foi descartado.',
32
+ 'Upload URL might be wrong or doesn\'t exist': 'URL de envio está errada ou não existe',
33
+ 'Error: File too large: ': 'Erro: Arquivo muito grande: ',
34
+ 'Error: Invalid file extension: ': 'Erro: Tipo de arquivo não permitido: '
35
+ });
@@ -0,0 +1,24 @@
1
+ // Romanian
2
+ plupload.addI18n({
3
+ 'Select files' : 'Selectare fişiere',
4
+ 'Add files to the upload queue and click the start button.' : 'Adaugă fişiere în lista apoi apasă butonul \'Începe încărcare\'.',
5
+ 'Filename' : 'Nume fişier',
6
+ 'Status' : 'Stare',
7
+ 'Size' : 'Mărime',
8
+ 'Add files' : 'Adăugare fişiere',
9
+ 'Stop current upload' : 'Întrerupe încărcarea curentă',
10
+ 'Start uploading queue' : 'Începe incărcarea',
11
+ 'Uploaded %d/%d files': 'Fişiere încărcate %d/%d',
12
+ 'N/A' : 'N/A',
13
+ 'Drag files here.' : 'Trage aici fişierele',
14
+ 'File extension error.': 'Extensie fişier eronată',
15
+ 'File size error.': 'Eroare dimensiune fişier',
16
+ 'Init error.': 'Eroare iniţializare',
17
+ 'HTTP Error.': 'Eroare HTTP',
18
+ 'Security error.': 'Eroare securitate',
19
+ 'Generic error.': 'Eroare generică',
20
+ 'IO error.': 'Eroare Intrare/Ieşire',
21
+ 'Stop Upload': 'Oprire încărcare',
22
+ 'Start upload': 'Începe încărcare',
23
+ '%d files queued': '%d fişiere listate'
24
+ });
@@ -0,0 +1,21 @@
1
+ // Russian
2
+ plupload.addI18n({
3
+ 'Select files' : 'Выберите файлы',
4
+ 'Add files to the upload queue and click the start button.' : 'Добавьте файлы в очередь и нажмите кнопку "Загрузить файлы".',
5
+ 'Filename' : 'Имя файла',
6
+ 'Status' : 'Статус',
7
+ 'Size' : 'Размер',
8
+ 'Add files' : 'Добавить файлы',
9
+ 'Stop current upload' : 'Остановить загрузку',
10
+ 'Start uploading queue' : 'Загрузить файлы',
11
+ 'Uploaded %d/%d files': 'Загружено %d из %d файлов',
12
+ 'N/A' : 'N/D',
13
+ 'Drag files here.' : 'Перетащите файлы сюда.',
14
+ 'File extension error.': 'Неправильное расширение файла.',
15
+ 'File size error.': 'Неправильный размер файла.',
16
+ 'Init error.': 'Ошибка инициализации.',
17
+ 'HTTP Error.': 'Ошибка HTTP.',
18
+ 'Security error.': 'Ошибка безопасности.',
19
+ 'Generic error.': 'Общая ошибка.',
20
+ 'IO error.': 'Ошибка ввода-вывода.'
21
+ });
@@ -0,0 +1,37 @@
1
+ // .po file like language pack
2
+ plupload.addI18n({
3
+ 'Select files' : 'Vyberte súbory',
4
+ 'Add files to the upload queue and click the start button.' : 'Pridajte súbory do frontu nahrávania a kliknite spustiť nahrávanie.',
5
+ 'Filename' : 'Názov súboru',
6
+ 'Status' : 'Stav',
7
+ 'Size' : 'Veľkosť',
8
+ 'Add files' : 'Pridať súbory',
9
+ 'Start upload': 'Spustiť nahrávanie',
10
+ 'Stop Upload': 'Zastaviť nahrávanie.',
11
+ 'Drag files here.' : 'Sem pretiahnite súbory.',
12
+ 'Uploaded %d/%d files': 'Nahraných súborov: %d/%d ',
13
+ 'Error: File too large: ': 'Chyba: Súbor je príliš veľký.',
14
+ 'Error: Invalid file extension: ': 'Chyba: Nesprávna prípona súboru',
15
+ 'Stop current upload' : 'Zastaviť prebiehajúce nahrávanie',
16
+ 'Start uploading queue' : 'Spustiť nahrávanie frontu',
17
+ 'Using runtime:': 'Pomocou ',
18
+ 'N/A' : 'Nie je k dispozícii',
19
+ 'File extension error.': 'Nesprávna prípona súboru.',
20
+ 'File size error.': 'Nesprávna veľkosť súboru.',
21
+ 'Init error.': 'Chyba počas inicializácie',
22
+ 'HTTP Error.': 'HTTP chyba.',
23
+ 'Security error.': 'Chyba zabezpečenia.',
24
+ 'Generic error.': 'Všeobecná chyba.',
25
+ 'IO error.': 'Vstupno - výstupná chyba.',
26
+ '%d files queued': '%d súborov čakajúcich vo fronte.',
27
+ 'File: %s': 'Súbor: %s',
28
+ 'File: %f, size: %s, max file size: %m': 'Súbor: % f, veľkosť: % s, maximálna veľkosť súboru: % m',
29
+ 'Upload element accepts only % d file (s) at a time. Extra files were stripped': 'Naraz môžete nahrávať iba % d súborov. Ostatné súbory boli vynechané.',
30
+ 'Upload URL might be wrong or doesn \'t exist ':'Adresa nahrávanie je asi nesprávna, alebo neexistujúca.',
31
+
32
+ 'File count error.': 'File count error.',
33
+ 'Image format either wrong or not supported.': 'Image format either wrong or not supported.',
34
+ 'Runtime ran out of available memory.': 'Image format either wrong or not supported.',
35
+ 'Resoultion out of boundaries! <b>%s</b> runtime supports images only up to %wx%hpx.': 'Image format either wrong or not supported.',
36
+
37
+ });
@@ -0,0 +1,14 @@
1
+ // Serbian
2
+ plupload.addI18n({
3
+ 'Select files' : 'Izaberite fajlove',
4
+ 'Add files to the upload queue and click the start button.' : 'Dodajte fajlove u listu i kliknite na dugme Start.',
5
+ 'Filename' : 'Naziv fajla',
6
+ 'Status' : 'Status',
7
+ 'Size' : 'Veličina',
8
+ 'Add Files' : 'Dodaj fajlove',
9
+ 'Stop current upload' : 'Zaustavi upload',
10
+ 'Start uploading queue' : 'Počni upload',
11
+ 'Drag files here.' : 'Prevucite fajlove ovde.',
12
+ 'Start Upload': 'Počni upload',
13
+ 'Uploaded %d/%d files': 'Snimljeno %d/%d fajlova'
14
+ });
@@ -0,0 +1,12 @@
1
+ // .po file like language pack
2
+ plupload.addI18n({
3
+ 'Select files' : 'Välj filer',
4
+ 'Add files to the upload queue and click the start button.' : 'Lägg till filer till kön och tryck på start.',
5
+ 'Filename' : 'Filnamn',
6
+ 'Status' : 'Status',
7
+ 'Size' : 'Storlek',
8
+ 'Add files' : 'Lägg till filer',
9
+ 'Stop current upload' : 'Stoppa uppladdningen',
10
+ 'Start uploading queue' : 'Starta uppladdningen',
11
+ 'Drag files here.' : 'Dra filer hit'
12
+ });
@@ -0,0 +1,195 @@
1
+ (function (c) {
2
+ var d = {};
3
+
4
+ function a(e) {
5
+ return plupload.translate(e) || e
6
+ }
7
+
8
+ function b(f, e) {
9
+ e.contents().each(function (g, h) {
10
+ h = c(h);
11
+ if (!h.is(".plupload")) {
12
+ h.remove()
13
+ }
14
+ });
15
+ e.prepend('<div class="plupload_wrapper plupload_scroll"><div id="' + f + '_container" class="plupload_container"><div class="plupload"><div class="plupload_header"><div class="plupload_header_content"><div class="plupload_header_title">' + a("Select files") + '</div><div class="plupload_header_text">' + a("Add files to the upload queue and click the start button.") + '</div></div></div><div class="plupload_content"><div class="plupload_filelist_header"><div class="plupload_file_name">' + a("Filename") + '</div><div class="plupload_file_action">&nbsp;</div><div class="plupload_file_status"><span>' + a("Status") + '</span></div><div class="plupload_file_size">' + a("Size") + '</div><div class="plupload_clearer">&nbsp;</div></div><ul id="' + f + '_filelist" class="plupload_filelist"></ul><div class="plupload_filelist_footer"><div class="plupload_file_name"><div class="plupload_buttons"><a href="#" class="plupload_button plupload_add">' + a("Add files") + '</a><a href="#" class="plupload_button plupload_start">' + a("Start upload") + '</a></div><span class="plupload_upload_status"></span></div><div class="plupload_file_action"></div><div class="plupload_file_status"><span class="plupload_total_status">0%</span></div><div class="plupload_file_size"><span class="plupload_total_file_size">0 b</span></div><div class="plupload_progress"><div class="plupload_progress_container"><div class="plupload_progress_bar"></div></div></div><div class="plupload_clearer">&nbsp;</div></div></div></div></div><input type="hidden" id="' + f + '_count" name="' + f + '_count" value="0" /></div>')
16
+ }
17
+
18
+ c.fn.pluploadQueue = function (e) {
19
+ if (e) {
20
+ this.each(function () {
21
+ var j, i, k;
22
+ i = c(this);
23
+ k = i.attr("id");
24
+ if (!k) {
25
+ k = plupload.guid();
26
+ i.attr("id", k)
27
+ }
28
+ j = new plupload.Uploader(c.extend({dragdrop:true, container:k}, e));
29
+ d[k] = j;
30
+ function h(l) {
31
+ var n;
32
+ if (l.status == plupload.DONE) {
33
+ n = "plupload_done"
34
+ }
35
+ if (l.status == plupload.FAILED) {
36
+ n = "plupload_failed"
37
+ }
38
+ if (l.status == plupload.QUEUED) {
39
+ n = "plupload_delete"
40
+ }
41
+ if (l.status == plupload.UPLOADING) {
42
+ n = "plupload_uploading"
43
+ }
44
+ var m = c("#" + l.id).attr("class", n).find("a").css("display", "block");
45
+ if (l.hint) {
46
+ m.attr("title", l.hint)
47
+ }
48
+ }
49
+
50
+ function f() {
51
+ c("span.plupload_total_status", i).html(j.total.percent + "%");
52
+ c("div.plupload_progress_bar", i).css("width", j.total.percent + "%");
53
+ c("span.plupload_upload_status", i).text(a("Uploaded %d/%d files").replace(/%d\/%d/, j.total.uploaded + "/" + j.files.length))
54
+ }
55
+
56
+ function g() {
57
+ var m = c("ul.plupload_filelist", i).html(""), n = 0, l;
58
+ c.each(j.files, function (p, o) {
59
+ l = "";
60
+ if (o.status == plupload.DONE) {
61
+ if (o.target_name) {
62
+ l += '<input type="hidden" name="' + k + "_" + n + '_tmpname" value="' + plupload.xmlEncode(o.target_name) + '" />'
63
+ }
64
+ l += '<input type="hidden" name="' + k + "_" + n + '_name" value="' + plupload.xmlEncode(o.name) + '" />';
65
+ l += '<input type="hidden" name="' + k + "_" + n + '_status" value="' + (o.status == plupload.DONE ? "done" : "failed") + '" />';
66
+ n++;
67
+ c("#" + k + "_count").val(n)
68
+ }
69
+ m.append('<li id="' + o.id + '"><div class="plupload_file_name"><span>' + o.name + '</span></div><div class="plupload_file_action"><a href="#"></a></div><div class="plupload_file_status">' + o.percent + '%</div><div class="plupload_file_size">' + plupload.formatSize(o.size) + '</div><div class="plupload_clearer">&nbsp;</div>' + l + "</li>");
70
+ h(o);
71
+ c("#" + o.id + ".plupload_delete a").click(function (q) {
72
+ c("#" + o.id).remove();
73
+ j.removeFile(o);
74
+ q.preventDefault()
75
+ })
76
+ });
77
+ c("span.plupload_total_file_size", i).html(plupload.formatSize(j.total.size));
78
+ if (j.total.queued === 0) {
79
+ c("span.plupload_add_text", i).text(a("Add files."))
80
+ } else {
81
+ c("span.plupload_add_text", i).text(j.total.queued + " files queued.")
82
+ }
83
+ c("a.plupload_start", i).toggleClass("plupload_disabled", j.files.length == (j.total.uploaded + j.total.failed));
84
+ m[0].scrollTop = m[0].scrollHeight;
85
+ f();
86
+ if (!j.files.length && j.features.dragdrop && j.settings.dragdrop) {
87
+ c("#" + k + "_filelist").append('<li class="plupload_droptext">' + a("Drag files here.") + "</li>")
88
+ }
89
+ }
90
+
91
+ j.bind("UploadFile", function (l, m) {
92
+ c("#" + m.id).addClass("plupload_current_file")
93
+ });
94
+ j.bind("Init", function (l, m) {
95
+ b(k, i);
96
+ if (!e.unique_names && e.rename) {
97
+ c("#" + k + "_filelist div.plupload_file_name span", i).live("click", function (s) {
98
+ var q = c(s.target), o, r, n, p = "";
99
+ o = l.getFile(q.parents("li")[0].id);
100
+ n = o.name;
101
+ r = /^(.+)(\.[^.]+)$/.exec(n);
102
+ if (r) {
103
+ n = r[1];
104
+ p = r[2]
105
+ }
106
+ q.hide().after('<input type="text" />');
107
+ q.next().val(n).focus().blur(
108
+ function () {
109
+ q.show().next().remove()
110
+ }).keydown(function (u) {
111
+ var t = c(this);
112
+ if (u.keyCode == 13) {
113
+ u.preventDefault();
114
+ o.name = t.val() + p;
115
+ q.text(o.name);
116
+ t.blur()
117
+ }
118
+ })
119
+ })
120
+ }
121
+ c("a.plupload_add", i).attr("id", k + "_browse");
122
+ l.settings.browse_button = k + "_browse";
123
+ if (l.features.dragdrop && l.settings.dragdrop) {
124
+ l.settings.drop_element = k + "_filelist";
125
+ c("#" + k + "_filelist").append('<li class="plupload_droptext">' + a("Drag files here.") + "</li>")
126
+ }
127
+ c("#" + k + "_container").attr("title", "Using runtime: " + m.runtime);
128
+ c("a.plupload_start", i).click(function (n) {
129
+ if (!c(this).hasClass("plupload_disabled")) {
130
+ j.start()
131
+ }
132
+ n.preventDefault()
133
+ });
134
+ c("a.plupload_stop", i).click(function (n) {
135
+ n.preventDefault();
136
+ j.stop()
137
+ });
138
+ c("a.plupload_start", i).addClass("plupload_disabled")
139
+ });
140
+ j.init();
141
+ j.bind("Error", function (l, o) {
142
+ var m = o.file, n;
143
+ if (m) {
144
+ n = o.message;
145
+ if (o.details) {
146
+ n += " (" + o.details + ")"
147
+ }
148
+ if (o.code == plupload.FILE_SIZE_ERROR) {
149
+ alert(a("Error: File too large: ") + m.name)
150
+ }
151
+ if (o.code == plupload.FILE_EXTENSION_ERROR) {
152
+ alert(a("Error: Invalid file extension: ") + m.name)
153
+ }
154
+ m.hint = n;
155
+ c("#" + m.id).attr("class", "plupload_failed").find("a").css("display", "block").attr("title", n)
156
+ }
157
+ });
158
+ j.bind("StateChanged", function () {
159
+ if (j.state === plupload.STARTED) {
160
+ c("li.plupload_delete a,div.plupload_buttons", i).hide();
161
+ c("span.plupload_upload_status,div.plupload_progress,a.plupload_stop", i).css("display", "block");
162
+ c("span.plupload_upload_status", i).text("Uploaded " + j.total.uploaded + "/" + j.files.length + " files");
163
+ if (e.multiple_queues) {
164
+ c("span.plupload_total_status,span.plupload_total_file_size", i).show()
165
+ }
166
+ } else {
167
+ g();
168
+ c("a.plupload_stop,div.plupload_progress", i).hide();
169
+ c("a.plupload_delete", i).css("display", "block")
170
+ }
171
+ });
172
+ j.bind("QueueChanged", g);
173
+ j.bind("FileUploaded", function (l, m) {
174
+ h(m)
175
+ });
176
+ j.bind("UploadProgress", function (l, m) {
177
+ c("#" + m.id + " div.plupload_file_status", i).html(m.percent + "%");
178
+ h(m);
179
+ f();
180
+ if (e.multiple_queues && j.total.uploaded + j.total.failed == j.files.length) {
181
+ c(".plupload_buttons,.plupload_upload_status", i).css("display", "inline");
182
+ c(".plupload_start", i).addClass("plupload_disabled");
183
+ c("span.plupload_total_status,span.plupload_total_file_size", i).hide()
184
+ }
185
+ });
186
+ if (e.setup) {
187
+ e.setup(j)
188
+ }
189
+ });
190
+ return this
191
+ } else {
192
+ return d[c(this[0]).attr("id")]
193
+ }
194
+ }
195
+ })(jQuery);