3 * Copyright(c) 2006-2010 Sencha Inc.
5 * http://www.sencha.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",
174 if(Ext.form.ComboBox){
175 Ext.apply(Ext.form.ComboBox.prototype, {
176 loadingText : "読み込み中...",
177 valueNotFoundText : undefined
182 Ext.apply(Ext.form.VTypes, {
183 emailText : 'メールアドレスを"user@example.com"の形式で入力してください。',
184 urlText : 'URLを"http:/'+'/www.example.com"の形式で入力してください。',
185 alphaText : '半角英字と"_"のみです。',
186 alphanumText : '半角英数と"_"のみです。'
190 if(Ext.form.HtmlEditor){
191 Ext.apply(Ext.form.HtmlEditor.prototype, {
192 createLinkText : 'リンクのURLを入力してください:',
195 title: '太字 (コントロール+B)',
196 text: '選択テキストを太字にします。',
197 cls: 'x-html-editor-tip'
200 title: '斜体 (コントロール+I)',
201 text: '選択テキストを斜体にします。',
202 cls: 'x-html-editor-tip'
205 title: '下線 (コントロール+U)',
206 text: '選択テキストに下線を引きます。',
207 cls: 'x-html-editor-tip'
211 text: 'フォントサイズを大きくします。',
212 cls: 'x-html-editor-tip'
216 text: 'フォントサイズを小さくします。',
217 cls: 'x-html-editor-tip'
221 text: '選択テキストの背景色を変更します。',
222 cls: 'x-html-editor-tip'
226 text: '選択テキストの色を変更します。',
227 cls: 'x-html-editor-tip'
231 text: 'テキストを左揃えにします。',
232 cls: 'x-html-editor-tip'
236 text: 'テキストを中央揃えにします。',
237 cls: 'x-html-editor-tip'
241 text: 'テキストを右揃えにします。',
242 cls: 'x-html-editor-tip'
244 insertunorderedlist : {
246 text: '番号なし箇条書きを開始します。',
247 cls: 'x-html-editor-tip'
249 insertorderedlist : {
251 text: '番号付き箇条書きを開始します。',
252 cls: 'x-html-editor-tip'
256 text: '選択テキストをハイパーリンクにします。',
257 cls: 'x-html-editor-tip'
261 text: 'ソース編集モードに切り替えます。',
262 cls: 'x-html-editor-tip'
268 if(Ext.grid.GridView){
269 Ext.apply(Ext.grid.GridView.prototype, {
276 if(Ext.grid.GroupingView){
277 Ext.apply(Ext.grid.GroupingView.prototype, {
278 emptyGroupText : '(なし)',
279 groupByText : 'このカラムでグルーピング',
280 showGroupsText : 'グルーピング'
284 if(Ext.grid.PropertyColumnModel){
285 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
292 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
293 Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
294 splitTip : "ドラッグするとリサイズできます。",
295 collapsibleSplitTip : "ドラッグでリサイズ。 ダブルクリックで隠す。"
299 if(Ext.form.TimeField){
300 Ext.apply(Ext.form.TimeField.prototype, {
301 minText : "このフィールドの時刻は、 {0} 以降の時刻に設定してください。",
302 maxText : "このフィールドの時刻は、 {0} 以前の時刻に設定してください。",
303 invalidText : "{0} は間違った時刻入力です。",
305 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 if(Ext.form.CheckboxGroup){
310 Ext.apply(Ext.form.CheckboxGroup.prototype, {
311 blankText : "このグループから最低1つのアイテムを選択しなければなりません。"
315 if(Ext.form.RadioGroup){
316 Ext.apply(Ext.form.RadioGroup.prototype, {
317 blankText : "このグループから1つのアイテムを選択しなければなりません。"