/*!
 * Ext JS Library 3.0.3
 * Copyright(c) 2006-2009 Ext JS, LLC
 * licensing@extjs.com
 * http://www.extjs.com/license
 */
/*
 * Japanese translation
 * By tyama
 * 04-08-2007, 05:49 AM
 *
 * update based on English Translations by Condor (8 Aug 2008)
 * By sakuro (30 Aug 2008)
 */

Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">èª­ã?¿è¾¼ã?¿ä¸­...</div>';

if(Ext.DataView){
  Ext.DataView.prototype.emptyText = "";
}

if(Ext.grid.GridPanel){
  Ext.grid.GridPanel.prototype.ddText = "{0} è¡Œé?¸æŠž";
}

if(Ext.LoadMask){
  Ext.LoadMask.prototype.msg = "èª­ã?¿è¾¼ã?¿ä¸­...";
}

Date.monthNames = [
  '1æœˆ',
  '2æœˆ',
  '3æœˆ',
  '4æœˆ',
  '5æœˆ',
  '6æœˆ',
  '7æœˆ',
  '8æœˆ',
  '9æœˆ',
  '10æœˆ',
  '11æœˆ',
  '12æœˆ'
];

Date.getShortMonthName = function(month) {
  return "" + (month + 1);
};

Date.monthNumbers = {
  "1" : 0,
  "2" : 1,
  "3" : 2,
  "4" : 3,
  "5" : 4,
  "6" : 5,
  "7" : 6,
  "8" : 7,
  "9" : 8,
  "10" : 9,
  "11" : 10,
  "12" : 11
};

Date.getMonthNumber = function(name) {
  return Date.monthNumbers[name.substring(0, name.length - 1)];
  // or simply parseInt(name.substring(0, name.length - 1)) - 1
};

Date.dayNames = [
  "æ—¥æ›œæ—¥",
  "æœˆæ›œæ—¥",
  "ç?«æ›œæ—¥",
  "æ°´æ›œæ—¥",
  "æœ¨æ›œæ—¥",
  "é‡‘æ›œæ—¥",
  "åœŸæ›œæ—¥"
];

Date.getShortDayName = function(day) {
  return Date.dayNames[day].substring(0, 1); // just remove "æ›œæ—¥" suffix
};

Date.formatCodes.a = "(this.getHours() < 12 ? 'å?ˆå‰?' : 'å?ˆå¾Œ')";
Date.formatCodes.A = "(this.getHours() < 12 ? 'å?ˆå‰?' : 'å?ˆå¾Œ')"; // no case difference

if(Ext.MessageBox){
  Ext.MessageBox.buttonText = {
    ok     : "OK",
    cancel : "ã‚­ãƒ£ãƒ³ã‚»ãƒ«",
    yes    : "ã?¯ã?„",
    no     : "ã?„ã?„ã?ˆ"
  };
}

if(Ext.util.Format){
  Ext.util.Format.date = function(v, format){
    if(!v) return "";
    if(!(v instanceof Date)) v = new Date(Date.parse(v));
    return v.dateFormat(format || "Y/m/d");
  };
}

if(Ext.DatePicker){
  Ext.apply(Ext.DatePicker.prototype, {
    todayText         : "ä»Šæ—¥",
    minText           : "é?¸æŠžã?—ã?Ÿæ—¥ä»˜ã?¯æœ€å°?å€¤ä»¥ä¸‹ã?§ã?™ã€‚",
    maxText           : "é?¸æŠžã?—ã?Ÿæ—¥ä»˜ã?¯æœ€å¤§å€¤ä»¥ä¸Šã?§ã?™ã€‚",
    disabledDaysText  : "",
    disabledDatesText : "",
    monthNames        : Date.monthNames,
    dayNames          : Date.dayNames,
    nextText          : 'æ¬¡æœˆã?¸ (ã‚³ãƒ³ãƒˆãƒ­ãƒ¼ãƒ«+å?³)',
    prevText          : 'å‰?æœˆã?¸ (ã‚³ãƒ³ãƒˆãƒ­ãƒ¼ãƒ«+å·¦)',
    monthYearText     : 'æœˆé?¸æŠž (ã‚³ãƒ³ãƒˆãƒ­ãƒ¼ãƒ«+ä¸Š/ä¸‹ã?§å¹´ç§»å‹•)',
    todayTip          : "{0} (ã‚¹ãƒšãƒ¼ã‚¹ã‚­ãƒ¼)",
    format            : "Y/m/d",
    okText            : "OK",
    cancelText        : "ã‚­ãƒ£ãƒ³ã‚»ãƒ«",
    startDay          : 0
  });
}

