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