瀏覽代碼

Update to release v4.2.6

Kartik Visweswaran 9 年之前
父節點
當前提交
4d4db5c91f

+ 2 - 0
CHANGE.md

@@ -11,6 +11,8 @@ Change Log: `bootstrap-fileinput`
 4. (enh #378): Ability to configure different icon thumbnails for preview files.
 5. (enh #379): Combine more translatable settings and update locale js files.
 6. (enh #380, #381): Consistent styling for thumbnails.
+7. Update translations to include `fileActionSettings`.
+8. (enh #385): Updated Russian & Ukranian translations.
 
 ## version 4.2.5
 

+ 2 - 8
js/fileinput.js

@@ -273,7 +273,7 @@
             '     </div>\n' +
             '</div>',
         tFooter = '<div class="file-thumbnail-footer">\n' +
-            '    <div class="file-footer-caption">{caption}</div>\n' +
+            '    <div class="file-footer-caption" title="{caption}">{caption}</div>\n' +
             '    {actions}\n' +
             '</div>',
         tActions = '<div class="file-actions">\n' +
@@ -2035,7 +2035,7 @@
             self.showFolderError(folders);
         },
         validateImage: function (i, previewId) {
-            var self = this, $preview = self.$preview, params, w1, w2, $cap,
+            var self = this, $preview = self.$preview, params, w1, w2, 
                 $thumb = $preview.find("#" + previewId), fname = 'Untitled',
                 $img = $thumb.find('img');
             if (!$img.length) {
@@ -2048,12 +2048,6 @@
                     $img.css('width', '100%');
                     $thumb.css('width', '97%');
                 }
-                $cap = $img.closest('.file-preview-frame').find('.file-caption-name');
-                if ($cap.length) {
-                    $cap.width($img.width());
-                    fname = $cap.text();
-                    $cap.attr('title', fname);
-                }
                 params = {ind: i, id: previewId};
                 self.checkDimensions(i, 'Small', $img, $thumb, fname, 'Width', params);
                 self.checkDimensions(i, 'Small', $img, $thumb, fname, 'Height', params);

文件差異過大導致無法顯示
+ 0 - 0
js/fileinput.min.js


+ 6 - 6
js/fileinput_locale_es.js

@@ -44,12 +44,12 @@
         msgImageHeightLarge: 'La altura de la imagen "{name}" no puede exceder de {size} px.',
         dropZoneTitle: 'Arrastre y suelte aquí los archivos &hellip;',
         fileActionSettings: {
-            removeTitle: 'Remove file',
-            uploadTitle: 'Upload file',
-            indicatorNewTitle: 'Not uploaded yet',
-            indicatorSuccessTitle: 'Uploaded',
-            indicatorErrorTitle: 'Upload Error',
-            indicatorLoadingTitle: 'Uploading ...'
+            removeTitle: 'Eliminar archivo',
+            uploadTitle: 'Subir archivo',
+            indicatorNewTitle: 'No subido todavía',
+            indicatorSuccessTitle: 'Subido',
+            indicatorErrorTitle: 'Subir Error',
+            indicatorLoadingTitle: 'Subiendo ...'
         }
     };
 })(window.jQuery);

+ 6 - 6
js/fileinput_locale_fa.js

@@ -45,12 +45,12 @@
         msgImageHeightLarge: 'ارتفاع فایل تصویر "{name}" نمی‌تواند از {size} پیکسل بیشتر باشد.',
         dropZoneTitle: 'فایل‌ها را بکشید و در اینجا رها کنید &hellip;',
         fileActionSettings: {
-            removeTitle: 'Remove file',
-            uploadTitle: 'Upload file',
-            indicatorNewTitle: 'Not uploaded yet',
-            indicatorSuccessTitle: 'Uploaded',
-            indicatorErrorTitle: 'Upload Error',
-            indicatorLoadingTitle: 'Uploading ...'
+            removeTitle: 'حذف فایل',
+            uploadTitle: 'آپلود فایل',
+            indicatorNewTitle: 'آپلود نشده است',
+            indicatorSuccessTitle: 'آپلود شده',
+            indicatorErrorTitle: 'بارگذاری خطا',
+            indicatorLoadingTitle: 'آپلود ...'
         }
     };
 })(window.jQuery);

+ 6 - 6
js/fileinput_locale_fr.js

