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