3 * Copyright(c) 2006-2009 Ext JS, LLC
5 * http://www.extjs.com/license
10 * 04-08-2007, 05:49 AM
12 * update based on English Translations by Condor (8 Aug 2008)
13 * By sakuro (30 Aug 2008)
16 Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">読み込み中...</div>';
19 Ext.DataView.prototype.emptyText = "";
22 if(Ext.grid.GridPanel){
23 Ext.grid.GridPanel.prototype.ddText = "{0} 行選択";
27 Ext.LoadMask.prototype.msg = "読み込み中...";
45 Date.getShortMonthName = function(month) {
46 return "" + (month + 1);
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
79 Date.getShortDayName = function(day) {
80 return Date.dayNames[day].substring(0, 1); // just remove "曜日" suffix
83 Date.formatCodes.a = "(this.getHours() < 12 ? '午前' : '午後')";
84 Date.formatCodes.A = "(this.getHours() < 12 ? '午前' : '午後')"; // no case difference
87 Ext.MessageBox.buttonText = {
96 Ext.util.Format.date = function(v, format){
98 if(!(v instanceof Date)) v = new Date(Date.parse(v));
99 return v.dateFormat(format || "Y/m/d");
104 Ext.apply(Ext.DatePicker.prototype, {
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} (スペースキー)",
118 cancelText : "キャンセル",
123 if(Ext.PagingToolbar){
124 Ext.apply(Ext.PagingToolbar.prototype, {
125 beforePageText : "ページ",
126 afterPageText : "/ {0}",
127 firstText : "最初のページ",
132 displayMsg : "{2} 件中 {0} - {1} を表示",
133 emptyMsg : '表示するデータがありません。'
138 Ext.form.Field.prototype.invalidText = "フィールドの値が不正です。";
141 if(Ext.form.TextField){
142 Ext.apply(Ext.form.TextField.prototype, {
143 minLengthText : "このフィールドの最小値は {0} です。",
144 maxLengthText : "このフィールドの最大値は {0} です。",
145 blankText : "必須項目です。",
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} は数値ではありません。"
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}」です。",
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"
173 if(Ext.form.ComboBox){
174 Ext.apply(Ext.form.ComboBox.prototype, {
175 loadingText : "読み込み中...",
176 valueNotFoundText : undefined
181 Ext.apply(Ext.form.VTypes, {
182 emailText : 'メールアドレスを"user@example.com"の形式で入力してください。',
183 urlText : 'URLを"http:/'+'/www.example.com"の形式で入力してください。',
184 alphaText : '半角英字と"_"のみです。',
185 alphanumText : '半角英数と"_"のみです。'
189 if(Ext.form.HtmlEditor){
190 Ext.apply(Ext.form.HtmlEditor.prototype, {
191 createLinkText : 'リンクのURLを入力してください:',
194 title: '太字 (コントロール+B)',
195 text: '選択テキストを太字にします。',
196 cls: 'x-html-editor-tip'
199 title: '斜体 (コントロール+I)',
200 text: '選択テキストを斜体にします。',
201 cls: 'x-html-editor-tip'
204 title: '下線 (コントロール+U)',
205 text: '選択テキストに下線を引きます。',
206 cls: 'x-html-editor-tip'
210 text: 'フォントサイズを大きくします。',
211 cls: 'x-html-editor-tip'
215 text: 'フォントサイズを小さくします。',
216 cls: 'x-html-editor-tip'
220 text: '選択テキストの背景色を変更します。',
221 cls: 'x-html-editor-tip'
225 text: '選択テキストの色を変更します。',
226 cls: 'x-html-editor-tip'
230 text: 'テキストを左揃えにします。',
231 cls: 'x-html-editor-tip'
235 text: 'テキストを中央揃えにします。',
236 cls: 'x-html-editor-tip'
240 text: 'テキストを右揃えにします。',
241 cls: 'x-html-editor-tip'
243 insertunorderedlist : {
245 text: '番号なし箇条書きを開始します。',
246 cls: 'x-html-editor-tip'
248 insertorderedlist : {
250 text: '番号付き箇条書きを開始します。',
251 cls: 'x-html-editor-tip'
255 text: '選択テキストをハイパーリンクにします。',
256 cls: 'x-html-editor-tip'
260 text: 'ソース編集モードに切り替えます。',
261 cls: 'x-html-editor-tip'
267 if(Ext.grid.GridView){
268 Ext.apply(Ext.grid.GridView.prototype, {
275 if(Ext.grid.GroupingView){
276 Ext.apply(Ext.grid.GroupingView.prototype, {
277 emptyGroupText : '(なし)',
278 groupByText : 'このカラムでグルーピング',
279 showGroupsText : 'グルーピング'
283 if(Ext.grid.PropertyColumnModel){
284 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
291 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
292 Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
293 splitTip : "ドラッグするとリサイズできます。",
294 collapsibleSplitTip : "ドラッグでリサイズ。 ダブルクリックで隠す。"
298 if(Ext.form.TimeField){
299 Ext.apply(Ext.form.TimeField.prototype, {
300 minText : "このフィールドの時刻は、 {0} 以降の時刻に設定してください。",
301 maxText : "このフィールドの時刻は、 {0} 以前の時刻に設定してください。",
302 invalidText : "{0} は間違った時刻入力です。",
304 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"
308 if(Ext.form.CheckboxGroup){
309 Ext.apply(Ext.form.CheckboxGroup.prototype, {
310 blankText : "このグループから最低1つのアイテムを選択しなければなりません。"
314 if(Ext.form.RadioGroup){
315 Ext.apply(Ext.form.RadioGroup.prototype, {
316 blankText : "このグループから1つのアイテムを選択しなければなりません。"