Upgrade to ExtJS 3.3.1 - Released 11/30/2010
[extjs.git] / src / locale / ext-lang-ja.js
1 /*!
2  * Ext JS Library 3.3.1
3  * Copyright(c) 2006-2010 Sencha Inc.
4  * licensing@sencha.com
5  * http://www.sencha.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     startDay          : 0
171   });
172 }
173
174 if(Ext.form.ComboBox){
175   Ext.apply(Ext.form.ComboBox.prototype, {
176     loadingText       : "読み込み中...",
177     valueNotFoundText : undefined
178   });
179 }
180
181 if(Ext.form.VTypes){
182   Ext.apply(Ext.form.VTypes, {
183     emailText    : 'メールアドレスを"user@example.com"の形式で入力してください。',
184     urlText      : 'URLを"http:/'+'/www.example.com"の形式で入力してください。',
185     alphaText    : '半角英字と"_"のみです。',
186     alphanumText : '半角英数と"_"のみです。'
187   });
188 }
189
190 if(Ext.form.HtmlEditor){
191   Ext.apply(Ext.form.HtmlEditor.prototype, {
192     createLinkText : 'リンクのURLを入力してください:',
193     buttonTips : {
194       bold : {
195         title: '太字 (コントロール+B)',
196         text: '選択テキストを太字にします。',
197         cls: 'x-html-editor-tip'
198       },
199       italic : {
200         title: '斜体 (コントロール+I)',
201         text: '選択テキストを斜体にします。',
202         cls: 'x-html-editor-tip'
203       },
204       underline : {
205         title: '下線 (コントロール+U)',
206         text: '選択テキストに下線を引きます。',
207         cls: 'x-html-editor-tip'
208       },
209       increasefontsize : {
210         title: '文字を大きく',
211         text: 'フォントサイズを大きくします。',
212         cls: 'x-html-editor-tip'
213       },
214       decreasefontsize : {
215         title: '文字を小さく',
216         text: 'フォントサイズを小さくします。',
217         cls: 'x-html-editor-tip'
218       },
219       backcolor : {
220         title: '文字のハイライト',
221         text: '選択テキストの背景色を変更します。',
222         cls: 'x-html-editor-tip'
223       },
224       forecolor : {
225         title: '文字の色',
226         text: '選択テキストの色を変更します。',
227         cls: 'x-html-editor-tip'
228       },
229       justifyleft : {
230         title: '左揃え',
231         text: 'テキストを左揃えにします。',
232         cls: 'x-html-editor-tip'
233       },
234       justifycenter : {
235         title: '中央揃え',
236         text: 'テキストを中央揃えにします。',
237         cls: 'x-html-editor-tip'
238       },
239       justifyright : {
240         title: '右揃え',
241         text: 'テキストを右揃えにします。',
242         cls: 'x-html-editor-tip'
243       },
244       insertunorderedlist : {
245         title: '番号なし箇条書き',
246         text: '番号なし箇条書きを開始します。',
247         cls: 'x-html-editor-tip'
248       },
249       insertorderedlist : {
250         title: '番号付き箇条書き',
251         text: '番号付き箇条書きを開始します。',
252         cls: 'x-html-editor-tip'
253       },
254       createlink : {
255         title: 'ハイパーリンク',
256         text: '選択テキストをハイパーリンクにします。',
257         cls: 'x-html-editor-tip'
258       },
259       sourceedit : {
260         title: 'ソース編集',
261         text: 'ソース編集モードに切り替えます。',
262         cls: 'x-html-editor-tip'
263       }
264     }
265   });
266 }
267
268 if(Ext.grid.GridView){
269   Ext.apply(Ext.grid.GridView.prototype, {
270     sortAscText  : "昇順",
271     sortDescText : "降順",
272     columnsText  : "カラム"
273   });
274 }
275
276 if(Ext.grid.GroupingView){
277   Ext.apply(Ext.grid.GroupingView.prototype, {
278     emptyGroupText : '(なし)',
279     groupByText    : 'このカラムでグルーピング',
280     showGroupsText : 'グルーピング'
281   });
282 }
283
284 if(Ext.grid.PropertyColumnModel){
285   Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
286     nameText   : "名称",
287     valueText  : "値",
288     dateFormat : "Y/m/d"
289   });
290 }
291
292 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
293   Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
294     splitTip            : "ドラッグするとリサイズできます。",
295     collapsibleSplitTip : "ドラッグでリサイズ。 ダブルクリックで隠す。"
296   });
297 }
298
299 if(Ext.form.TimeField){
300   Ext.apply(Ext.form.TimeField.prototype, {
301     minText : "このフィールドの時刻は、 {0} 以降の時刻に設定してください。",
302     maxText : "このフィールドの時刻は、 {0} 以前の時刻に設定してください。",
303     invalidText : "{0} は間違った時刻入力です。",
304     format : "g:i A",
305     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"
306   });
307 }
308
309 if(Ext.form.CheckboxGroup){
310   Ext.apply(Ext.form.CheckboxGroup.prototype, {
311     blankText : "このグループから最低1つのアイテムを選択しなければなりません。"
312   });
313 }
314
315 if(Ext.form.RadioGroup){
316   Ext.apply(Ext.form.RadioGroup.prototype, {
317     blankText : "このグループから1つのアイテムを選択しなければなりません。"
318   });
319 }