ext-locale-zh_CN.js 943 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * 简体中文 by lovelyelfpop <479858761@qq.com>
  3. * 2017年10月12日
  4. */
  5. Ext.onReady(function() {
  6. if (Ext.Date) {
  7. Ext.Date.dayNames = ['日', '一', '二', '三', '四', '五', '六'];
  8. Ext.Date.monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
  9. Ext.Date.getShortMonthName = function (month) {
  10. var n = Ext.Date.monthNames[month];
  11. return n.substr(0, n.length - 1);
  12. };
  13. Ext.Date.getShortDayName = function (day) {
  14. return Ext.Date.dayNames[day].substr(1, 1);
  15. };
  16. }
  17. if (Ext.util && Ext.util.Format) {
  18. Ext.apply(Ext.util.Format, {
  19. currencySign: '\u00a5', // Chinese Yuan
  20. defaultDateFormat: 'Y-m-d'
  21. });
  22. }
  23. if (Ext.Date) {
  24. Ext.apply(Ext.Date, {
  25. defaultFormat: 'Y-m-d'
  26. });
  27. }
  28. });