Merge pull request #448 from kubabrecka/i18n_custom_date_format

support "short without year" date format in all locales
This commit is contained in:
Robin Ward 2013-03-13 07:28:26 -07:00
commit c10640ac26
1 changed files with 16 additions and 1 deletions

View File

@ -1,7 +1,22 @@
// fix DE locale
Date.getLocale('de').short_no_year = '{d}. {month}';
// fix EN locale
Date.getLocale('en').short_no_year = '{d} {Mon}';
// create CS locale
// fix FR locale
Date.getLocale('de').short_no_year = '{d} {month}';
// fix NL locale
Date.getLocale('nl').short_no_year = '{d} {Month}';
// fix SV locale
Date.getLocale('sv').short_no_year = 'den {d} {month}';
// fix zh_CN locale
Date.getLocale('zh-CN').short_no_year = '{yyyy}年{M}月';
// create CS locale, because it's not supported by Sugar at all
Date.addLocale('cs', {
'plural': true,
'capitalizeUnit': false,