if(Ext.PagingToolbar){
  Ext.apply(Ext.PagingToolbar.prototype, {
    beforePageText : "ãƒšãƒ¼ã‚¸",
    afterPageText  : "/ {0}",
    firstText      : "æœ€åˆ?ã?®ãƒšãƒ¼ã‚¸",
    prevText       : "å‰?ã?®ãƒšãƒ¼ã‚¸",
    nextText       : "æ¬¡ã?®ãƒšãƒ¼ã‚¸",
    lastText       : "æœ€å¾Œã?®ãƒšãƒ¼ã‚¸",
    refreshText    : "æ›´æ–°",
    displayMsg     : "{2} ä»¶ä¸­ {0} - {1} ã‚’è¡¨ç¤º",
    emptyMsg       : 'è¡¨ç¤ºã?™ã‚‹ãƒ‡ãƒ¼ã‚¿ã?Œã?‚ã‚Šã?¾ã?›ã‚“ã€‚'
  });
}

if(Ext.form.Field){
  Ext.form.Field.prototype.invalidText = "ãƒ•ã‚£ãƒ¼ãƒ«ãƒ‰ã?®å€¤ã?Œä¸?æ­£ã?§ã?™ã€‚";
}

if(Ext.form.TextField){
  Ext.apply(Ext.form.TextField.prototype, {
    minLengthText : "ã?“ã?®ãƒ•ã‚£ãƒ¼ãƒ«ãƒ‰ã?®æœ€å°?å€¤ã?¯ {0} ã?§ã?™ã€‚",
    maxLengthText : "ã?“ã?®ãƒ•ã‚£ãƒ¼ãƒ«ãƒ‰ã?®æœ€å¤§å€¤ã?¯ {0} ã?§ã?™ã€‚",
    blankText     : "å¿…é ˆé …ç›®ã?§ã?™ã€‚",
    regexText     : "",
    emptyText     : null
  });
}

if(Ext.form.NumberField){
  Ext.apply(Ext.form.NumberField.prototype, {
    decimalSeparator : ".",
    decimalPrecision : 2,
    minText : "ã?“ã?®ãƒ•ã‚£ãƒ¼ãƒ«ãƒ‰ã?®æœ€å°?å€¤ã?¯ {0} ã?§ã?™ã€‚",
    maxText : "ã?“ã?®ãƒ•ã‚£ãƒ¼ãƒ«ãƒ‰ã?®æœ€å¤§å€¤ã?¯ {0} ã?§ã?™ã€‚",
    nanText : "{0} ã?¯æ•°å€¤ã?§ã?¯ã?‚ã‚Šã?¾ã?›ã‚“ã€‚"
  });
}

if(Ext.form.DateField){
  Ext.apply(Ext.form.DateField.prototype, {
    disabledDaysText  : "ç„¡åŠ¹",
    disabledDatesText : "ç„¡åŠ¹",
    minText           : "ã?“ã?®ãƒ•ã‚£ãƒ¼ãƒ«ãƒ‰ã?®æ—¥ä»˜ã?¯ã€? {0} ä»¥é™?ã?®æ—¥ä»˜ã?«è¨­å®šã?—ã?¦ã??ã? ã?•ã?„ã€‚",
    maxText           : "ã?“ã?®ãƒ•ã‚£ãƒ¼ãƒ«ãƒ‰ã?®æ—¥ä»˜ã?¯ã€? {0} ä»¥å‰?ã?®æ—¥ä»˜ã?«è¨­å®šã?—ã?¦ã??ã? ã?•ã?„ã€‚",
    invalidText       : "{0} ã?¯é–“é?•ã?£ã?Ÿæ—¥ä»˜å…¥åŠ›ã?§ã?™ã€‚ - å…¥åŠ›å½¢å¼?ã?¯ã€Œ{1}ã€?ã?§ã?™ã€‚",
    format            : "Y/m/d",
    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"
  });
}

if(Ext.form.ComboBox){
  Ext.apply(Ext.form.ComboBox.prototype, {
    loadingText       : "èª­ã?¿è¾¼ã?¿ä¸­...",
    valueNotFoundText : undefined
  });
}

if(Ext.form.VTypes){
  Ext.apply(Ext.form.VTypes, {
    emailText    : 'ãƒ¡ãƒ¼ãƒ«ã‚¢ãƒ‰ãƒ¬ã‚¹ã‚’"user@example.com"ã?®å½¢å¼?ã?§å…¥åŠ›ã?—ã?¦ã??ã? ã?•ã?„ã€‚',
    urlText      : 'URLã‚’"http:/'+'/www.example.com"ã?®å½¢å¼?ã?§å…¥åŠ›ã?—ã?¦ã??ã? ã?•ã?„ã€‚',
    alphaText    : 'å?Šè§’è‹±å­—ã?¨"_"ã?®ã?¿ã?§ã?™ã€‚',
    alphanumText : 'å?Šè§’è‹±æ•°ã?¨"_"ã?®ã?¿ã?§ã?™ã€‚'
  });
}

