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