/*!
 * Ext JS Library 3.0.3
 * Copyright(c) 2006-2009 Ext JS, LLC
 * licensing@extjs.com
 * http://www.extjs.com/license
 */
/*
 * Simplified Chinese translation
 * By DavidHu
 * 09 April 2007
 */

Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">åŠ è½½ä¸­...</div>';

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

if(Ext.grid.GridPanel){
   Ext.grid.GridPanel.prototype.ddText = "{0} é€‰æ‹©è¡Œ";
}

if(Ext.TabPanelItem){
   Ext.TabPanelItem.prototype.closeText = "å…³é—­";
}

if(Ext.form.Field){
   Ext.form.Field.prototype.invalidText = "è¾“å…¥å€¼é?žæ³•";
}

Date.monthNames = [
   "ä¸€æœˆ",
   "äºŒæœˆ",
   "ä¸‰æœˆ",
   "å››æœˆ",
   "äº”æœˆ",
   "å…­æœˆ",
   "ä¸ƒæœˆ",
   "å…«æœˆ",
   "ä¹?æœˆ",
   "å??æœˆ",
   "å??ä¸€æœˆ",
   "å??äºŒæœˆ"
];

Date.dayNames = [
   "æ—¥",
   "ä¸€",
   "äºŒ",
   "ä¸‰",
   "å››",
   "äº”",
   "å…­"
];

if(Ext.MessageBox){
   Ext.MessageBox.buttonText = {
      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          : 'ä¸‹æœˆ (Control+Right)',
      prevText          : 'ä¸Šæœˆ (Control+Left)',
      monthYearText     : 'é€‰æ‹©ä¸€ä¸ªæœˆ (Control+Up/Down æ?¥æ”¹å?˜å¹´)',
      todayTip          : "{0} (ç©ºæ ¼é”®é€‰æ‹©)",
      format            : "yå¹´mæœˆdæ—¥",
      okText            : "ç¡®å®š",
      cancelText        : "å?–æ¶ˆ"
   });
}

if(Ext.PagingToolbar){
   Ext.apply(Ext.PagingToolbar.prototype, {
      beforePageText : "é¡µ",
      afterPageText  : "é¡µå…± {0} é¡µ",
      firstText      : "ç¬¬ä¸€é¡µ",
      prevText       : "å‰?ä¸€é¡µ",
      nextText       : "ä¸‹ä¸€é¡µ",
      lastText       : "æœ€å?Žé¡µ",
      refreshText    : "åˆ·æ–°",
      displayMsg     : "æ˜¾ç¤º {0} - {1}ï¼Œå…± {2} æ?¡",
      emptyMsg       : 'æ²¡æœ‰æ•°æ?®éœ€è¦?æ˜¾ç¤º'
   });
}

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, {
      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æ—¥"
   });
}

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.grid.GridView){
   Ext.apply(Ext.grid.GridView.prototype, {
      sortAscText  : "æ­£åº?",
      sortDescText : "é€†åº?",
      lockText     : "é”?åˆ—",
      unlockText   : "è§£é”?åˆ—",
      columnsText  : "åˆ—"
   });
}

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 : "æ‹–åŠ¨æ?¥æ”¹å?˜å°ºå¯¸. å?Œå‡»éš?è—?."
   });
}