if(Ext.form.HtmlEditor){
  Ext.apply(Ext.form.HtmlEditor.prototype, {
    createLinkText : 'ãƒªãƒ³ã‚¯ã?®URLã‚’å…¥åŠ›ã?—ã?¦ã??ã? ã?•ã?„:',
    buttonTips : {
      bold : {
        title: 'å¤ªå­— (ã‚³ãƒ³ãƒˆãƒ­ãƒ¼ãƒ«+B)',
        text: 'é?¸æŠžãƒ†ã‚­ã‚¹ãƒˆã‚’å¤ªå­—ã?«ã?—ã?¾ã?™ã€‚',
        cls: 'x-html-editor-tip'
      },
      italic : {
        title: 'æ–œä½“ (ã‚³ãƒ³ãƒˆãƒ­ãƒ¼ãƒ«+I)',
        text: 'é?¸æŠžãƒ†ã‚­ã‚¹ãƒˆã‚’æ–œä½“ã?«ã?—ã?¾ã?™ã€‚',
        cls: 'x-html-editor-tip'
      },
      underline : {
        title: 'ä¸‹ç·š (ã‚³ãƒ³ãƒˆãƒ­ãƒ¼ãƒ«+U)',
        text: 'é?¸æŠžãƒ†ã‚­ã‚¹ãƒˆã?«ä¸‹ç·šã‚’å¼•ã??ã?¾ã?™ã€‚',
        cls: 'x-html-editor-tip'
      },
      increasefontsize : {
        title: 'æ–‡å­—ã‚’å¤§ã??ã??',
        text: 'ãƒ•ã‚©ãƒ³ãƒˆã‚µã‚¤ã‚ºã‚’å¤§ã??ã??ã?—ã?¾ã?™ã€‚',
        cls: 'x-html-editor-tip'
      },
      decreasefontsize : {
        title: 'æ–‡å­—ã‚’å°?ã?•ã??',
        text: 'ãƒ•ã‚©ãƒ³ãƒˆã‚µã‚¤ã‚ºã‚’å°?ã?•ã??ã?—ã?¾ã?™ã€‚',
        cls: 'x-html-editor-tip'
      },
      backcolor : {
        title: 'æ–‡å­—ã?®ãƒ?ã‚¤ãƒ©ã‚¤ãƒˆ',
        text: 'é?¸æŠžãƒ†ã‚­ã‚¹ãƒˆã?®èƒŒæ™¯è‰²ã‚’å¤‰æ›´ã?—ã?¾ã?™ã€‚',
        cls: 'x-html-editor-tip'
      },
      forecolor : {
        title: 'æ–‡å­—ã?®è‰²',
        text: 'é?¸æŠžãƒ†ã‚­ã‚¹ãƒˆã?®è‰²ã‚’å¤‰æ›´ã?—ã?¾ã?™ã€‚',
        cls: 'x-html-editor-tip'
      },
      justifyleft : {
        title: 'å·¦æ?ƒã?ˆ',
        text: 'ãƒ†ã‚­ã‚¹ãƒˆã‚’å·¦æ?ƒã?ˆã?«ã?—ã?¾ã?™ã€‚',
        cls: 'x-html-editor-tip'
      },
      justifycenter : {
        title: 'ä¸­å¤®æ?ƒã?ˆ',
        text: 'ãƒ†ã‚­ã‚¹ãƒˆã‚’ä¸­å¤®æ?ƒã?ˆã?«ã?—ã?¾ã?™ã€‚',
        cls: 'x-html-editor-tip'
      },
      justifyright : {
        title: 'å?³æ?ƒã?ˆ',
        text: 'ãƒ†ã‚­ã‚¹ãƒˆã‚’å?³æ?ƒã?ˆã?«ã?—ã?¾ã?™ã€‚',
        cls: 'x-html-editor-tip'
      },
      insertunorderedlist : {
        title: 'ç•ªå?·ã?ªã?—ç®‡æ?¡æ›¸ã??',
        text: 'ç•ªå?·ã?ªã?—ç®‡æ?¡æ›¸ã??ã‚’é–‹å§‹ã?—ã?¾ã?™ã€‚',
        cls: 'x-html-editor-tip'
      },
      insertorderedlist : {
        title: 'ç•ªå?·ä»˜ã??ç®‡æ?¡æ›¸ã??',
        text: 'ç•ªå?·ä»˜ã??ç®‡æ?¡æ›¸ã??ã‚’é–‹å§‹ã?—ã?¾ã?™ã€‚',
        cls: 'x-html-editor-tip'
      },
      createlink : {
        title: 'ãƒ?ã‚¤ãƒ‘ãƒ¼ãƒªãƒ³ã‚¯',
        text: 'é?¸æŠžãƒ†ã‚­ã‚¹ãƒˆã‚’ãƒ?ã‚¤ãƒ‘ãƒ¼ãƒªãƒ³ã‚¯ã?«ã?—ã?¾ã?™ã€‚',
        cls: 'x-html-editor-tip'
      },
      sourceedit : {
        title: 'ã‚½ãƒ¼ã‚¹ç·¨é›†',
        text: 'ã‚½ãƒ¼ã‚¹ç·¨é›†ãƒ¢ãƒ¼ãƒ‰ã?«åˆ‡ã‚Šæ›¿ã?ˆã?¾ã?™ã€‚',
        cls: 'x-html-editor-tip'
      }
    }
  });
}

