1 | /*! |
---|
2 | * Ext JS Library 3.0.0 |
---|
3 | * Copyright(c) 2006-2009 Ext JS, LLC |
---|
4 | * licensing@extjs.com |
---|
5 | * http://www.extjs.com/license |
---|
6 | */ |
---|
7 | /* |
---|
8 | * Japanese translation |
---|
9 | * By tyama |
---|
10 | * 04-08-2007, 05:49 AM |
---|
11 | * |
---|
12 | * update based on English Translations by Condor (8 Aug 2008) |
---|
13 | * By sakuro (30 Aug 2008) |
---|
14 | */ |
---|
15 | |
---|
16 | Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">読み込み中...</div>'; |
---|
17 | |
---|
18 | if(Ext.DataView){ |
---|
19 | Ext.DataView.prototype.emptyText = ""; |
---|
20 | } |
---|
21 | |
---|
22 | if(Ext.grid.GridPanel){ |
---|
23 | Ext.grid.GridPanel.prototype.ddText = "{0} 行選択"; |
---|
24 | } |
---|
25 | |
---|
26 | if(Ext.LoadMask){ |
---|
27 | Ext.LoadMask.prototype.msg = "読み込み中..."; |
---|
28 | } |
---|
29 | |
---|
30 | Date.monthNames = [ |
---|
31 | '1月', |
---|
32 | '2月', |
---|
33 | '3月', |
---|
34 | '4月', |
---|
35 | '5月', |
---|
36 | '6月', |
---|
37 | '7月', |
---|
38 | '8月', |
---|
39 | '9月', |
---|
40 | '10月', |
---|
41 | '11月', |
---|
42 | '12月' |
---|
43 | ]; |
---|
44 | |
---|
45 | Date.getShortMonthName = function(month) { |
---|
46 | return "" + (month + 1); |
---|
47 | }; |
---|
48 | |
---|
49 | Date.monthNumbers = { |
---|
50 | "1" : 0, |
---|
51 | "2" : 1, |
---|
52 | "3" : 2, |
---|
53 | "4" : 3, |
---|
54 | "5" : 4, |
---|
55 | "6" : 5, |
---|
56 | "7" : 6, |
---|
57 | "8" : 7, |
---|
58 | "9" : 8, |
---|
59 | "10" : 9, |
---|
60 | "11" : 10, |
---|
61 | "12" : 11 |
---|
62 | }; |
---|
63 | |
---|
64 | Date.getMonthNumber = function(name) { |
---|
65 | return Date.monthNumbers[name.substring(0, name.length - 1)]; |
---|
66 | // or simply parseInt(name.substring(0, name.length - 1)) - 1 |
---|
67 | }; |
---|
68 | |
---|
69 | Date.dayNames = [ |
---|
70 | "日曜日", |
---|
71 | "月曜日", |
---|
72 | "火曜日", |
---|
73 | "水曜日", |
---|
74 | "木曜日", |
---|
75 | "金曜日", |
---|
76 | "土曜日" |
---|
77 | ]; |
---|
78 | |
---|
79 | Date.getShortDayName = function(day) { |
---|
80 | return Date.dayNames[day].substring(0, 1); // just remove "曜日" suffix |
---|
81 | }; |
---|
82 | |
---|
83 | Date.formatCodes.a = "(this.getHours() < 12 ? '午前' : '午後')"; |
---|
84 | Date.formatCodes.A = "(this.getHours() < 12 ? '午前' : '午後')"; // no case difference |
---|
85 | |
---|
86 | if(Ext.MessageBox){ |
---|
87 | Ext.MessageBox.buttonText = { |
---|
88 | ok : "OK", |
---|
89 | cancel : "キャンセル", |
---|
90 | yes : "はい", |
---|
91 | no : "いいえ" |
---|
92 | }; |
---|
93 | } |
---|
94 | |
---|
95 | if(Ext.util.Format){ |
---|
96 | Ext.util.Format.date = function(v, format){ |
---|
97 | if(!v) return ""; |
---|
98 | if(!(v instanceof Date)) v = new Date(Date.parse(v)); |
---|
99 | return v.dateFormat(format || "Y/m/d"); |
---|
100 | }; |
---|
101 | } |
---|
102 | |
---|
103 | if(Ext.DatePicker){ |
---|
104 | Ext.apply(Ext.DatePicker.prototype, { |
---|
105 | todayText : "今日", |
---|
106 | minText : "選択した日付は最小値以下です。", |
---|
107 | maxText : "選択した日付は最大値以上です。", |
---|
108 | disabledDaysText : "", |
---|
109 | disabledDatesText : "", |
---|
110 | monthNames : Date.monthNames, |
---|
111 | dayNames : Date.dayNames, |
---|
112 | nextText : '次月へ (コントロール+右)', |
---|
113 | prevText : '前月へ (コントロール+左)', |
---|
114 | monthYearText : '月選択 (コントロール+上/下で年移動)', |
---|
115 | todayTip : "{0} (スペースキー)", |
---|
116 | format : "Y/m/d", |
---|
117 | okText : "OK", |
---|
118 | cancelText : "キャンセル", |
---|
119 | startDay : 0 |
---|
120 | }); |
---|
121 | } |
---|
122 | |
---|
123 | if(Ext.PagingToolbar){ |
---|
124 | Ext.apply(Ext.PagingToolbar.prototype, { |
---|
125 | beforePageText : "ページ", |
---|
126 | afterPageText : "/ {0}", |
---|
127 | firstText : "最初のページ", |
---|
128 | prevText : "前のページ", |
---|
129 | nextText : "次のページ", |
---|
130 | lastText : "最後のページ", |
---|
131 | refreshText : "更新", |
---|
132 | displayMsg : "{2} 件中 {0} - {1} を表示", |
---|
133 | emptyMsg : '表示するデータがありません。' |
---|
134 | }); |
---|
135 | } |
---|
136 | |
---|
137 | if(Ext.form.Field){ |
---|
138 | Ext.form.Field.prototype.invalidText = "フィールドの値が不正です。"; |
---|
139 | } |
---|
140 | |
---|
141 | if(Ext.form.TextField){ |
---|
142 | Ext.apply(Ext.form.TextField.prototype, { |
---|
143 | minLengthText : "このフィールドの最小値は {0} です。", |
---|
144 | maxLengthText : "このフィールドの最大値は {0} です。", |
---|
145 | blankText : "必須項目です。", |
---|
146 | regexText : "", |
---|
147 | emptyText : null |
---|
148 | }); |
---|
149 | } |
---|
150 | |
---|
151 | if(Ext.form.NumberField){ |
---|
152 | Ext.apply(Ext.form.NumberField.prototype, { |
---|
153 | decimalSeparator : ".", |
---|
154 | decimalPrecision : 2, |
---|
155 | minText : "このフィールドの最小値は {0} です。", |
---|
156 | maxText : "このフィールドの最大値は {0} です。", |
---|
157 | nanText : "{0} は数値ではありません。" |
---|
158 | }); |
---|
159 | } |
---|
160 | |
---|
161 | if(Ext.form.DateField){ |
---|
162 | Ext.apply(Ext.form.DateField.prototype, { |
---|
163 | disabledDaysText : "無効", |
---|
164 | disabledDatesText : "無効", |
---|
165 | minText : "このフィールドの日付は、 {0} 以降の日付に設定してください。", |
---|
166 | maxText : "このフィールドの日付は、 {0} 以前の日付に設定してください。", |
---|
167 | invalidText : "{0} は間違った日付入力です。 - 入力形式は「{1}」です。", |
---|
168 | format : "Y/m/d", |
---|
169 | altFormats : "y/m/d|m/d/y|m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d" |
---|
170 | }); |
---|
171 | } |
---|
172 | |
---|
173 | if(Ext.form.ComboBox){ |
---|
174 | Ext.apply(Ext.form.ComboBox.prototype, { |
---|
175 | loadingText : "読み込み中...", |
---|
176 | valueNotFoundText : undefined |
---|
177 | }); |
---|
178 | } |
---|
179 | |
---|
180 | if(Ext.form.VTypes){ |
---|
181 | Ext.apply(Ext.form.VTypes, { |
---|
182 | emailText : 'メールアドレスを"user@example.com"の形式で入力してください。', |
---|
183 | urlText : 'URLを"http:/'+'/www.example.com"の形式で入力してください。', |
---|
184 | alphaText : '半角英字と"_"のみです。', |
---|
185 | alphanumText : '半角英数と"_"のみです。' |
---|
186 | }); |
---|
187 | } |
---|
188 | |
---|
189 | if(Ext.form.HtmlEditor){ |
---|
190 | Ext.apply(Ext.form.HtmlEditor.prototype, { |
---|
191 | createLinkText : 'リンクのURLを入力してください:', |
---|
192 | buttonTips : { |
---|
193 | bold : { |
---|
194 | title: '太字 (コントロール+B)', |
---|
195 | text: '選択テキストを太字にします。', |
---|
196 | cls: 'x-html-editor-tip' |
---|
197 | }, |
---|
198 | italic : { |
---|
199 | title: '斜体 (コントロール+I)', |
---|
200 | text: '選択テキストを斜体にします。', |
---|
201 | cls: 'x-html-editor-tip' |
---|
202 | }, |
---|
203 | underline : { |
---|
204 | title: '下線 (コントロール+U)', |
---|
205 | text: '選択テキストに下線を引きます。', |
---|
206 | cls: 'x-html-editor-tip' |
---|
207 | }, |
---|
208 | increasefontsize : { |
---|
209 | title: '文字を大きく', |
---|
210 | text: 'フォントサイズを大きくします。', |
---|
211 | cls: 'x-html-editor-tip' |
---|
212 | }, |
---|
213 | decreasefontsize : { |
---|
214 | title: '文字を小さく', |
---|
215 | text: 'フォントサイズを小さくします。', |
---|
216 | cls: 'x-html-editor-tip' |
---|
217 | }, |
---|
218 | backcolor : { |
---|
219 | title: '文字のハイライト', |
---|
220 | text: '選択テキストの背景色を変更します。', |
---|
221 | cls: 'x-html-editor-tip' |
---|
222 | }, |
---|
223 | forecolor : { |
---|
224 | title: '文字の色', |
---|
225 | text: '選択テキストの色を変更します。', |
---|
226 | cls: 'x-html-editor-tip' |
---|
227 | }, |
---|
228 | justifyleft : { |
---|
229 | title: '左揃え', |
---|
230 | text: 'テキストを左揃えにします。', |
---|
231 | cls: 'x-html-editor-tip' |
---|
232 | }, |
---|
233 | justifycenter : { |
---|
234 | title: '中央揃え', |
---|
235 | text: 'テキストを中央揃えにします。', |
---|
236 | cls: 'x-html-editor-tip' |
---|
237 | }, |
---|
238 | justifyright : { |
---|
239 | title: '右揃え', |
---|
240 | text: 'テキストを右揃えにします。', |
---|
241 | cls: 'x-html-editor-tip' |
---|
242 | }, |
---|
243 | insertunorderedlist : { |
---|
244 | title: '番号なし箇条書き', |
---|
245 | text: '番号なし箇条書きを開始します。', |
---|
246 | cls: 'x-html-editor-tip' |
---|
247 | }, |
---|
248 | insertorderedlist : { |
---|
249 | title: '番号付き箇条書き', |
---|
250 | text: '番号付き箇条書きを開始します。', |
---|
251 | cls: 'x-html-editor-tip' |
---|
252 | }, |
---|
253 | createlink : { |
---|
254 | title: 'ハイパーリンク', |
---|
255 | text: '選択テキストをハイパーリンクにします。', |
---|
256 | cls: 'x-html-editor-tip' |
---|
257 | }, |
---|
258 | sourceedit : { |
---|
259 | title: 'ソース編集', |
---|
260 | text: 'ソース編集モードに切り替えます。', |
---|
261 | cls: 'x-html-editor-tip' |
---|
262 | } |
---|
263 | } |
---|
264 | }); |
---|
265 | } |
---|
266 | |
---|
267 | if(Ext.grid.GridView){ |
---|
268 | Ext.apply(Ext.grid.GridView.prototype, { |
---|
269 | sortAscText : "昇順", |
---|
270 | sortDescText : "降順", |
---|
271 | columnsText : "カラム" |
---|
272 | }); |
---|
273 | } |
---|
274 | |
---|
275 | if(Ext.grid.GroupingView){ |
---|
276 | Ext.apply(Ext.grid.GroupingView.prototype, { |
---|
277 | emptyGroupText : '(なし)', |
---|
278 | groupByText : 'このカラムでグルーピング', |
---|
279 | showGroupsText : 'グルーピング' |
---|
280 | }); |
---|
281 | } |
---|
282 | |
---|
283 | if(Ext.grid.PropertyColumnModel){ |
---|
284 | Ext.apply(Ext.grid.PropertyColumnModel.prototype, { |
---|
285 | nameText : "名称", |
---|
286 | valueText : "値", |
---|
287 | dateFormat : "Y/m/d" |
---|
288 | }); |
---|
289 | } |
---|
290 | |
---|
291 | if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){ |
---|
292 | Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, { |
---|
293 | splitTip : "ドラッグするとリサイズできます。", |
---|
294 | collapsibleSplitTip : "ドラッグでリサイズ。 ダブルクリックで隠す。" |
---|
295 | }); |
---|
296 | } |
---|
297 | |
---|
298 | if(Ext.form.TimeField){ |
---|
299 | Ext.apply(Ext.form.TimeField.prototype, { |
---|
300 | minText : "このフィールドの時刻は、 {0} 以降の時刻に設定してください。", |
---|
301 | maxText : "このフィールドの時刻は、 {0} 以前の時刻に設定してください。", |
---|
302 | invalidText : "{0} は間違った時刻入力です。", |
---|
303 | format : "g:i A", |
---|
304 | altFormats : "g:ia|g:iA|g:i a|g:i A|h:i|g:i|H:i|ga|ha|gA|h a|g a|g A|gi|hi|gia|hia|g|H" |
---|
305 | }); |
---|
306 | } |
---|
307 | |
---|
308 | if(Ext.form.CheckboxGroup){ |
---|
309 | Ext.apply(Ext.form.CheckboxGroup.prototype, { |
---|
310 | blankText : "このグループから最低1つのアイテムを選択しなければなりません。" |
---|
311 | }); |
---|
312 | } |
---|
313 | |
---|
314 | if(Ext.form.RadioGroup){ |
---|
315 | Ext.apply(Ext.form.RadioGroup.prototype, { |
---|
316 | blankText : "このグループから1つのアイテムを選択しなければなりません。" |
---|
317 | }); |
---|
318 | } |
---|