@@ -44,12 +44,12 @@
         msgImageHeightLarge: 'Hauteur de fichier image "{name}" ne peut pas dépasser {size} px.',
         dropZoneTitle: 'Glissez et déposez les fichiers ici&hellip;',
         fileActionSettings: {
-            removeTitle: 'Remove file',
-            uploadTitle: 'Upload file',
-            indicatorNewTitle: 'Not uploaded yet',
-            indicatorSuccessTitle: 'Uploaded',
-            indicatorErrorTitle: 'Upload Error',
-            indicatorLoadingTitle: 'Uploading ...'
+            removeTitle: 'Supprimer le fichier',
+            uploadTitle: 'Télécharger un fichier',
+            indicatorNewTitle: 'Pas encore téléchargé',
+            indicatorSuccessTitle: 'Posté',
+            indicatorErrorTitle: 'Ajouter erreur',
+            indicatorLoadingTitle: 'ajout ...'
         }
     };
 })(window.jQuery);

+ 6 - 6
js/fileinput_locale_hu.js

@@ -44,12 +44,12 @@
         msgImageHeightLarge: 'Magassága image file "{name}" nem haladhatja meg a {size} px.',
         dropZoneTitle: 'Fájlok húzása ide &hellip;',
         fileActionSettings: {
-            removeTitle: 'Remove file',
-            uploadTitle: 'Upload file',
-            indicatorNewTitle: 'Not uploaded yet',
-            indicatorSuccessTitle: 'Uploaded',
-            indicatorErrorTitle: 'Upload Error',
-            indicatorLoadingTitle: 'Uploading ...'
+            removeTitle: 'A fájl eltávolítása',
+            uploadTitle: 'fájl feltöltése',
+            indicatorNewTitle: 'Nem feltöltve',
+            indicatorSuccessTitle: 'Feltöltött',
+            indicatorErrorTitle: 'Feltöltés Error',
+            indicatorLoadingTitle: 'Feltöltése ...'
         }
     };
 })(window.jQuery);

+ 6 - 6
js/fileinput_locale_it.js

@@ -46,12 +46,12 @@
         msgImageHeightLarge: 'Altezza di file immagine "{name}" non può superare {size} px.',
         dropZoneTitle: 'Trascina i file qui&hellip;',
         fileActionSettings: {
-            removeTitle: 'Remove file',
-            uploadTitle: 'Upload file',
-            indicatorNewTitle: 'Not uploaded yet',
-            indicatorSuccessTitle: 'Uploaded',
-            indicatorErrorTitle: 'Upload Error',
-            indicatorLoadingTitle: 'Uploading ...'
+            removeTitle: 'Rimuovere il file',
+            uploadTitle: 'Caricare un file',
+            indicatorNewTitle: 'Non ancora caricato',
+            indicatorSuccessTitle: 'Caricati',
+            indicatorErrorTitle: 'Carica Errore',
+            indicatorLoadingTitle: 'Caricamento ...'
         }
     };
 })(window.jQuery);

+ 6 - 6
js/fileinput_locale_nl.js

@@ -44,12 +44,12 @@
         msgImageHeightLarge: 'Hoogte van het beeld bestand "{name}" kan niet hoger zijn dan {size} px.',
         dropZoneTitle: 'Drag & drop bestanden hier &hellip;',
         fileActionSettings: {
-            removeTitle: 'Remove file',
-            uploadTitle: 'Upload file',
-            indicatorNewTitle: 'Not uploaded yet',
-            indicatorSuccessTitle: 'Uploaded',
-            indicatorErrorTitle: 'Upload Error',
-            indicatorLoadingTitle: 'Uploading ...'
+            removeTitle: 'Verwijder bestand',
+            uploadTitle: 'bestand uploaden',
+            indicatorNewTitle: 'Nog niet geupload',
+            indicatorSuccessTitle: 'geupload',
+            indicatorErrorTitle: 'uploaden Error',
+            indicatorLoadingTitle: 'uploaden ...'
         }
     };
 })(window.jQuery);

+ 6 - 6
js/fileinput_locale_pl.js

