roojs-core.js
[roojs1] / locale / zh_HK.js
1 /**
2  * Traditional Chinese translation
3  * By hata1234
4  * 09 April 2007
5  */
6 Roo.onReady(function(){
7    
8     if(Roo.grid.Panel){
9         Roo.grid.Grid.prototype.ddText   = "選擇了 {0} 行";
10     }
11
12     if(Roo.TabPanelItem){
13         Roo.TabPanelItem.prototype.closeText = "關閉此標籤";
14     }
15
16     if(Roo.form.Field){
17         Roo.form.Field.prototype.invalidText = "數值不符合欄位規定";
18     }
19
20     if(Roo.LoadMask){
21         Roo.LoadMask.prototype.msg = "讀取中...";
22     }
23     
24     if (Date){
25         Date.monthNames = [
26         "一月",
27         "二月",
28         "三月",
29         "四月",
30         "五月",
31         "六月",
32         "七月",
33         "八月",
34         "九月",
35         "十月",
36         "十一月",
37         "十二月"
38         ];
39
40         Date.dayNames = [
41         "日",
42         "一",
43         "二",
44         "三",
45         "四",
46         "五",
47         "六"
48         ];
49     }
50     
51     if(Roo.MessageBox){
52         Roo.MessageBox.buttonText = {
53             ok : "確定",
54             cancel : "取消",
55             yes : "是",
56             no : "否"
57         };
58     }
59
60     if(Roo.util.Format){
61         Roo.apply(Roo.util.Format, {
62             thousandSeparator: '.',
63             decimalSeparator: ',',
64             currencySign: '\u00a5',  // Chinese Yuan
65             dateFormat: 'Y/m/d'
66         });
67     }
68
69     if(Roo.DatePicker){
70         Roo.apply(Roo.DatePicker.prototype, {
71             todayText         : "今天",
72             minText           : "日期必須大於最小容許日期",
73             maxText           : "日期必須小於最大容許日期",
74             disabledDaysText  : "",
75             disabledDatesText : "",
76             monthNames        : Date.monthNames,
77             dayNames          : Date.dayNames,
78             nextText          : "下個月 (Ctrl+右方向鍵)",
79             prevText          : "上個月 (Ctrl+左方向鍵)",
80             monthYearText     : "選擇月份 (Ctrl+上/下方向鍵選擇年份)",
81             todayTip          : "{0} (空白鍵)",
82             format            : "y/m/d"
83         });
84     }
85
86    
87     if(Roo.PagingToolbar){
88         Roo.apply(Roo.PagingToolbar.prototype, {
89             beforePageText : "第",
90             afterPageText  : "頁,共{0}頁",
91             firstText      : "第一頁",
92             prevText       : "上一頁",
93             nextText       : "下一頁",
94             lastText       : "最後頁",
95             refreshText    : "重新整理",
96             displayMsg     : "顯示{0} - {1}筆,共{2}筆",
97             emptyMsg       : '沒有任何資料'
98         });
99     }
100
101     if(Roo.form.TextField){
102         Roo.apply(Roo.form.TextField.prototype, {
103             minLengthText : "此欄位最少要輸入 {0} 個字",
104             maxLengthText : "此欄位最多輸入 {0} 個字",
105             blankText     : "此欄位為必填",
106             regexText     : "",
107             emptyText     : null
108         });
109     }
110
111     if(Roo.form.NumberField){
112         Roo.apply(Roo.form.NumberField.prototype, {
113             minText : "此欄位之數值必須大於 {0}",
114             maxText : "此欄位之數值必須小於 {0}",
115             nanText : "{0} 不是合法的數字"
116         });
117     }
118
119     if(Roo.form.DateField){
120         Roo.apply(Roo.form.DateField.prototype, {
121             disabledDaysText  : "無法使用",
122             disabledDatesText : "無法使用",
123             minText           : "此欄位之日期必須在 {0} 之後",
124             maxText           : "此欄位之日期必須在 {0} 之前",
125             invalidText       : "{0} 不是正確的日期格式 - 必須像是 「 {1} 」 這樣的格式",
126             format            : "Y/m/d"
127         });
128     }
129
130     if(Roo.form.ComboBox){
131         Roo.apply(Roo.form.ComboBox.prototype, {
132             loadingText       : "讀取中 ...",
133             valueNotFoundText : undefined
134         });
135     }
136
137     if(Roo.form.VTypes){
138         Roo.apply(Roo.form.VTypes, {
139             emailText    : '此欄位必須輸入像 "user@example.com" 之E-Mail格式',
140             urlText      : '此欄位必須輸入像 "http:/'+'/www.example.com" 之網址格式',
141             alphaText    : '此欄位僅能輸入半形英文字母及底線( _ )符號',
142             alphanumText : '此欄位僅能輸入半形英文字母、數字及底線( _ )符號'
143         });
144     }
145
146     if(Roo.grid.GridView){
147         Roo.apply(Roo.grid.GridView.prototype, {
148             sortAscText  : "正向排序",
149             sortDescText : "反向排序",
150             lockText     : "鎖定欄位",
151             unlockText   : "解開欄位鎖定",
152             columnsText  : "欄位"
153         });
154     }
155
156     if(Roo.grid.PropertyColumnModel){
157         Roo.apply(Roo.grid.PropertyColumnModel.prototype, {
158             nameText   : "名稱",
159             valueText  : "數值",
160             dateFormat : "Y/m/d"
161         });
162     }
163
164     if(Roo.SplitLayoutRegion){
165         Roo.apply(Roo.SplitLayoutRegion.prototype, {
166             splitTip            : "拖曳縮放大小.",
167             collapsibleSplitTip : "拖曳縮放大小. 滑鼠雙擊隱藏."
168         });
169     }
170 });