/*
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ư " [email protected]"',
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"
});
|