Browse Source

Fix #59: support load multiple locale files.

zhixin 11 years ago
parent
commit
0a4bd5c3f4

+ 5 - 2
src/locale/bootstrap-table-cs-CZ.js

@@ -5,7 +5,7 @@
 (function ($) {
     'use strict';
 
-    $.extend($.fn.bootstrapTable.defaults, {
+    $.fn.bootstrapTable.locales['cs-CZ'] = {
         formatLoadingMessage: function () {
             return 'Čekejte, prosím…';
         },
@@ -21,5 +21,8 @@
         formatNoMatches: function () {
             return 'Nenalezena žádná vyhovující položka';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['cs-CZ']);
+
 })(jQuery);

+ 5 - 2
src/locale/bootstrap-table-da-DK.js

@@ -5,7 +5,7 @@
 (function ($) {
     'use strict';
 
-    $.extend($.fn.bootstrapTable.defaults, {
+    $.fn.bootstrapTable.locales['da-DK'] = {
         formatLoadingMessage: function () {
             return 'Indlæser, vent venligst…';
         },
@@ -30,5 +30,8 @@
         formatColumns: function () {
             return 'Kolonner';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['da-DK']);
+
 })(jQuery);

+ 5 - 2
src/locale/bootstrap-table-de-DE.js

@@ -5,7 +5,7 @@
 (function ($) {
   'use strict';
 
-  $.extend($.fn.bootstrapTable.defaults, {
+  $.fn.bootstrapTable.locales['de-DE'] = {
     formatLoadingMessage: function () {
       return 'Lade, bitte warten…';
     },
@@ -30,5 +30,8 @@
     formatColumns: function () {
       return 'Spalten';
     }
-  });
+  };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['de-DE']);
+
 })(jQuery);

+ 5 - 2
src/locale/bootstrap-table-el-GR.js

@@ -5,7 +5,7 @@
 (function ($) {
     'use strict';
 
-    $.extend($.fn.bootstrapTable.defaults, {
+    $.fn.bootstrapTable.locales['el-GR'] = {
         formatLoadingMessage: function () {
             return 'Φορτώνει, παρακαλώ περιμένετε…';
         },
@@ -21,5 +21,8 @@
         formatNoMatches: function () {
             return 'Δεν βρέθηκαν αποτελέσματα';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['el-GR']);
+
 })(jQuery);

+ 5 - 2
src/locale/bootstrap-table-en-US.js

@@ -5,7 +5,7 @@
 (function ($) {
     'use strict';
 
-    $.extend($.fn.bootstrapTable.defaults, {
+    $.fn.bootstrapTable.locales['en-US'] = {
         formatLoadingMessage: function () {
             return 'Loading, please wait…';
         },
@@ -30,5 +30,8 @@
         formatColumns: function () {
             return 'Columns';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['en-US']);
+
 })(jQuery);

+ 5 - 2
src/locale/bootstrap-table-en-US.js.template

@@ -5,7 +5,7 @@
 (function ($) {
     'use strict';
 
-    $.extend($.fn.bootstrapTable.defaults, {
+    $.fn.bootstrapTable.locales['en-US'] = {
         formatLoadingMessage: function () {
             return 'Loading, please wait…';
         },
@@ -30,5 +30,8 @@
         formatColumns: function () {
             return 'Columns';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['en-US']);
+
 })(jQuery);

+ 5 - 2
src/locale/bootstrap-table-es-AR.js

@@ -5,7 +5,7 @@
 (function ($) {
     'use strict';
 
-    $.extend($.fn.bootstrapTable.defaults, {
+    $.fn.bootstrapTable.locales['es-AR'] = {
         formatLoadingMessage: function () {
             return 'Cargando, espere por favor...';
         },
@@ -21,5 +21,8 @@
         formatNoMatches: function () {
             return 'No se encontraron registros';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['es-AR']);
+
 })(jQuery);

+ 5 - 2
src/locale/bootstrap-table-es-CR.js

@@ -5,7 +5,7 @@
 (function ($) {
     'use strict';
 
-    $.extend($.fn.bootstrapTable.defaults, {
+    $.fn.bootstrapTable.locales['es-CR'] = {
         formatLoadingMessage: function () {
             return 'Cargando, por favor espere...';
         },
@@ -30,5 +30,8 @@
         formatColumns: function () {
             return 'Columnas';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['es-CR']);
+
 })(jQuery);

+ 5 - 2
src/locale/bootstrap-table-es-NI.js

@@ -5,7 +5,7 @@
 (function ($) {
     'use strict';
 
-    $.extend($.fn.bootstrapTable.defaults, {
+    $.fn.bootstrapTable.locales['es-NI'] = {
         formatLoadingMessage: function () {
             return 'Cargando, por favor espere...';
         },
@@ -30,5 +30,8 @@
         formatColumns: function () {
             return 'Columnas';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['es-NI']);
+
 })(jQuery);

+ 5 - 2
src/locale/bootstrap-table-fr-BE.js

@@ -5,7 +5,7 @@
 (function ($) {
     'use strict';
 
-    $.extend($.fn.bootstrapTable.defaults, {
+    $.fn.bootstrapTable.locales['fr-BE'] = {
         formatLoadingMessage: function () {
             return 'Chargement en cours...';
         },
@@ -21,5 +21,8 @@
         formatNoMatches: function () {
             return 'Pas de fichiers trouvés';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['fr-BE']);
+
 })(jQuery);

+ 5 - 2
src/locale/bootstrap-table-fr-FR.js

@@ -6,7 +6,7 @@
 (function ($) {
     'use strict';
 
-    $.extend($.fn.bootstrapTable.defaults, {
+    $.fn.bootstrapTable.locales['fr-FR'] = {
         formatLoadingMessage: function () {
             return 'Chargement en cours, patientez, s´il vous plaît ...';
         },
@@ -31,5 +31,8 @@
         formatColumns: function () {
             return 'Colonnes';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['fr-FR']);
+
 })(jQuery);

+ 5 - 2
src/locale/bootstrap-table-hu-HU.js

@@ -5,7 +5,7 @@
 (function ($) {
     'use strict';
 
-    $.extend($.fn.bootstrapTable.defaults, {
+    $.fn.bootstrapTable.locales['hu-HU'] = {
         formatLoadingMessage: function () {
             return 'Betöltés, kérem várjon…';
         },
@@ -30,5 +30,8 @@
         formatColumns: function () {
             return 'Oszlopok';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['hu-HU']);
+
 })(jQuery);

+ 5 - 2
src/locale/bootstrap-table-it-IT.js

@@ -5,7 +5,7 @@
 (function ($) {
     'use strict';
 
-    $.extend($.fn.bootstrapTable.defaults, {
+    $.fn.bootstrapTable.locales['it-IT'] = {
         formatLoadingMessage: function () {
             return 'Caricamento in corso…';
         },
@@ -30,5 +30,8 @@
         formatColumns: function () {
             return 'Colonne';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['it-IT']);
+
 })(jQuery);

+ 5 - 2
src/locale/bootstrap-table-ko-KR.js

@@ -5,7 +5,7 @@
 (function ($) {
     'use strict';
 
-    $.extend($.fn.bootstrapTable.defaults, {
+    $.fn.bootstrapTable.locales['ko-KR'] = {
         formatLoadingMessage: function () {
             return '데이터를 불러오는 중입니다...';
         },
@@ -30,5 +30,8 @@
         formatColumns: function () {
             return '컬럼 필터링';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['ko-KR']);
+
 })(jQuery);

+ 5 - 2
src/locale/bootstrap-table-nl-NL.js

@@ -5,7 +5,7 @@
 (function ($) {
     'use strict';
 
-    $.extend($.fn.bootstrapTable.defaults, {
+    $.fn.bootstrapTable.locales['nl-NL'] = {
         formatLoadingMessage: function () {
             return 'Laden, even geduld…';
         },
@@ -21,5 +21,8 @@
         formatNoMatches: function () {
             return 'Geen resultaten gevonden';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['nl-NL']);
+
 })(jQuery);

+ 5 - 2
src/locale/bootstrap-table-pl-PL.js

@@ -5,7 +5,7 @@
 (function ($) {
     'use strict';
 
-    $.extend($.fn.bootstrapTable.defaults, {
+    $.fn.bootstrapTable.locales['pl-PL'] = {
         formatLoadingMessage: function () {
             return 'Ładowanie, proszę czekać…';
         },
@@ -30,5 +30,8 @@
         formatColumns: function () {
             return 'Kolumny';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['pl-PL']);
+
 })(jQuery);

+ 5 - 2
src/locale/bootstrap-table-pt-BR.js

@@ -5,7 +5,7 @@
 (function ($) {
     'use strict';
 
-    $.extend($.fn.bootstrapTable.defaults, {
+    $.fn.bootstrapTable.locales['pt-BR'] = {
         formatLoadingMessage: function () {
             return 'Carregando, aguarde…';
         },
@@ -21,5 +21,8 @@
         formatNoMatches: function () {
             return 'Nenhum registro encontrado';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['pt-BR']);
+
 })(jQuery);

+ 5 - 2
src/locale/bootstrap-table-ru-RU.js

@@ -4,7 +4,7 @@
  */
 (function ($) {
     'use strict';
-    $.extend($.fn.bootstrapTable.defaults, {
+    $.fn.bootstrapTable.locales['ru-RU'] = {
         formatLoadingMessage: function () {
             return 'Пожалуйста, подождите, идёт загрузка...';
         },
@@ -29,5 +29,8 @@
         formatColumns: function () {
             return 'Колонки';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['ru-RU']);
+
 })(jQuery);

+ 4 - 1
src/locale/bootstrap-table-th-TH.js

@@ -40,5 +40,8 @@
         {
             return 'คอลัมน์';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['th-TH']);
+
 })(jQuery);

+ 5 - 2
src/locale/bootstrap-table-tr-TR.js

@@ -6,7 +6,7 @@
 (function ($) {
     'use strict';
 
-    $.extend($.fn.bootstrapTable.defaults, {
+    $.fn.bootstrapTable.locales['tr-TR'] = {
         formatLoadingMessage: function () {
             return 'Yükleniyor, lütfen bekleyin…';
         },
@@ -31,5 +31,8 @@
         formatColumns: function () {
             return 'Sütunlar';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['tr-TR']);
+
 })(jQuery);

+ 5 - 2
src/locale/bootstrap-table-ur-PK.js

@@ -5,7 +5,7 @@
 (function ($) {
     'use strict';
 
-    $.extend($.fn.bootstrapTable.defaults, {
+    $.fn.bootstrapTable.locales['ur-PK'] = {
         formatLoadingMessage: function () {
             return 'براۓ مہربانی انتظار کیجئے';
         },
@@ -30,5 +30,8 @@
         formatColumns: function () {
             return 'کالم';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['ur-PK']);
+
 })(jQuery);

+ 5 - 2
src/locale/bootstrap-table-vi-VN.js

@@ -5,7 +5,7 @@
 (function ($) {
     'use strict';
 
-    $.extend($.fn.bootstrapTable.defaults, {
+    $.fn.bootstrapTable.locales['vi-VN'] = {
         formatLoadingMessage: function () {
             return 'Đang tải...';
         },
@@ -21,5 +21,8 @@
         formatNoMatches: function () {
             return 'Không có dữ liệu';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['vi-VN']);
+
 })(jQuery);

+ 5 - 2
src/locale/bootstrap-table-zh-CN.js

@@ -5,7 +5,7 @@
 (function ($) {
     'use strict';
 
-    $.extend($.fn.bootstrapTable.defaults, {
+    $.fn.bootstrapTable.locales['zh-CN'] = {
         formatLoadingMessage: function () {
             return '正在努力地加载数据中,请稍候……';
         },
@@ -30,5 +30,8 @@
         formatColumns: function () {
             return '列';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['zh-CN']);
+
 })(jQuery);

+ 5 - 2
src/locale/bootstrap-table-zh-TW.js

@@ -5,7 +5,7 @@
 (function ($) {
     'use strict';
 
-    $.extend($.fn.bootstrapTable.defaults, {
+    $.fn.bootstrapTable.locales['zh-TW'] = {
         formatLoadingMessage: function () {
             return '正在努力地載入資料,請稍候……';
         },
@@ -30,5 +30,8 @@
         formatColumns: function () {
             return '列';
         }
-    });
+    };
+
+    $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['zh-TW']);
+
 })(jQuery);