@@ -44,12 +44,12 @@
         msgImageHeightLarge: 'Wysokość pliku obrazu "{name}" nie może przekraczać {size} px.',
         dropZoneTitle: 'Przeciągnij i upuść pliki tu &hellip;',
         fileActionSettings: {
-            removeTitle: 'Remove file',
-            uploadTitle: 'Upload file',
-            indicatorNewTitle: 'Not uploaded yet',
-            indicatorSuccessTitle: 'Uploaded',
-            indicatorErrorTitle: 'Upload Error',
-            indicatorLoadingTitle: 'Uploading ...'
+            removeTitle: 'Usuń plik',
+            uploadTitle: 'przesyłanie pliku',
+            indicatorNewTitle: 'Jeszcze nie przesłanych',
+            indicatorSuccessTitle: 'Dodane',
+            indicatorErrorTitle: 'Prześlij błąd',
+            indicatorLoadingTitle: 'Zamieszczanie ...'
         }
     };
 })(window.jQuery);

+ 6 - 6
js/fileinput_locale_pt-BR.js

@@ -44,12 +44,12 @@
         msgImageHeightLarge: 'Altura do arquivo de imagem "{name}" não pode exceder {size} px.',
         dropZoneTitle: 'Arraste e solte os arquivos aqui&hellip;',
         fileActionSettings: {
-            removeTitle: 'Remove file',
-            uploadTitle: 'Upload file',
-            indicatorNewTitle: 'Not uploaded yet',
-            indicatorSuccessTitle: 'Uploaded',
-            indicatorErrorTitle: 'Upload Error',
-            indicatorLoadingTitle: 'Uploading ...'
+            removeTitle: 'Remover arquivo',
+            uploadTitle: 'Carregar arquivo',
+            indicatorNewTitle: 'Ainda não carregou',
+            indicatorSuccessTitle: 'Carregado',
+            indicatorErrorTitle: 'Carregar Erro',
+            indicatorLoadingTitle: 'A carregar ...'
         }
     };
 })(window.jQuery);

+ 6 - 6
js/fileinput_locale_pt.js

@@ -44,12 +44,12 @@
         msgImageHeightLarge: 'Altura do arquivo de imagem "{name}" não pode exceder {size} px.',
         dropZoneTitle: 'Arrastar e largar ficheiros aqui &hellip;',
         fileActionSettings: {
-            removeTitle: 'Remove file',
-            uploadTitle: 'Upload file',
-            indicatorNewTitle: 'Not uploaded yet',
-            indicatorSuccessTitle: 'Uploaded',
-            indicatorErrorTitle: 'Upload Error',
-            indicatorLoadingTitle: 'Uploading ...'
+            removeTitle: 'Remover arquivo',
+            uploadTitle: 'Carregar arquivo',
+            indicatorNewTitle: 'Ainda não carregou',
+            indicatorSuccessTitle: 'Carregado',
+            indicatorErrorTitle: 'Carregar Erro',
+            indicatorLoadingTitle: 'A carregar ...'
         }
     };
 })(window.jQuery);

+ 6 - 6
js/fileinput_locale_ro.js

@@ -45,12 +45,12 @@
         msgImageHeightLarge: 'Înălțimea fișier imagine "{name}" nu poate depăși {size} px.',
         dropZoneTitle: 'Trage fișierele aici &hellip;',
         fileActionSettings: {
-            removeTitle: 'Remove file',
-            uploadTitle: 'Upload file',
-            indicatorNewTitle: 'Not uploaded yet',
-            indicatorSuccessTitle: 'Uploaded',
-            indicatorErrorTitle: 'Upload Error',
-            indicatorLoadingTitle: 'Uploading ...'
+            removeTitle: 'Scoateți fișier',
+            uploadTitle: 'Incarca fisier',
+            indicatorNewTitle: 'Nu a încărcat încă',
+            indicatorSuccessTitle: 'încărcat',
+            indicatorErrorTitle: 'Încărcați eroare',
+            indicatorLoadingTitle: 'Se încarcă ...'
         }
     };
 })(window.jQuery);

+ 6 - 6
js/fileinput_locale_sk.js

@@ -44,12 +44,12 @@
         msgImageHeightLarge: 'Výška súboru obrazu "{name}" nesmie presiahnuť {size} px.',
         dropZoneTitle: 'Tiahni a pusť súbory tu &hellip;',
         fileActionSettings: {
-            removeTitle: 'Remove file',
-            uploadTitle: 'Upload file',
-            indicatorNewTitle: 'Not uploaded yet',
-            indicatorSuccessTitle: 'Uploaded',
-            indicatorErrorTitle: 'Upload Error',
-            indicatorLoadingTitle: 'Uploading ...'
+            removeTitle: 'odstrániť súbor',
+            uploadTitle: 'nahrať súbor',
+            indicatorNewTitle: 'Ešte nenahral',
+            indicatorSuccessTitle: 'nahral',
+            indicatorErrorTitle: 'nahrať Chyba',
+            indicatorLoadingTitle: 'nahrávanie ...'
         }
     };
 })(window.jQuery);

