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