uploader 0.1.20 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/controllers/uploader/uploads_controller.rb +33 -6
- data/app/helpers/uploader_helper.rb +21 -3
- data/app/views/uploads/_swf_javascript.html.erb +47 -28
- data/app/views/uploads/_swf_upload.html.erb +22 -12
- data/locales/ar.yml +13 -11
- data/locales/bg.yml +13 -11
- data/locales/ca.yml +11 -9
- data/locales/cs.yml +12 -10
- data/locales/da.yml +8 -6
- data/locales/de.yml +8 -6
- data/locales/el.yml +16 -14
- data/locales/en.yml +2 -0
- data/locales/es.yml +12 -10
- data/locales/et.yml +19 -0
- data/locales/fa.yml +19 -0
- data/locales/fi.yml +19 -0
- data/locales/fr.yml +13 -11
- data/locales/gl.yml +19 -0
- data/locales/hi.yml +19 -0
- data/locales/hr.yml +19 -0
- data/locales/hu.yml +19 -0
- data/locales/id.yml +19 -0
- data/locales/it.yml +13 -11
- data/locales/iw.yml +14 -12
- data/locales/ja.yml +15 -13
- data/locales/ko.yml +12 -10
- data/locales/lt.yml +9 -7
- data/locales/lv.yml +14 -12
- data/locales/mt.yml +19 -0
- data/locales/nl.yml +11 -9
- data/locales/no.yml +10 -8
- data/locales/pl.yml +11 -9
- data/locales/pt-PT.yml +19 -0
- data/locales/ro.yml +13 -11
- data/locales/ru.yml +11 -9
- data/locales/sk.yml +13 -11
- data/locales/sl.yml +13 -11
- data/locales/sq.yml +19 -0
- data/locales/sr.yml +14 -12
- data/locales/sv.yml +13 -11
- data/locales/th.yml +19 -0
- data/locales/tl.yml +11 -9
- data/locales/tr.yml +19 -0
- data/locales/uk.yml +11 -9
- data/locales/vi.yml +14 -12
- data/locales/zh-CN.yml +11 -9
- data/locales/zh-TW.yml +11 -9
- data/locales/zh.yml +11 -9
- data/public/javascripts/swfupload/handlers.js +12 -17
- data/public/stylesheets/swfupload.css +18 -18
- data/test/rails_root/Rakefile +2 -0
- data/test/rails_root/app/controllers/default_controller.rb +7 -0
- data/test/rails_root/app/views/default/index.html.erb +11 -0
- data/test/rails_root/app/views/layouts/application.html.erb +5 -1
- data/test/rails_root/config/environment.rb +7 -1
- data/test/rails_root/config/routes.rb +4 -0
- data/test/rails_root/lib/daemons/amazonaws.rb +36 -0
- data/test/rails_root/public/images/SWFUploadButton.png +0 -0
- data/test/rails_root/public/images/file_icons/excel.gif +0 -0
- data/test/rails_root/public/images/file_icons/file.gif +0 -0
- data/test/rails_root/public/images/file_icons/file.png +0 -0
- data/test/rails_root/public/images/file_icons/file_aac.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_ai.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_avi.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_bin.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_bmp.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_cue.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_divx.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_doc.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_eps.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_flac.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_flv.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_gif.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_html.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_ical.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_indd.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_inx.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_iso.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_jpg.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_mov.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_mp3.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_mpg.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_pdf.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_php.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_png.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_pps.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_ppt.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_psd.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_qxd.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_qxp.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_raw.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_rtf.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_svg.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_tif.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_txt.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_vcf.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_wav.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_wma.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_xls.gif +0 -0
- data/test/rails_root/public/images/file_icons/file_xml.gif +0 -0
- data/test/rails_root/public/images/file_icons/mp3.gif +0 -0
- data/test/rails_root/public/images/file_icons/pdf.gif +0 -0
- data/test/rails_root/public/images/file_icons/pdf.png +0 -0
- data/test/rails_root/public/images/file_icons/text.gif +0 -0
- data/test/rails_root/public/images/file_icons/text.png +0 -0
- data/test/rails_root/public/images/file_icons/word.gif +0 -0
- data/test/rails_root/public/javascripts/jquery/jquery-ui.js +273 -0
- data/test/rails_root/public/javascripts/jquery/jquery.easing.js +1 -0
- data/test/rails_root/public/javascripts/jquery/jquery.fancybox.js +9 -0
- data/test/rails_root/public/javascripts/jquery/jquery.form.js +637 -0
- data/test/rails_root/public/javascripts/jquery/jquery.jgrowl.js +2 -0
- data/test/rails_root/public/javascripts/jquery/jquery.js +19 -0
- data/test/rails_root/public/javascripts/jquery/jquery.tips.js +69 -0
- data/test/rails_root/public/javascripts/jquery/jrails.js +1 -0
- data/test/rails_root/public/javascripts/swfupload/fileprogress.js +151 -0
- data/test/rails_root/public/javascripts/swfupload/handlers.js +201 -0
- data/test/rails_root/public/javascripts/swfupload/swfupload.cookies.js +53 -0
- data/test/rails_root/public/javascripts/swfupload/swfupload.js +945 -0
- data/test/rails_root/public/javascripts/swfupload/swfupload.queue.js +77 -0
- data/test/rails_root/public/javascripts/swfupload/swfupload.swfobject.js +110 -0
- data/test/rails_root/public/stylesheets/swfupload.css +26 -0
- data/test/rails_root/test/functional/default_controller_test.rb +30 -0
- data/uploader.gemspec +86 -2
- metadata +86 -2
data/locales/sl.yml
CHANGED
@@ -1,17 +1,19 @@
|
|
1
1
|
---
|
2
2
|
sl:
|
3
3
|
uploader:
|
4
|
-
cancel_all: "
|
5
|
-
file_delete_permission_denied: "Nimate dovoljenja za brisanje datoteke."
|
6
|
-
file_deleted: "
|
7
|
-
file_upload_error: "Prišlo je do napake
|
4
|
+
cancel_all: "Cancel All Uploads"
|
5
|
+
file_delete_permission_denied: "Nimate dovoljenja za brisanje te datoteke."
|
6
|
+
file_deleted: "Izbrisane datoteke"
|
7
|
+
file_upload_error: "Prišlo je do napake med nalaganjem datoteke."
|
8
8
|
javascript_not_enabled: "Žal. SWFUpload ni bilo mogoče naložiti. Morate imeti omogočen JavaScript, da uživajo SWFUpload."
|
9
|
-
|
9
|
+
manage_files: "Upravljanje datotek"
|
10
|
+
manage_photos_files: "Upravljanje Slike / Files"
|
11
|
+
missing_parent_id_error: "Navedite staršev predmeta"
|
10
12
|
permission_denied: "Nimate dovoljenja za dokončanje te dejavnosti."
|
11
|
-
standard_file_upload_error: "Prišlo je do napake
|
12
|
-
successful_upload: "Uspešno
|
13
|
-
swf_loading: "SWFUpload
|
14
|
-
swf_not_loading: "Žal. SWFUpload ni bilo mogoče naložiti. Morda boste morali namestiti ali
|
15
|
-
swf_taking_to_long: "SWFUpload je
|
13
|
+
standard_file_upload_error: "Prišlo je do napake med nalaganjem datoteke: {{error}}. Prepričajte se, da datoteka ni veljavna. Preverite, ali datoteke ni prazna. Nato poskusite znova."
|
14
|
+
successful_upload: "Uspešno uploaded file."
|
15
|
+
swf_loading: "SWFUpload se nalaga. Prosimo, počakajte trenutek ..."
|
16
|
+
swf_not_loading: "Žal. SWFUpload ni bilo mogoče naložiti. Morda boste morali namestiti ali nadgradite Flash Player. Obiščite {{url}} priti Flash Player."
|
17
|
+
swf_taking_to_long: "SWFUpload je ob dolgo obremenitev ali obremenitve ni. Prepričajte se, da je Flash Plugin omogočeni, ki je nameščena delovno različico Adobe Flash Player."
|
16
18
|
upload_file: "Naloži datoteko"
|
17
|
-
upload_files: "
|
19
|
+
upload_files: "Upload Files"
|
data/locales/sq.yml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
---
|
2
|
+
sq:
|
3
|
+
uploader:
|
4
|
+
cancel_all: "Anulo gjitha Uploads"
|
5
|
+
file_delete_permission_denied: "Ju nuk keni leje për të fshini këtë dosje."
|
6
|
+
file_deleted: "Fotografi Deleted"
|
7
|
+
file_upload_error: "Një gabim ndodhi kur ngarkimi i file."
|
8
|
+
javascript_not_enabled: "Ne jemi keq. SWFUpload nuk mund load. Ju duhet të aktivizoni Java skriptet për të gëzojnë SWFUpload."
|
9
|
+
manage_files: "Manage Files"
|
10
|
+
manage_photos_files: "Manage Photos / Files"
|
11
|
+
missing_parent_id_error: "Ju lutem specifikoni një objekt prind"
|
12
|
+
permission_denied: "Ju nuk keni leje për të përfunduar këtë veprim."
|
13
|
+
standard_file_upload_error: "Një gabim ndodhi kur ngarkimi file: {{error}}. Ju lutemi sigurohuni që madhësia është e vlefshme. Kontrolloni për të siguruar 'file' nuk është bosh. Pastaj provoni përsëri."
|
14
|
+
successful_upload: "Sukses kartelën e ngarkuar."
|
15
|
+
swf_loading: "SWFUpload është loading. Ju lutem prisni një moment ..."
|
16
|
+
swf_not_loading: "Ne jemi keq. SWFUpload nuk mund load. Ju mund të kenë nevojë të instaluar apo përditësuar Flash Player. Vizitoni {{url}} për të marrë Flash Player."
|
17
|
+
swf_taking_to_long: "SWFUpload është duke marrë një kohë të gjatë për të ngarkuar ose ngarkesa ka dështuar. Ju lutem sigurohuni që Plugin Flash është aktivizuar dhe se një version pune të Adobe Flash Player është i instaluar."
|
18
|
+
upload_file: "File upload"
|
19
|
+
upload_files: "Upload Files"
|
data/locales/sr.yml
CHANGED
@@ -1,17 +1,19 @@
|
|
1
1
|
---
|
2
2
|
sr:
|
3
3
|
uploader:
|
4
|
-
cancel_all: "
|
5
|
-
file_delete_permission_denied: "Немате дозволу
|
4
|
+
cancel_all: "Откажи све уплоадано"
|
5
|
+
file_delete_permission_denied: "Немате дозволу да избришете ту датотеку."
|
6
6
|
file_deleted: "Избрисане датотеке"
|
7
|
-
file_upload_error: "
|
8
|
-
javascript_not_enabled: "
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
7
|
+
file_upload_error: "Десила се грешка током учитавања датотеке."
|
8
|
+
javascript_not_enabled: "Уе'ре сорры. СУФУплоад не могу учитати. Морате имати укључен Јавасцрипт да уживају СУФУплоад."
|
9
|
+
manage_files: "Управљање датотекама"
|
10
|
+
manage_photos_files: "Управљање Фотографије / филес"
|
11
|
+
missing_parent_id_error: "Наведите предмет родитеља"
|
12
|
+
permission_denied: "Немате дозволу да заврши ову радњу."
|
13
|
+
standard_file_upload_error: "Је до грешке приликом учитавања фајла: {{error}}. Проверите да ли је фајл исправан. Проверите да ли је датотека празна. Затим покушајте поново."
|
14
|
+
successful_upload: "Успешно послате датотеке."
|
13
15
|
swf_loading: "СУФУплоад се учитава. Молимо сачекајте тренутак ..."
|
14
|
-
swf_not_loading: "
|
15
|
-
swf_taking_to_long: "СУФУплоад
|
16
|
-
upload_file: "Отпреми
|
17
|
-
upload_files: "
|
16
|
+
swf_not_loading: "Уе'ре сорры. СУФУплоад не могу учитати. Можда ћете морати да инсталирате или надоградите Фласх плејера. Посетите {{url}} да Фласх Плаыер."
|
17
|
+
swf_taking_to_long: "СУФУплоад траје дуго времена за учитавање или је учитавање није успело. Молимо проверите да ли је омогућена Флеш додатка и који је инсталиран радну верзију Адобе Фласх плејера."
|
18
|
+
upload_file: "Отпреми датотеке"
|
19
|
+
upload_files: "Отпреми датотеке"
|
data/locales/sv.yml
CHANGED
@@ -1,17 +1,19 @@
|
|
1
1
|
---
|
2
2
|
sv:
|
3
3
|
uploader:
|
4
|
-
cancel_all: "
|
5
|
-
file_delete_permission_denied: "Du har inte
|
6
|
-
file_deleted: "
|
7
|
-
file_upload_error: "Ett fel uppstod
|
8
|
-
javascript_not_enabled: "Vi ber om ursäkt. SWFUpload
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
4
|
+
cancel_all: "Avbryt alla uppladdningar"
|
5
|
+
file_delete_permission_denied: "Du har inte behörighet att ta bort den filen."
|
6
|
+
file_deleted: "Raderad fil"
|
7
|
+
file_upload_error: "Ett fel uppstod vid uppladdningen av din fil."
|
8
|
+
javascript_not_enabled: "Vi ber om ursäkt. SWFUpload kunde inte ladda. Du måste ha Javascript aktiverat för att njuta SWFUpload."
|
9
|
+
manage_files: "Hantera filer"
|
10
|
+
manage_photos_files: "Hantera bilder / filer"
|
11
|
+
missing_parent_id_error: "Ange ett överordnat objekt"
|
12
|
+
permission_denied: "Du har inte behörighet att slutföra åtgärden."
|
13
|
+
standard_file_upload_error: "Ett fel uppstod vid uppladdningen av din fil: {{error}}. Se till att filen är giltig. Kontrollera att filen inte är tom. Försöker igen."
|
14
|
+
successful_upload: "Upplagd fil."
|
13
15
|
swf_loading: "SWFUpload laddas. Vänta ett ögonblick ..."
|
14
|
-
swf_not_loading: "Vi ber om ursäkt. SWFUpload
|
16
|
+
swf_not_loading: "Vi ber om ursäkt. SWFUpload kunde inte ladda. Du kanske behöver installera eller uppgradera Flash Player. Besök {{url}} att hämta Flash Player."
|
15
17
|
swf_taking_to_long: "SWFUpload tar lång tid att ladda eller lasten har misslyckats. Kontrollera att Flash Plugin är aktiverat och att en fungerande version av Adobe Flash Player är installerad."
|
16
|
-
upload_file: "Ladda upp
|
18
|
+
upload_file: "Ladda upp fil"
|
17
19
|
upload_files: "Ladda upp filer"
|
data/locales/th.yml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
---
|
2
|
+
th:
|
3
|
+
uploader:
|
4
|
+
cancel_all: อัพโหลดยกเลิกทั้งหมด
|
5
|
+
file_delete_permission_denied: คุณไม่ได้รับสิทธิ์ในการลบไฟล์ที่.
|
6
|
+
file_deleted: ไฟล์ที่ถูกลบ
|
7
|
+
file_upload_error: เกิดข้อผิดพลาดขณะอัปโหลดไฟล์.
|
8
|
+
javascript_not_enabled: "ขออภัย. SWFUpload ไม่สามารถโหลด. คุณต้องเปิดการใช้งาน JavaScript สนุก SWFUpload."
|
9
|
+
manage_files: จัดการไฟล์
|
10
|
+
manage_photos_files: "จัดการรูปภาพ / Files"
|
11
|
+
missing_parent_id_error: กรุณาระบุวัตถุผู้ปกครอง
|
12
|
+
permission_denied: คุณไม่ได้รับอนุญาตให้ดำเนินการนี้เสร็จ.
|
13
|
+
standard_file_upload_error: "เกิดข้อผิดพลาดขณะอัพโหลดไฟล์: {{error}}. โปรดตรวจสอบว่าไฟล์นั้นถูกต้อง. ตรวจสอบเพื่อให้แน่ใจว่าแฟ้มไม่ว่าง. แล้วลองอีกครั้ง."
|
14
|
+
successful_upload: สำเร็จไฟล์ที่อัพโหลด.
|
15
|
+
swf_loading: "SWFUpload กำลังโหลด. โปรดรอสักครู่ ..."
|
16
|
+
swf_not_loading: "ขออภัย. SWFUpload ไม่สามารถโหลด. คุณอาจต้องติดตั้งหรืออัพเกรด Flash Player. ไป {{url}} เพื่อรับ Flash Player."
|
17
|
+
swf_taking_to_long: "SWFUpload ต้องใช้เวลานานในการโหลดหรือโหลดล้มเหลว. โปรดตรวจสอบว่ามีการเปิดใช้ปลั๊กอิน Flash และรุ่นที่ทำงานของ Adobe Flash Player ติดตั้ง."
|
18
|
+
upload_file: อัพโหลดไฟล์
|
19
|
+
upload_files: อัปโหลดไฟล์
|
data/locales/tl.yml
CHANGED
@@ -1,17 +1,19 @@
|
|
1
1
|
---
|
2
2
|
tl:
|
3
3
|
uploader:
|
4
|
-
cancel_all: "
|
4
|
+
cancel_all: "Kanselahin lahat ng Uploads"
|
5
5
|
file_delete_permission_denied: "Ikaw ay walang pahintulot na burahin na file."
|
6
|
-
file_deleted: "Tinanggal
|
7
|
-
file_upload_error: "May naganap na error habang
|
8
|
-
javascript_not_enabled: "Ikinalulungkot namin. SWFUpload hindi
|
6
|
+
file_deleted: "Tinanggal ng file"
|
7
|
+
file_upload_error: "May naganap na error habang-upload ang file."
|
8
|
+
javascript_not_enabled: "Ikinalulungkot namin. SWFUpload hindi ma-load. Kailangan mong pinaganang JavaScript ay masiyahan sa SWFUpload."
|
9
|
+
manage_files: "Pamahalaan ang mga file"
|
10
|
+
manage_photos_files: "Pamahalaan Photos / file"
|
9
11
|
missing_parent_id_error: "Mangyaring tukuyin ang isang magulang object"
|
10
|
-
permission_denied: "Ikaw ay walang pahintulot na
|
11
|
-
standard_file_upload_error: "May naganap na error habang
|
12
|
+
permission_denied: "Ikaw ay walang pahintulot na kumpleto ang aksyon na ito."
|
13
|
+
standard_file_upload_error: "May naganap na error habang-upload ang file: {{error}}. Mangyaring siguraduhin na ang file ay may-bisa. Suriin upang masiguro ang file na ito ay hindi walang laman. Pagkatapos subukan ulit."
|
12
14
|
successful_upload: "Matagumpay na nai-upload na file."
|
13
15
|
swf_loading: "SWFUpload ay kumakarga. Mangyaring maghintay ng ilang sandali ..."
|
14
|
-
swf_not_loading: "Ikinalulungkot namin. SWFUpload hindi
|
15
|
-
swf_taking_to_long: "SWFUpload ay
|
16
|
-
upload_file: "Mag-upload ng
|
16
|
+
swf_not_loading: "Ikinalulungkot namin. SWFUpload hindi ma-load. Maaaring kailanganin mong i-install o upgrade ng Flash Player. Bisitahin ang {{url}} para makakuha ng Flash Player."
|
17
|
+
swf_taking_to_long: "SWFUpload ay tumatagal ng isang mahabang oras sa pag-load o ang load ay nabigo. Mangyaring siguraduhin na ang mga Flash Plugin ay pinagana at ang isang gumaganang bersyon ng Adobe Flash Player-install."
|
18
|
+
upload_file: "Mag-upload ng file"
|
17
19
|
upload_files: "Mag-upload ng file"
|
data/locales/tr.yml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
---
|
2
|
+
tr:
|
3
|
+
uploader:
|
4
|
+
cancel_all: "Tüm iptal Uploads"
|
5
|
+
file_delete_permission_denied: "Izniniz dosya silmek zorunda değilsiniz."
|
6
|
+
file_deleted: Dosya
|
7
|
+
file_upload_error: "Süre dosyası yüklenirken bir hata oluştu."
|
8
|
+
javascript_not_enabled: "Biz üzgünüz. SWFUpload yükleyemedi. JavaScript SWFUpload zevk etkin olmalıdır."
|
9
|
+
manage_files: "Dosyaları yönetmek"
|
10
|
+
manage_photos_files: "Fotoğrafları Yönet / Dosyalar"
|
11
|
+
missing_parent_id_error: "Lütfen bir üst nesne belirtin"
|
12
|
+
permission_denied: "Izniniz Bu eylemin tamamlanması gerekmez."
|
13
|
+
standard_file_upload_error: "Süre dosyası yüklenirken bir hata oluştu: {{error}}. Lütfen dosya geçerli olduğundan emin olun. Kontrol dosya boş olmadığından emin olun. Sonra tekrar deneyin."
|
14
|
+
successful_upload: "Başarıyla yüklenen dosya."
|
15
|
+
swf_loading: "SWFUpload yükleniyor. Lütfen biraz bekleyin ..."
|
16
|
+
swf_not_loading: "Biz üzgünüz. SWFUpload yükleyemedi. Yüklemek ya da Flash Player yükseltme gerekebilir. Flash Player için {{url}} ziyaret edin."
|
17
|
+
swf_taking_to_long: "SWFUpload yük veya başarısız oldu yük uzun bir zaman alıyor. Lütfen Flash Plugin etkin olduğundan emin olun ve bu Adobe Flash Player'ın çalışan bir sürümü yüklenir."
|
18
|
+
upload_file: "Dosya Yükle"
|
19
|
+
upload_files: "Upload Dosya"
|
data/locales/uk.yml
CHANGED
@@ -1,17 +1,19 @@
|
|
1
1
|
---
|
2
2
|
uk:
|
3
3
|
uploader:
|
4
|
-
cancel_all: "
|
4
|
+
cancel_all: "Скасування всіх закачувань"
|
5
5
|
file_delete_permission_denied: "У вас немає дозволу на видалення цього файлу."
|
6
|
-
file_deleted: "
|
6
|
+
file_deleted: "Віддалений файл"
|
7
7
|
file_upload_error: "Виникла помилка при завантаженні файлу."
|
8
|
-
javascript_not_enabled: "Приносимо свої вибачення. SWFUpload
|
9
|
-
|
8
|
+
javascript_not_enabled: "Приносимо свої вибачення. SWFUpload не вдалося завантажити. Ви повинні включити JavaScript, щоб користуватися SWFUpload."
|
9
|
+
manage_files: "Управління файлами"
|
10
|
+
manage_photos_files: "Управління фотографіями / Файли"
|
11
|
+
missing_parent_id_error: "Прохання вказати батьківський об'єкт"
|
10
12
|
permission_denied: "Ви не маєте дозволу для завершення цієї дії."
|
11
|
-
standard_file_upload_error: "Виникла помилка при завантаженні файлу: {{error}}. Будь ласка, переконайтеся, що файл є дійсним.
|
13
|
+
standard_file_upload_error: "Виникла помилка при завантаженні файлу: {{error}}. Будь ласка, переконайтеся, що файл є дійсним. Переконайтеся, що файл не порожній. Потім спробуйте знову."
|
12
14
|
successful_upload: "Успішно завантажили файл."
|
13
15
|
swf_loading: "SWFUpload завантажується. Будь ласка, зачекайте хвилину ..."
|
14
|
-
swf_not_loading: "Приносимо свої вибачення. SWFUpload
|
15
|
-
swf_taking_to_long: "SWFUpload займає багато
|
16
|
-
upload_file: "
|
17
|
-
upload_files: "
|
16
|
+
swf_not_loading: "Приносимо свої вибачення. SWFUpload не вдалося завантажити. Ви, можливо, буде потрібно встановити або оновити Flash Player. Відвідайте {{url}} отримати Flash Player."
|
17
|
+
swf_taking_to_long: "SWFUpload займає багато часу, щоб завантажити або вантаж не вдалося. Будь ласка, переконайтеся, що включений плагін Flash і встановлена робоча версія Adobe Flash Player."
|
18
|
+
upload_file: "Завантажити файл"
|
19
|
+
upload_files: "Завантажити файли"
|
data/locales/vi.yml
CHANGED
@@ -1,17 +1,19 @@
|
|
1
1
|
---
|
2
2
|
vi:
|
3
3
|
uploader:
|
4
|
-
cancel_all: "Hủy
|
5
|
-
file_delete_permission_denied: "Bạn không
|
6
|
-
file_deleted: "
|
7
|
-
file_upload_error: "
|
8
|
-
javascript_not_enabled: "Chúng tôi xin lỗi. SWFUpload không thể tải. Bạn phải có bật Javascript để
|
9
|
-
|
4
|
+
cancel_all: "Hủy Mọi Uploads"
|
5
|
+
file_delete_permission_denied: "Bạn không có quyền xóa tập tin đó."
|
6
|
+
file_deleted: "Xóa tập tin"
|
7
|
+
file_upload_error: "Đã xảy ra lỗi trong khi tải lên tập tin."
|
8
|
+
javascript_not_enabled: "Chúng tôi xin lỗi. SWFUpload không thể tải. Bạn phải có bật Javascript để tận hưởng SWFUpload."
|
9
|
+
manage_files: "Quản lý tập tin"
|
10
|
+
manage_photos_files: "Quản lý hình ảnh / Tệp tin"
|
11
|
+
missing_parent_id_error: "Hãy chỉ định một đối tượng phụ huynh"
|
10
12
|
permission_denied: "Bạn không được phép để hoàn thành hành động này."
|
11
|
-
standard_file_upload_error: "
|
12
|
-
successful_upload: "
|
13
|
-
swf_loading: "SWFUpload đang tải. Xin vui lòng chờ
|
14
|
-
swf_not_loading: "Chúng tôi xin lỗi. SWFUpload không thể tải. Bạn có thể cần phải cài đặt hoặc nâng cấp Flash Player.
|
15
|
-
swf_taking_to_long: "SWFUpload là
|
16
|
-
upload_file: "
|
13
|
+
standard_file_upload_error: "Đã xảy ra lỗi trong khi tải lên tập tin: {{error}}. Xin vui lòng đảm bảo rằng các tập tin là hợp lệ. Kiểm tra để chắc chắn tập tin là không có sản phẩm nào. Sau đó thử lại."
|
14
|
+
successful_upload: "Thành công upload."
|
15
|
+
swf_loading: "SWFUpload đang tải. Xin vui lòng chờ trong giây lát ..."
|
16
|
+
swf_not_loading: "Chúng tôi xin lỗi. SWFUpload không thể tải. Bạn có thể cần phải cài đặt hoặc nâng cấp Flash Player. Khám phá {{url}} để có được Flash Player."
|
17
|
+
swf_taking_to_long: "SWFUpload là mất nhiều thời gian để tải hoặc tải trọng đã thất bại. Hãy đảm bảo rằng các Plugin Flash được kích hoạt và một phiên bản làm việc của Adobe Flash Player được cài đặt."
|
18
|
+
upload_file: "Upload file"
|
17
19
|
upload_files: "Tải lên tập tin"
|
data/locales/zh-CN.yml
CHANGED
@@ -2,16 +2,18 @@
|
|
2
2
|
zh-CN:
|
3
3
|
uploader:
|
4
4
|
cancel_all: 取消所有上传
|
5
|
-
file_delete_permission_denied:
|
6
|
-
file_deleted:
|
7
|
-
file_upload_error:
|
8
|
-
javascript_not_enabled: "
|
5
|
+
file_delete_permission_denied: 您没有权限删除该文件。
|
6
|
+
file_deleted: 已删除的文件
|
7
|
+
file_upload_error: 发生错误,上传文件。
|
8
|
+
javascript_not_enabled: "我们很抱歉。 SWFUpload无法加载。您必须启用JavaScript享受SWFUpload。"
|
9
|
+
manage_files: 管理文件
|
10
|
+
manage_photos_files: 管理照片/文件
|
9
11
|
missing_parent_id_error: 请指定一个父对象
|
10
|
-
permission_denied:
|
11
|
-
standard_file_upload_error: "
|
12
|
+
permission_denied: 您没有权限完成此操作。
|
13
|
+
standard_file_upload_error: "发生错误,上传文件:{{error}}.请确保该文件是有效的。检查以确保该文件不是空的。然后再试一次。"
|
12
14
|
successful_upload: 成功上载文件。
|
13
|
-
swf_loading: SWFUpload
|
14
|
-
swf_not_loading: "
|
15
|
-
swf_taking_to_long: "SWFUpload
|
15
|
+
swf_loading: SWFUpload加载。请等一等...
|
16
|
+
swf_not_loading: "我们很抱歉。 SWFUpload无法加载。您可能需要安装或升级Flash播放器。访问{{url}}获取Flash播放器。"
|
17
|
+
swf_taking_to_long: "SWFUpload花费很长的时间来加载或负载已失败。请确保该公司的Flash插件启用,并成为Adobe Flash Player的版本安装工作。"
|
16
18
|
upload_file: 上传文件
|
17
19
|
upload_files: 上传文件
|
data/locales/zh-TW.yml
CHANGED
@@ -2,16 +2,18 @@
|
|
2
2
|
zh-TW:
|
3
3
|
uploader:
|
4
4
|
cancel_all: 取消所有上傳
|
5
|
-
file_delete_permission_denied:
|
6
|
-
file_deleted:
|
7
|
-
file_upload_error:
|
8
|
-
javascript_not_enabled: "
|
5
|
+
file_delete_permission_denied: 您沒有權限刪除該文件。
|
6
|
+
file_deleted: 已刪除的文件
|
7
|
+
file_upload_error: 發生錯誤,上傳該文件。
|
8
|
+
javascript_not_enabled: "我們很抱歉。 SWFUpload無法加載。您必須啟用JavaScript享受SWFUpload。"
|
9
|
+
manage_files: 管理文件
|
10
|
+
manage_photos_files: 管理照片/檔案
|
9
11
|
missing_parent_id_error: 請指定一個父對象
|
10
|
-
permission_denied:
|
11
|
-
standard_file_upload_error: "
|
12
|
+
permission_denied: 您沒有權限完成此操作。
|
13
|
+
standard_file_upload_error: "時發生錯誤上傳文件:{{error}}.請確保該文件是有效的。檢查以確保該文件不是空的。然後再試一次。"
|
12
14
|
successful_upload: 成功上載文件。
|
13
|
-
swf_loading: SWFUpload
|
14
|
-
swf_not_loading: "
|
15
|
-
swf_taking_to_long: "SWFUpload
|
15
|
+
swf_loading: SWFUpload加載。請等一等...
|
16
|
+
swf_not_loading: "我們很抱歉。 SWFUpload無法加載。您可能需要安裝或升級Flash播放器。訪問{{url}}獲取Flash播放器。"
|
17
|
+
swf_taking_to_long: "SWFUpload花費很長的時間來加載或負載已失敗。請確保該公司的Flash插件啟用一個工作版本的Adobe Flash Player的安裝。"
|
16
18
|
upload_file: 上傳文件
|
17
19
|
upload_files: 上傳文件
|
data/locales/zh.yml
CHANGED
@@ -2,16 +2,18 @@
|
|
2
2
|
zh:
|
3
3
|
uploader:
|
4
4
|
cancel_all: 取消所有上传
|
5
|
-
file_delete_permission_denied:
|
6
|
-
file_deleted:
|
7
|
-
file_upload_error:
|
8
|
-
javascript_not_enabled: "
|
5
|
+
file_delete_permission_denied: 您没有权限删除该文件。
|
6
|
+
file_deleted: 已删除的文件
|
7
|
+
file_upload_error: 发生错误,上传文件。
|
8
|
+
javascript_not_enabled: "我们很抱歉。 SWFUpload无法加载。您必须启用JavaScript享受SWFUpload。"
|
9
|
+
manage_files: 管理文件
|
10
|
+
manage_photos_files: 管理照片/文件
|
9
11
|
missing_parent_id_error: 请指定一个父对象
|
10
|
-
permission_denied:
|
11
|
-
standard_file_upload_error: "
|
12
|
+
permission_denied: 您没有权限完成此操作。
|
13
|
+
standard_file_upload_error: "发生错误,上传文件:{{error}}.请确保该文件是有效的。检查以确保该文件不是空的。然后再试一次。"
|
12
14
|
successful_upload: 成功上载文件。
|
13
|
-
swf_loading: SWFUpload
|
14
|
-
swf_not_loading: "
|
15
|
-
swf_taking_to_long: "SWFUpload
|
15
|
+
swf_loading: SWFUpload加载。请等一等...
|
16
|
+
swf_not_loading: "我们很抱歉。 SWFUpload无法加载。您可能需要安装或升级Flash播放器。访问{{url}}获取Flash播放器。"
|
17
|
+
swf_taking_to_long: "SWFUpload花费很长的时间来加载或负载已失败。请确保该公司的Flash插件启用,并成为Adobe Flash Player的版本安装工作。"
|
16
18
|
upload_file: 上传文件
|
17
19
|
upload_files: 上传文件
|
@@ -1,43 +1,38 @@
|
|
1
1
|
function swfUploadPreLoad() {
|
2
2
|
var self = this;
|
3
3
|
var loading = function () {
|
4
|
-
|
5
|
-
document.getElementById("swf_loading_content").style.display = "";
|
6
|
-
|
4
|
+
jQuery('.swf_loading_content').show();
|
7
5
|
var longLoad = function () {
|
8
|
-
|
9
|
-
|
6
|
+
jQuery('.swf_loading_content').hide();
|
7
|
+
jQuery('.swf_long_loading').show();
|
10
8
|
};
|
11
|
-
this.customSettings.loadingTimeout = setTimeout(function
|
9
|
+
this.customSettings.loadingTimeout = setTimeout(function() {
|
12
10
|
longLoad.call(self)
|
13
11
|
},
|
14
12
|
15 * 1000
|
15
13
|
);
|
16
14
|
};
|
17
15
|
|
18
|
-
this.customSettings.loadingTimeout = setTimeout(function
|
16
|
+
this.customSettings.loadingTimeout = setTimeout(function() {
|
19
17
|
loading.call(self);
|
20
18
|
},
|
21
19
|
1*1000
|
22
20
|
);
|
23
21
|
}
|
22
|
+
|
24
23
|
function swfUploadLoaded() {
|
25
24
|
var self = this;
|
26
25
|
clearTimeout(this.customSettings.loadingTimeout);
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
document.getElementById("swf_alternate_content").style.display = "none";
|
32
|
-
|
33
|
-
//document.getElementById("btnBrowse").onclick = function () { self.selectFiles(); };
|
34
|
-
document.getElementById("swf_cancel_button").onclick = function () { self.cancelQueue(); };
|
26
|
+
jQuery('.swf_loading_content').hide();
|
27
|
+
jQuery('.swf_long_loading').hide();
|
28
|
+
jQuery('.swf_alternate_content').hide();
|
29
|
+
jQuery(".swf_cancel_button").click(function(){ self.cancelQueue(); });
|
35
30
|
}
|
36
31
|
|
37
32
|
function swfUploadLoadFailed() {
|
38
33
|
clearTimeout(this.customSettings.loadingTimeout);
|
39
|
-
jQuery('
|
40
|
-
jQuery('
|
34
|
+
jQuery('.degraded_container').show();
|
35
|
+
jQuery('.swfupload_container').hide();
|
41
36
|
}
|
42
37
|
|
43
38
|
function fileQueued(file) {
|
@@ -1,26 +1,26 @@
|
|
1
1
|
div.uploadStatus{margin:5px;}
|
2
|
-
|
2
|
+
.swf_fs_upload_progress{font-size:1.3em;}
|
3
3
|
#deliver-uploads #upload-list{font-size:1.3em;}
|
4
4
|
#deliver-uploads #upload-list table {border-collapse:collapse;}
|
5
5
|
#deliver-uploads #upload-list td{padding:3px 6px;}
|
6
6
|
#deliver-uploads #upload-controls{width:365px;}
|
7
|
-
#deliver-uploads
|
7
|
+
#deliver-uploads .swfupload_container .legend{color:#231F20;font-size:1.1em;font-weight:bold;}
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
9
|
+
.swfupload_container .progressWrapper{width:357px;overflow:hidden;}
|
10
|
+
.swfupload_container .progressContainer{margin:5px;padding:4px;border:solid 1px #E8E8E8;background-color:#F7F7F7;overflow:hidden;}
|
11
|
+
.swfupload_container .message{margin:1em 0;padding:10px 20px;border:solid 1px #FFDD99;background-color:#FFFFCC;overflow:hidden;}
|
12
|
+
.swfupload_container .red{border:solid 1px #B50000;background-color:#FFEBEB;}
|
13
|
+
.swfupload_container .green{border:solid 1px #DDF0DD;background-color:#EBFFEB;}
|
14
|
+
.swfupload_container .blue{border:solid 1px #CEE2F2;background-color:#F0F5FF;}
|
15
|
+
.swfupload_container .progressName{font-size:8pt;font-weight:700;color:#555;width:323px;height:14px;text-align:left;white-space:nowrap;overflow:hidden;}
|
16
|
+
.swfupload_container .progressBarInProgress,
|
17
|
+
.swfupload_container .progressBarComplete,
|
18
|
+
.swfupload_container .progressBarError{font-size:0;width:0%;height:2px;background-color:blue;margin-top:2px;}
|
19
|
+
.swfupload_container .progressBarComplete{width:100%;background-color:green;visibility:hidden;}
|
20
|
+
.swfupload_container .progressBarError{width:100%;background-color:red;visibility:hidden;}
|
21
|
+
.swfupload_container .progressBarStatus{margin-top:2px;width:337px;font-size:7pt;font-family:Arial;text-align:left;white-space:nowrap;}
|
22
|
+
.swfupload_container a.progressCancel{font-size:0;display:block;height:14px;width:14px;background-image:url(../images/cancelbutton.gif);background-repeat:no-repeat;background-position:-14px 0px;float:right;}
|
23
|
+
.swfupload_container a.progressCancel:hover{background-position:0px 0px;}
|
24
24
|
|
25
25
|
.swf-error-msg{background-color: #FFFF66; border-top: solid 4px #FF9966; border-bottom: solid 4px #FF9966; margin: 10px 25px; padding: 10px 15px;}
|
26
|
-
|
26
|
+
.swf_cancel_button{margin-left: 2px; height: 22px; font-size: 8pt;}
|
data/test/rails_root/Rakefile
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
<p>Upload One restricted to 1MB:
|
2
|
+
<%= upload_form(@user, true, container_prefix = '', :file_size_limit => '1 MB') %>
|
3
|
+
</p>
|
4
|
+
|
5
|
+
<p>Upload restricted to images:
|
6
|
+
<%= upload_form(@user, false, container_prefix = 'a_container_with_a_long_name', :file_types => '*.jpg') %>
|
7
|
+
</p>
|
8
|
+
|
9
|
+
<p>Upload With Background Button using transparent:
|
10
|
+
<%= upload_form(@user, false, container_prefix = 'background', :transparent => true) %>
|
11
|
+
</p>
|
@@ -5,7 +5,11 @@
|
|
5
5
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
6
6
|
<title>Uploader</title>
|
7
7
|
<%= stylesheet_link_tag 'screen', :media => 'all' %>
|
8
|
-
<%= javascript_include_tag
|
8
|
+
<%= javascript_include_tag %w{
|
9
|
+
jquery/jquery.js
|
10
|
+
jquery/jquery-ui.js
|
11
|
+
application.js }, :cache => 'all_js_cached' %>
|
12
|
+
<%= yield :head -%>
|
9
13
|
</head>
|
10
14
|
<body>
|
11
15
|
<div id="flash">
|
@@ -15,9 +15,15 @@ class << GlobalConfig
|
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
18
|
+
class TestGemLocator < Rails::Plugin::Locator
|
19
|
+
def plugins
|
20
|
+
Rails::Plugin.new(File.join(File.dirname(__FILE__), *%w(.. .. ..)))
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
18
24
|
Rails::Initializer.run do |config|
|
19
25
|
config.load_paths += Dir.glob(File.join(RAILS_ROOT, 'vendor', 'gems', '*', 'lib'))
|
20
26
|
config.time_zone = 'UTC'
|
21
27
|
config.gem 'thoughtbot-paperclip', :version => '~> 2.2.2', :lib => 'paperclip', :source => 'http://gems.github.com'
|
22
|
-
config.
|
28
|
+
config.plugin_locators << TestGemLocator
|
23
29
|
end
|
@@ -3,4 +3,8 @@ ActionController::Routing::Routes.draw do |map|
|
|
3
3
|
map.resources :uploads, :collection => { :swfupload => :post }
|
4
4
|
map.resources :users
|
5
5
|
|
6
|
+
# Install the default routes as the lowest priority.
|
7
|
+
map.connect ':controller/:action/:id'
|
8
|
+
map.connect ':controller/:action/:id.:format'
|
9
|
+
|
6
10
|
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# You might want to change this
|
4
|
+
ENV["RAILS_ENV"] ||= "production"
|
5
|
+
|
6
|
+
require File.dirname(__FILE__) + "/../../config/environment"
|
7
|
+
|
8
|
+
$running = true
|
9
|
+
Signal.trap("TERM") do
|
10
|
+
$running = false
|
11
|
+
end
|
12
|
+
|
13
|
+
# Waiting is a timer variable to allow the daemon to restart
|
14
|
+
# within two seconds of the Signal rather than using a long
|
15
|
+
# sleep command and forcing the daemon to wait.
|
16
|
+
$waiting = 0
|
17
|
+
|
18
|
+
ActiveRecord::Base.logger.info "[AmazonS3] Migration daemon started at #{Time.now}.\n"
|
19
|
+
|
20
|
+
while($running) do
|
21
|
+
|
22
|
+
if $waiting < 120
|
23
|
+
$waiting += 2
|
24
|
+
sleep 2
|
25
|
+
else
|
26
|
+
$waiting = 0
|
27
|
+
upload = Upload.pending_s3_migration.first
|
28
|
+
|
29
|
+
if upload
|
30
|
+
$waiting = 120 - 2
|
31
|
+
ActiveRecord::Base.logger.info "[AmazonS3] Migrating upload ##{upload.id}\n"
|
32
|
+
upload.remote = upload.local
|
33
|
+
upload.save!
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|