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