if(Ext.grid.GridView){
  Ext.apply(Ext.grid.GridView.prototype, {
    sortAscText  : "æ˜‡é †",
    sortDescText : "é™?é †",
    columnsText  : "ã‚«ãƒ©ãƒ "
  });
}

if(Ext.grid.GroupingView){
  Ext.apply(Ext.grid.GroupingView.prototype, {
    emptyGroupText : '(ã?ªã?—)',
    groupByText    : 'ã?“ã?®ã‚«ãƒ©ãƒ ã?§ã‚°ãƒ«ãƒ¼ãƒ”ãƒ³ã‚°',
    showGroupsText : 'ã‚°ãƒ«ãƒ¼ãƒ”ãƒ³ã‚°'
  });
}

if(Ext.grid.PropertyColumnModel){
  Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
    nameText   : "å??ç§°",
    valueText  : "å€¤",
    dateFormat : "Y/m/d"
  });
}

if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
  Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
    splitTip            : "ãƒ‰ãƒ©ãƒƒã‚°ã?™ã‚‹ã?¨ãƒªã‚µã‚¤ã‚ºã?§ã??ã?¾ã?™ã€‚",
    collapsibleSplitTip : "ãƒ‰ãƒ©ãƒƒã‚°ã?§ãƒªã‚µã‚¤ã‚ºã€‚ ãƒ€ãƒ–ãƒ«ã‚¯ãƒªãƒƒã‚¯ã?§éš ã?™ã€‚"
  });
}

if(Ext.form.TimeField){
  Ext.apply(Ext.form.TimeField.prototype, {
    minText : "ã?“ã?®ãƒ•ã‚£ãƒ¼ãƒ«ãƒ‰ã?®æ™‚åˆ»ã?¯ã€? {0} ä»¥é™?ã?®æ™‚åˆ»ã?«è¨­å®šã?—ã?¦ã??ã? ã?•ã?„ã€‚",
    maxText : "ã?“ã?®ãƒ•ã‚£ãƒ¼ãƒ«ãƒ‰ã?®æ™‚åˆ»ã?¯ã€? {0} ä»¥å‰?ã?®æ™‚åˆ»ã?«è¨­å®šã?—ã?¦ã??ã? ã?•ã?„ã€‚",
    invalidText : "{0} ã?¯é–“é?•ã?£ã?Ÿæ™‚åˆ»å…¥åŠ›ã?§ã?™ã€‚",
    format : "g:i A",
    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"
  });
}

if(Ext.form.CheckboxGroup){
  Ext.apply(Ext.form.CheckboxGroup.prototype, {
    blankText : "ã?“ã?®ã‚°ãƒ«ãƒ¼ãƒ—ã?‹ã‚‰æœ€ä½Žï¼‘ã?¤ã?®ã‚¢ã‚¤ãƒ†ãƒ ã‚’é?¸æŠžã?—ã?ªã?‘ã‚Œã?°ã?ªã‚Šã?¾ã?›ã‚“ã€‚"
  });
}

if(Ext.form.RadioGroup){
  Ext.apply(Ext.form.RadioGroup.prototype, {
    blankText : "ã?“ã?®ã‚°ãƒ«ãƒ¼ãƒ—ã?‹ã‚‰ï¼‘ã?¤ã?®ã‚¢ã‚¤ãƒ†ãƒ ã‚’é?¸æŠžã?—ã?ªã?‘ã‚Œã?°ã?ªã‚Šã?¾ã?›ã‚“ã€‚"
  });
}

