Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / locale / ext-lang-vn.js
diff --git a/locale/ext-lang-vn.js b/locale/ext-lang-vn.js
new file mode 100644 (file)
index 0000000..cbe0d92
--- /dev/null
@@ -0,0 +1,178 @@
+/**
+ * List compiled by mystix on the extjs.com forums.
+ * Thank you Mystix!
+ * Vietnamese translation
+ * By bpmtri
+ * 12-April-2007 04:06PM
+ */
+Ext.onReady(function(){
+    if(Ext.Updater){
+        Ext.Updater.defaults.indicatorText = '<div class="loading-indicator">Đang tải...</div>';
+    }
+
+    if(Ext.view.View){
+       Ext.view.View.prototype.emptyText = "";
+    }
+
+    if(Ext.grid.Panel){
+       Ext.grid.Panel.prototype.ddText = "{0} dòng được chọn";
+    }
+
+    if(Ext.TabPanelItem){
+       Ext.TabPanelItem.prototype.closeText = "Đóng thẻ này";
+    }
+
+    if(Ext.form.field.Base){
+       Ext.form.field.Base.prototype.invalidText = "Giá trị của ô này không hợp lệ.";
+    }
+
+    if(Ext.LoadMask){
+        Ext.LoadMask.prototype.msg = "Đang tải...";
+    }
+    
+    if(Ext.Date){
+        Ext.Date.monthNames = [
+           "Tháng 1",
+           "Tháng 2",
+           "Tháng 3",
+           "Tháng 4",
+           "Tháng 5",
+           "Tháng 6",
+           "Tháng 7",
+           "Tháng 8",
+           "Tháng 9",
+           "Tháng 10",
+           "Tháng 11",
+           "Tháng 12"
+        ];
+
+        Ext.Date.dayNames = [
+           "Chủ nhật",
+           "Thứ hai",
+           "Thứ ba",
+           "Thứ tư",
+           "Thứ năm",
+           "Thứ sáu",
+           "Thứ bảy"
+        ];
+    }
+    
+    if(Ext.MessageBox){
+       Ext.MessageBox.buttonText = {
+          ok     : "Đồng ý",
+          cancel : "Hủy bỏ",
+          yes    : "Có",
+          no     : "Không"
+       };
+    }
+
+    if(Ext.util.Format){
+        Ext.apply(Ext.util.Format, {
+            thousandSeparator: '.',
+            decimalSeparator: ',',
+            currencySign: '\u20ab',  // Vietnamese Dong
+            dateFormat: 'd/m/Y'
+        });
+    }
+
+    if(Ext.picker.Date){
+       Ext.apply(Ext.picker.Date.prototype, {
+          todayText         : "Hôm nay",
+          minText           : "Ngày này nhỏ hơn ngày nhỏ nhất",
+          maxText           : "Ngày này lớn hơn ngày lớn nhất",
+          disabledDaysText  : "",
+          disabledDatesText : "",
+          monthNames   : Ext.Date.monthNames,
+          dayNames             : Ext.Date.dayNames,
+          nextText          : 'Tháng sau (Control+Right)',
+          prevText          : 'Tháng trước (Control+Left)',
+          monthYearText     : 'Chọn một tháng (Control+Up/Down để thay đổi năm)',
+          todayTip          : "{0} (Spacebar - Phím trắng)",
+          format            : "d/m/y"
+       });
+    }
+
+    if(Ext.toolbar.Paging){
+       Ext.apply(Ext.PagingToolbar.prototype, {
+          beforePageText : "Trang",
+          afterPageText  : "of {0}",
+          firstText      : "Trang đầu",
+          prevText       : "Trang trước",
+          nextText       : "Trang sau",
+          lastText       : "Trang cuối",
+          refreshText    : "Tải lại",
+          displayMsg     : "Hiển thị {0} - {1} của {2}",
+          emptyMsg       : 'Không có dữ liệu để hiển thị'
+       });
+    }
+
+    if(Ext.form.field.Text){
+       Ext.apply(Ext.form.field.Text.prototype, {
+          minLengthText : "Chiều dài tối thiểu của ô này là {0}",
+          maxLengthText : "Chiều dài tối đa của ô này là {0}",
+          blankText     : "Ô này cần phải nhập giá trị",
+          regexText     : "",
+          emptyText     : null
+       });
+    }
+
+    if(Ext.form.field.Number){
+       Ext.apply(Ext.form.field.Number.prototype, {
+          minText : "Giá trị nhỏ nhất của ô này là {0}",
+          maxText : "Giá trị lớn nhất của ô này là  {0}",
+          nanText : "{0} hông phải là một số hợp lệ"
+       });
+    }
+
+    if(Ext.form.field.Date){
+       Ext.apply(Ext.form.field.Date.prototype, {
+          disabledDaysText  : "Vô hiệu",
+          disabledDatesText : "Vô hiệu",
+          minText           : "Ngày nhập trong ô này phải sau ngày {0}",
+          maxText           : "Ngày nhập trong ô này phải trước ngày {0}",
+          invalidText       : "{0} không phải là một ngày hợp lệ - phải có dạng {1}",
+          format            : "d/m/y"
+       });
+    }
+
+    if(Ext.form.field.ComboBox){
+       Ext.apply(Ext.form.field.ComboBox.prototype, {
+          loadingText       : "Đang tải...",
+          valueNotFoundText : undefined
+       });
+    }
+
+    if(Ext.form.field.VTypes){
+       Ext.apply(Ext.form.field.VTypes, {
+          emailText    : 'Giá trị của ô này phải là một địa chỉ email có dạng như "ten@abc.com"',
+          urlText      : 'Giá trị của ô này phải là một địa chỉ web(URL) hợp lệ, có dạng như "http:/'+'/www.example.com"',
+          alphaText    : 'Ô này chỉ được nhập các kí tự và gạch dưới(_)',
+          alphanumText : 'Ô này chỉ được nhập các kí tự, số và gạch dưới(_)'
+       });
+    }
+
+    if(Ext.grid.header.Container){
+       Ext.apply(Ext.grid.header.Container.prototype, {
+          sortAscText  : "Tăng dần",
+          sortDescText : "Giảm dần",
+          lockText     : "Khóa cột",
+          unlockText   : "Bỏ khóa cột",
+          columnsText  : "Các cột"
+       });
+    }
+
+    if(Ext.grid.PropertyColumnModel){
+       Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
+          nameText   : "Tên",
+          valueText  : "Giá trị",
+          dateFormat : "j/m/Y"
+       });
+    }
+
+    if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
+       Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
+          splitTip            : "Kéo giữ chuột để thay đổi kích thước.",
+          collapsibleSplitTip : "Kéo giữ chuột để thay đổi kích thước. Nhấp đúp để ẩn đi."
+       });
+    }
+});
\ No newline at end of file