3 <title>The source code</title>
\r
4 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
\r
5 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
\r
7 <body onload="prettyPrint();">
\r
8 <pre class="prettyprint lang-js">/*
11 * 04-08-2007, 05:49 AM
13 * update based on English Translations by Condor (8 Aug 2008)
14 * By sakuro (30 Aug 2008)
17 Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">読み込み中...</div>';
20 Ext.DataView.prototype.emptyText = "";
23 if(Ext.grid.GridPanel){
24 Ext.grid.GridPanel.prototype.ddText = "{0} 行選択";
28 Ext.LoadMask.prototype.msg = "読み込み中...";
46 Date.getShortMonthName = function(month) {
47 return "" + (month + 1);
65 Date.getMonthNumber = function(name) {
66 return Date.monthNumbers[name.substring(0, name.length - 1)];
67 // or simply parseInt(name.substring(0, name.length - 1)) - 1
80 Date.getShortDayName = function(day) {
81 return Date.dayNames[day].substring(0, 1); // just remove "曜日" suffix
84 Date.formatCodes.a = "(this.getHours() < 12 ? '午前' : '午後')";
85 Date.formatCodes.A = "(this.getHours() < 12 ? '午前' : '午後')"; // no case difference
88 Ext.MessageBox.buttonText = {
97 Ext.util.Format.date = function(v, format){
99 if(!(v instanceof Date)) v = new Date(Date.parse(v));
100 return v.dateFormat(format || "Y/m/d");
105 Ext.apply(Ext.DatePicker.prototype, {
107 minText : "選択した日付は最小値以下です。",
108 maxText : "選択した日付は最大値以上です。",
109 disabledDaysText : "",
110 disabledDatesText : "",
111 monthNames : Date.monthNames,
112 dayNames : Date.dayNames,
113 nextText : '次月へ (コントロール+右)',
114 prevText : '前月へ (コントロール+左)',
115 monthYearText : '月選択 (コントロール+上/下で年移動)',
116 todayTip : "{0} (スペースキー)",
119 cancelText : "キャンセル",
124 if(Ext.PagingToolbar){
125 Ext.apply(Ext.PagingToolbar.prototype, {
126 beforePageText : "ページ",
127 afterPageText : "/ {0}",
128 firstText : "最初のページ",
133 displayMsg : "{2} 件中 {0} - {1} を表示",
134 emptyMsg : '表示するデータがありません。'
139 Ext.form.Field.prototype.invalidText = "フィールドの値が不正です。";
142 if(Ext.form.TextField){
143 Ext.apply(Ext.form.TextField.prototype, {
144 minLengthText : "このフィールドの最小値は {0} です。",
145 maxLengthText : "このフィールドの最大値は {0} です。",
146 blankText : "必須項目です。",
152 if(Ext.form.NumberField){
153 Ext.apply(Ext.form.NumberField.prototype, {
154 decimalSeparator : ".",
155 decimalPrecision : 2,
156 minText : "このフィールドの最小値は {0} です。",
157 maxText : "このフィールドの最大値は {0} です。",
158 nanText : "{0} は数値ではありません。"
162 if(Ext.form.DateField){
163 Ext.apply(Ext.form.DateField.prototype, {
164 disabledDaysText : "無効",
165 disabledDatesText : "無効",
166 minText : "このフィールドの日付は、 {0} 以降の日付に設定してください。",
167 maxText : "このフィールドの日付は、 {0} 以前の日付に設定してください。",
168 invalidText : "{0} は間違った日付入力です。 - 入力形式は「{1}」です。",
170 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つのアイテムを選択しなければなりません。"