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.
- data/Gemfile +27 -0
- data/LICENSE.md +8 -0
- data/README.md +224 -0
- data/app/assets/images/refinery/photo_gallery/admin/chosen-sprite.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/album.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/album_add.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/album_edit.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/cog.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/down.gif +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/folder.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/folder_add.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/folder_edit.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/loading.gif +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/page_copy.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/photo.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/photo_add.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/photo_edit.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/up.gif +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/backgrounds.gif +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/buttons-disabled.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/buttons.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/delete.gif +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/done.gif +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/error.gif +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/throbber.gif +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/transp50.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.ui.plupload/plupload-bw.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.ui.plupload/plupload.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/rss-feed.png +0 -0
- data/app/assets/images/refinery/photo_gallery/fancybox/blank.gif +0 -0
- data/app/assets/images/refinery/photo_gallery/fancybox/fancybox_loading.gif +0 -0
- data/app/assets/images/refinery/photo_gallery/fancybox/fancybox_sprite.png +0 -0
- data/app/assets/images/refinery/photo_gallery/fancybox/helpers/fancybox_buttons.png +0 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/jquery.chosen.min.js +10 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/photo_gallery.js +28 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/changelog.txt +218 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/cs.js +14 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/da.js +12 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/de.js +24 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/el.js +14 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/es.js +25 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/et.js +33 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/fi.js +33 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/fr-ca.js +35 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/fr.js +25 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/hr.js +25 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/hu.js +33 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/it.js +24 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/ja.js +37 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/ko.js +36 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/lv.js +33 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/nl.js +21 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/pl.js +24 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/pt-br.js +35 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/ro.js +24 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/ru.js +21 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/sk.js +37 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/sr.js +14 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/sv.js +12 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/jquery.plupload.queue.js +195 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/jquery.ui.plupload.js +383 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/license.txt +339 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.browserplus.js +1 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.flash.js +226 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.flash.swf +0 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.full.js +2525 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.full.js.default +2525 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.gears.js +1 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.html4.js +1 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.html5.js +765 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.html5.js.default +765 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.js +618 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.silverlight.js +1 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.silverlight.xap +0 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/readme.md +46 -0
- data/app/assets/javascripts/refinery/photo_gallery/fancybox/CHANGELOG.md +68 -0
- data/app/assets/javascripts/refinery/photo_gallery/fancybox/README.md +212 -0
- data/app/assets/javascripts/refinery/photo_gallery/fancybox/helpers/jquery.fancybox-buttons.js +115 -0
- data/app/assets/javascripts/refinery/photo_gallery/fancybox/helpers/jquery.fancybox-media.js +85 -0
- data/app/assets/javascripts/refinery/photo_gallery/fancybox/helpers/jquery.fancybox-thumbs.js +157 -0
- data/app/assets/javascripts/refinery/photo_gallery/fancybox/jquery.fancybox.js +1463 -0
- data/app/assets/javascripts/refinery/photo_gallery/fancybox/jquery.fancybox.pack.js +35 -0
- data/app/assets/javascripts/refinery/photo_gallery/fancybox/lib/jquery.mousewheel-3.0.6.pack.js +13 -0
- data/app/assets/stylesheets/refinery/photo_gallery/admin/chosen.css.scss +396 -0
- data/app/assets/stylesheets/refinery/photo_gallery/admin/photo_gallery.css.scss +109 -0
- data/app/assets/stylesheets/refinery/photo_gallery/admin/plupload/jquery.plupload.queue.css.scss +177 -0
- data/app/assets/stylesheets/refinery/photo_gallery/admin/plupload/jquery.ui.plupload.css.scss +147 -0
- data/app/assets/stylesheets/refinery/photo_gallery/fancybox/helpers/jquery.fancybox-buttons.css.scss +85 -0
- data/app/assets/stylesheets/refinery/photo_gallery/fancybox/helpers/jquery.fancybox-thumbs.css +54 -0
- data/app/assets/stylesheets/refinery/photo_gallery/fancybox/jquery.fancybox.css.scss +234 -0
- data/app/controllers/refinery/photo_gallery/admin/albums_controller.rb +23 -0
- data/app/controllers/refinery/photo_gallery/admin/collections_controller.rb +10 -0
- data/app/controllers/refinery/photo_gallery/admin/photos_controller.rb +67 -0
- data/app/controllers/refinery/photo_gallery/albums_controller.rb +23 -0
- data/app/controllers/refinery/photo_gallery/collections_controller.rb +28 -0
- data/app/helpers/refinery/photo_gallery/admin/photos_helper.rb +10 -0
- data/app/helpers/refinery/photo_gallery/albums_helper.rb +11 -0
- data/app/helpers/refinery/photo_gallery/photo_gallery_helper.rb +113 -0
- data/app/middleware/refinery/photo_gallery/admin/flash_session_cookie_middleware.rb +27 -0
- data/app/models/refinery/photo_gallery/album.rb +63 -0
- data/app/models/refinery/photo_gallery/collection.rb +29 -0
- data/app/models/refinery/photo_gallery/collection_album.rb +8 -0
- data/app/models/refinery/photo_gallery/photo.rb +63 -0
- data/app/uploaders/refinery/photo_gallery/admin/file_uploader.rb +122 -0
- data/app/views/refinery/photo_gallery/admin/_submenu.html.erb +44 -0
- data/app/views/refinery/photo_gallery/admin/albums/_album.html.erb +31 -0
- data/app/views/refinery/photo_gallery/admin/albums/_form.html.erb +78 -0
- data/app/views/refinery/photo_gallery/admin/albums/_sortable_list.html.erb +7 -0
- data/app/views/refinery/photo_gallery/admin/albums/edit.html.erb +2 -0
- data/app/views/refinery/photo_gallery/admin/albums/index.html.erb +28 -0
- data/app/views/refinery/photo_gallery/admin/albums/new.html.erb +2 -0
- data/app/views/refinery/photo_gallery/admin/collections/_collection.html.erb +23 -0
- data/app/views/refinery/photo_gallery/admin/collections/_form.html.erb +32 -0
- data/app/views/refinery/photo_gallery/admin/collections/_sortable_list.html.erb +7 -0
- data/app/views/refinery/photo_gallery/admin/collections/edit.html.erb +2 -0
- data/app/views/refinery/photo_gallery/admin/collections/index.html.erb +28 -0
- data/app/views/refinery/photo_gallery/admin/collections/new.html.erb +2 -0
- data/app/views/refinery/photo_gallery/admin/collections/test.html.erb +39 -0
- data/app/views/refinery/photo_gallery/admin/photos/_destroy.js.erb +15 -0
- data/app/views/refinery/photo_gallery/admin/photos/_form.html.erb +7 -0
- data/app/views/refinery/photo_gallery/admin/photos/_form_actions.html.erb +6 -0
- data/app/views/refinery/photo_gallery/admin/photos/_form_fields.html.erb +31 -0
- data/app/views/refinery/photo_gallery/admin/photos/_form_fields_actions.html.erb +15 -0
- data/app/views/refinery/photo_gallery/admin/photos/edit_multiple.html.erb +9 -0
- data/app/views/refinery/photo_gallery/admin/photos/upload.html.erb +87 -0
- data/app/views/refinery/photo_gallery/albums/show.html.erb +49 -0
- data/app/views/refinery/photo_gallery/collections/index.html.erb +13 -0
- data/app/views/refinery/photo_gallery/collections/show.html.erb +33 -0
- data/app/views/refinery/photo_gallery/shared/_layout.html.erb +22 -0
- data/app/views/refinery/photo_gallery/shared/_submenu.html.erb +5 -0
- data/config/initializers/carrierwave.rb +5 -0
- data/config/initializers/form_builder.rb +26 -0
- data/config/initializers/refinery/core.rb +10 -0
- data/config/initializers/s3.rb +11 -0
- data/config/initializers/session_store.rb +10 -0
- data/config/locales/en.yml +95 -0
- data/config/locales/sk.yml +94 -0
- data/config/routes.rb +37 -0
- data/db/migrate/20120804063842_create_albums.rb +18 -0
- data/db/migrate/20120805131321_create_collections.rb +14 -0
- data/db/migrate/20120805131547_create_collection_albums.rb +12 -0
- data/db/migrate/20120805165238_create_photos.rb +19 -0
- data/db/migrate/20120805222125_add_indexes.rb +24 -0
- data/db/seeds.rb +21 -0
- data/lib/generators/refinery/photo_gallery_generator.rb +25 -0
- data/lib/generators/refinery/templates/config/initializers/refinery/photo_gallery.rb.erb +40 -0
- data/lib/refinery/photo_gallery/configuration.rb +33 -0
- data/lib/refinery/photo_gallery/engine.rb +33 -0
- data/lib/refinery/photo_gallery/version.rb +17 -0
- data/lib/refinery/photo_gallery.rb +30 -0
- data/lib/refinerycms-photo-gallery.rb +1 -0
- data/refinerycms-6hoursdaily-photo-gallery.gemspec +38 -0
- data/screenshots/01_collections#index.png +0 -0
- data/screenshots/02_albums#create.png +0 -0
- data/screenshots/03_photos#upload.png +0 -0
- data/screenshots/04_photos#upload- chooser.png +0 -0
- data/screenshots/05_photo#upoad-queue.png +0 -0
- data/screenshots/06_photos#upload-uploading.png +0 -0
- data/screenshots/07_photos#upload-uploading_2.png +0 -0
- data/screenshots/08_photos#edit_multiple.png +0 -0
- data/screenshots/09_albums#index.png +0 -0
- data/screenshots/10_albums_EXIF_reading.png +0 -0
- data/screenshots/11_frontend_show.png +0 -0
- data/screenshots/12_show_photo_using_fancybox.png +0 -0
- 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"> </div><div class="plupload_file_status"><span>' + a("Status") + '</span></div><div class="plupload_file_size">' + a("Size") + '</div><div class="plupload_clearer"> </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"> </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"> </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);
|