13693261870
2022-09-16 354b3dbfbffb3df45212a2a44dbbf48b4acc2594
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
/*
This file is part of Ext JS 4.2
 
Copyright (c) 2011-2013 Sencha Inc
 
Contact:  http://www.sencha.com/contact
 
GNU General Public License Usage
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.
 
If you are unsure which license is appropriate for your use, please contact the sales department
at http://www.sencha.com/contact.
 
Build date: 2013-05-16 14:36:50 (f9be68accb407158ba2b1be2c226a6ce1f649314)
*/
/**
 * 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.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"];
        
        Ext.Date.monthNumbers = {
            "Tháng 1": 0,
            "Tháng 2": 1,
            "Tháng 3": 2,
            "Tháng 4": 3,
            "Tháng 5": 4,
            "Tháng 6": 5,
            "Tháng 7": 6,
            "Tháng 8": 7,
            "Tháng 9": 8,
            "Tháng 10": 9,
            "Tháng 11": 10,
            "Tháng 12": 11,
        };
        
        Ext.Date.getShortMonthName = function(month){
            return Ext.Date.monthNames[month];
        };
        
        Ext.Date.getMonthNumber = function(name){
            return Ext.Date.monthNumbers[name];    
        };
        
        Ext.Date.getShortDayName = function(day) {
            return Ext.Date.dayNames[day];
        }
    }
 
    if (Ext.util && Ext.util.Format) {
        Ext.apply(Ext.util.Format, {
            thousandSeparator: '.',
            decimalSeparator: ',',
            currencySign: '\u20ab',
            // Vietnamese Dong
            dateFormat: 'd/m/Y'
        });
    }
});
 
Ext.define("Ext.locale.vn.view.View", {
    override: "Ext.view.View",
    emptyText: ""
});
 
Ext.define("Ext.locale.vn.grid.plugin.DragDrop", {
    override: "Ext.grid.plugin.DragDrop",
    dragText: "{0} dòng được chọn"
});
 
Ext.define("Ext.locale.vn.tab.Tab", {
    override: "Ext.tab.Tab",
    closeText: "Đóng thẻ này"
});
 
Ext.define("Ext.locale.vn.form.field.Base", {
    override: "Ext.form.field.Base",
    invalidText: "Giá trị của ô này không hợp lệ."
});
 
// changing the msg text below will affect the LoadMask
Ext.define("Ext.locale.vn.view.AbstractView", {
    override: "Ext.view.AbstractView",
    loadingText: "Đang tải..."
});
 
Ext.define("Ext.locale.vn.picker.Date", {
    override: "Ext.picker.Date",
    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: "",
    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"
});
 
Ext.define("Ext.locale.vn.toolbar.Paging", {
    override: "Ext.PagingToolbar",
    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ị'
});
 
Ext.define("Ext.locale.vn.form.field.Text", {
    override: "Ext.form.field.Text",
    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
});
 
Ext.define("Ext.locale.vn.form.field.Number", {
    override: "Ext.form.field.Number",
    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ệ"
});
 
Ext.define("Ext.locale.vn.form.field.Date", {
    override: "Ext.form.field.Date",
    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"
});
 
Ext.define("Ext.locale.vn.form.field.ComboBox", {
    override: "Ext.form.field.ComboBox",
    valueNotFoundText: undefined
}, function() {
    Ext.apply(Ext.form.field.ComboBox.prototype.defaultListConfig, {
        loadingText: "Đang tải..."
    });
});
 
Ext.define("Ext.locale.vn.form.field.VTypes", {
    override: "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(_)'
});
 
Ext.define("Ext.locale.vn.grid.header.Container", {
    override: "Ext.grid.header.Container",
    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"
});
 
Ext.define("Ext.locale.vn.grid.PropertyColumnModel", {
    override: "Ext.grid.PropertyColumnModel",
    nameText: "Tên",
    valueText: "Giá trị",
    dateFormat: "j/m/Y"
});
 
Ext.define("Ext.locale.vn.window.MessageBox", {
    override: "Ext.window.MessageBox",
    buttonText: {
        ok: "Đồng ý",
        cancel: "Hủy bỏ",
        yes: "Có",
        no: "Không"
    }    
});
 
// This is needed until we can refactor all of the locales into individual files
Ext.define("Ext.locale.vn.Component", {    
    override: "Ext.Component"
});