Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / locale / ext-lang-vn.js
1 /**
2  * List compiled by mystix on the extjs.com forums.
3  * Thank you Mystix!
4  * Vietnamese translation
5  * By bpmtri
6  * 12-April-2007 04:06PM
7  */
8 Ext.onReady(function(){
9     if(Ext.Updater){
10         Ext.Updater.defaults.indicatorText = '<div class="loading-indicator">Đang tải...</div>';
11     }
12
13     if(Ext.view.View){
14        Ext.view.View.prototype.emptyText = "";
15     }
16
17     if(Ext.grid.Panel){
18        Ext.grid.Panel.prototype.ddText = "{0} dòng được chọn";
19     }
20
21     if(Ext.TabPanelItem){
22        Ext.TabPanelItem.prototype.closeText = "Đóng thẻ này";
23     }
24
25     if(Ext.form.field.Base){
26        Ext.form.field.Base.prototype.invalidText = "Giá trị của ô này không hợp lệ.";
27     }
28
29     if(Ext.LoadMask){
30         Ext.LoadMask.prototype.msg = "Đang tải...";
31     }
32     
33     if(Ext.Date){
34         Ext.Date.monthNames = [
35            "Tháng 1",
36            "Tháng 2",
37            "Tháng 3",
38            "Tháng 4",
39            "Tháng 5",
40            "Tháng 6",
41            "Tháng 7",
42            "Tháng 8",
43            "Tháng 9",
44            "Tháng 10",
45            "Tháng 11",
46            "Tháng 12"
47         ];
48
49         Ext.Date.dayNames = [
50            "Chủ nhật",
51            "Thứ hai",
52            "Thứ ba",
53            "Thứ tư",
54            "Thứ năm",
55            "Thứ sáu",
56            "Thứ bảy"
57         ];
58     }
59     
60     if(Ext.MessageBox){
61        Ext.MessageBox.buttonText = {
62           ok     : "Đồng ý",
63           cancel : "Hủy bỏ",
64           yes    : "Có",
65           no     : "Không"
66        };
67     }
68
69     if(Ext.util.Format){
70         Ext.apply(Ext.util.Format, {
71             thousandSeparator: '.',
72             decimalSeparator: ',',
73             currencySign: '\u20ab',  // Vietnamese Dong
74             dateFormat: 'd/m/Y'
75         });
76     }
77
78     if(Ext.picker.Date){
79        Ext.apply(Ext.picker.Date.prototype, {
80           todayText         : "Hôm nay",
81           minText           : "Ngày này nhỏ hơn ngày nhỏ nhất",
82           maxText           : "Ngày này lớn hơn ngày lớn nhất",
83           disabledDaysText  : "",
84           disabledDatesText : "",
85           monthNames    : Ext.Date.monthNames,
86           dayNames              : Ext.Date.dayNames,
87           nextText          : 'Tháng sau (Control+Right)',
88           prevText          : 'Tháng trước (Control+Left)',
89           monthYearText     : 'Chọn một tháng (Control+Up/Down để thay đổi năm)',
90           todayTip          : "{0} (Spacebar - Phím trắng)",
91           format            : "d/m/y"
92        });
93     }
94
95     if(Ext.toolbar.Paging){
96        Ext.apply(Ext.PagingToolbar.prototype, {
97           beforePageText : "Trang",
98           afterPageText  : "of {0}",
99           firstText      : "Trang đầu",
100           prevText       : "Trang trước",
101           nextText       : "Trang sau",
102           lastText       : "Trang cuối",
103           refreshText    : "Tải lại",
104           displayMsg     : "Hiển thị {0} - {1} của {2}",
105           emptyMsg       : 'Không có dữ liệu để hiển thị'
106        });
107     }
108
109     if(Ext.form.field.Text){
110        Ext.apply(Ext.form.field.Text.prototype, {
111           minLengthText : "Chiều dài tối thiểu của ô này là {0}",
112           maxLengthText : "Chiều dài tối đa của ô này là {0}",
113           blankText     : "Ô này cần phải nhập giá trị",
114           regexText     : "",
115           emptyText     : null
116        });
117     }
118
119     if(Ext.form.field.Number){
120        Ext.apply(Ext.form.field.Number.prototype, {
121           minText : "Giá trị nhỏ nhất của ô này là {0}",
122           maxText : "Giá trị lớn nhất của ô này là  {0}",
123           nanText : "{0} hông phải là một số hợp lệ"
124        });
125     }
126
127     if(Ext.form.field.Date){
128        Ext.apply(Ext.form.field.Date.prototype, {
129           disabledDaysText  : "Vô hiệu",
130           disabledDatesText : "Vô hiệu",
131           minText           : "Ngày nhập trong ô này phải sau ngày {0}",
132           maxText           : "Ngày nhập trong ô này phải trước ngày {0}",
133           invalidText       : "{0} không phải là một ngày hợp lệ - phải có dạng {1}",
134           format            : "d/m/y"
135        });
136     }
137
138     if(Ext.form.field.ComboBox){
139        Ext.apply(Ext.form.field.ComboBox.prototype, {
140           loadingText       : "Đang tải...",
141           valueNotFoundText : undefined
142        });
143     }
144
145     if(Ext.form.field.VTypes){
146        Ext.apply(Ext.form.field.VTypes, {
147           emailText    : 'Giá trị của ô này phải là một địa chỉ email có dạng như "ten@abc.com"',
148           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"',
149           alphaText    : 'Ô này chỉ được nhập các kí tự và gạch dưới(_)',
150           alphanumText : 'Ô này chỉ được nhập các kí tự, số và gạch dưới(_)'
151        });
152     }
153
154     if(Ext.grid.header.Container){
155        Ext.apply(Ext.grid.header.Container.prototype, {
156           sortAscText  : "Tăng dần",
157           sortDescText : "Giảm dần",
158           lockText     : "Khóa cột",
159           unlockText   : "Bỏ khóa cột",
160           columnsText  : "Các cột"
161        });
162     }
163
164     if(Ext.grid.PropertyColumnModel){
165        Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
166           nameText   : "Tên",
167           valueText  : "Giá trị",
168           dateFormat : "j/m/Y"
169        });
170     }
171
172     if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
173        Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
174           splitTip            : "Kéo giữ chuột để thay đổi kích thước.",
175           collapsibleSplitTip : "Kéo giữ chuột để thay đổi kích thước. Nhấp đúp để ẩn đi."
176        });
177     }
178 });