+ 6 - 6
js/fileinput_locale_sr.js

@@ -45,12 +45,12 @@
         msgImageHeightLarge: 'Висина Имаге Филе "{name}" не може бити већи од {size} пк.',
         dropZoneTitle: 'Prevucite datoteke ovde &hellip;',
         fileActionSettings: {
-            removeTitle: 'Remove file',
-            uploadTitle: 'Upload file',
-            indicatorNewTitle: 'Not uploaded yet',
-            indicatorSuccessTitle: 'Uploaded',
-            indicatorErrorTitle: 'Upload Error',
-            indicatorLoadingTitle: 'Uploading ...'
+            removeTitle: 'Уклони датотеку',
+            uploadTitle: 'филе уплоад',
+            indicatorNewTitle: 'Још није уплоадед',
+            indicatorSuccessTitle: 'Постављено',
+            indicatorErrorTitle: 'Додај Грешка',
+            indicatorLoadingTitle: 'уплоадинг ...'
         }
     };
 })(window.jQuery);

+ 6 - 6
js/fileinput_locale_th.js

@@ -44,12 +44,12 @@
         msgImageHeightLarge: 'ความสูงของไฟล์ภาพ "{name}" ไม่เกิน {size} พิกเซล.',
         dropZoneTitle: 'Drag & drop ไฟล์ตรงนี้ &hellip;',
         fileActionSettings: {
-            removeTitle: 'Remove file',
-            uploadTitle: 'Upload file',
-            indicatorNewTitle: 'Not uploaded yet',
-            indicatorSuccessTitle: 'Uploaded',
-            indicatorErrorTitle: 'Upload Error',
-            indicatorLoadingTitle: 'Uploading ...'
+            removeTitle: 'ลบไฟล์',
+            uploadTitle: 'อัปโหลดไฟล์',
+            indicatorNewTitle: 'ยังไม่ได้อัปโหลด',
+            indicatorSuccessTitle: 'อัพโหลด',
+            indicatorErrorTitle: 'อัปโหลดข้อผิดพลาด',
+            indicatorLoadingTitle: 'อัพโหลด ...'
         }
     };
 })(window.jQuery);

+ 6 - 6
js/fileinput_locale_tr.js

@@ -44,12 +44,12 @@
         msgImageHeightLarge: 'Resim dosyası "{name}" Yükseklik {size} px geçemez.',
         dropZoneTitle: 'Dosyaları buraya sürükleyip bırakın &hellip;',
         fileActionSettings: {
-            removeTitle: 'Remove file',
-            uploadTitle: 'Upload file',
-            indicatorNewTitle: 'Not uploaded yet',
-            indicatorSuccessTitle: 'Uploaded',
-            indicatorErrorTitle: 'Upload Error',
-            indicatorLoadingTitle: 'Uploading ...'
+            removeTitle: 'dosyayı kaldır',
+            uploadTitle: 'dosya yükleme',
+            indicatorNewTitle: 'Henüz yüklendi',
+            indicatorSuccessTitle: 'yüklendi',
+            indicatorErrorTitle: 'Yükleme Hatası',
+            indicatorLoadingTitle: 'Yükleme ...'
         }
     };
 })(window.jQuery);

+ 6 - 6
js/fileinput_locale_zh.js

@@ -48,12 +48,12 @@
             return text ? text.split(/(\\|\/)/g).pop().replace(/[^\w\u4e00-\u9fa5\-.\\\/ ]+/g, '') : '';
         },
         fileActionSettings: {
-            removeTitle: 'Remove file',
-            uploadTitle: 'Upload file',
-            indicatorNewTitle: 'Not uploaded yet',
-            indicatorSuccessTitle: 'Uploaded',
-            indicatorErrorTitle: 'Upload Error',
-            indicatorLoadingTitle: 'Uploading ...'
+            removeTitle: '删除文件',
+            uploadTitle: '上传文件',
+            indicatorNewTitle: '没有上传',
+            indicatorSuccessTitle: '上传',
+            indicatorErrorTitle: '上传错误',
+            indicatorLoadingTitle: '上传 ...'
         }
     };
 })(window.jQuery);

部分文件因文件數量過多而無法顯示