Upgrade to ExtJS 4.0.2 - Released 06/09/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           loadingText       : "Đang tải...",
155           valueNotFoundText : undefined
156        });
157     }
158
159     if(Ext.form.field.VTypes){
160        Ext.apply(Ext.form.field.VTypes, {
161           emailText    : 'Giá trị của ô này phải là một địa chỉ email có dạng như "ten@abc.com"',
162           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"',
163           alphaText    : 'Ô này chỉ được nhập các kí tự và gạch dưới(_)',
164           alphanumText : 'Ô này chỉ được nhập các kí tự, số và gạch dưới(_)'
165        });
166     }
167
168     if(Ext.grid.header.Container){
169        Ext.apply(Ext.grid.header.Container.prototype, {
170           sortAscText  : "Tăng dần",
171           sortDescText : "Giảm dần",
172           lockText     : "Khóa cột",
173           unlockText   : "Bỏ khóa cột",
174           columnsText  : "Các cột"
175        });
176     }
177
178     if(Ext.grid.PropertyColumnModel){
179        Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
180           nameText   : "Tên",
181           valueText  : "Giá trị",
182           dateFormat : "j/m/Y"
183        });
184     }
185
186     if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
187        Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
188           splitTip            : "Kéo giữ chuột để thay đổi kích thước.",
189           collapsibleSplitTip : "Kéo giữ chuột để thay đổi kích thước. Nhấp đúp để ẩn đi."
190        });
191     }
192 });