From 4db4fc27c58b169a21f5794720a80d9eafcde265 Mon Sep 17 00:00:00 2001 From: Kuba Brecka Date: Wed, 13 Mar 2013 15:05:28 +0100 Subject: [PATCH] support "short without year" date format in all locales --- app/assets/javascripts/locales/date_locales.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/locales/date_locales.js b/app/assets/javascripts/locales/date_locales.js index fa86aad49..0f9ebe01f 100644 --- a/app/assets/javascripts/locales/date_locales.js +++ b/app/assets/javascripts/locales/date_locales.js @@ -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,