diff options
Diffstat (limited to 'date_locale.rb')
-rw-r--r-- | date_locale.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/date_locale.rb b/date_locale.rb index 4ab9b4d..e40e6c7 100644 --- a/date_locale.rb +++ b/date_locale.rb @@ -217,7 +217,12 @@ module Date_locale monthnames = DATE_TEXTS[lang][:monthnames]
abbr_monthnames = DATE_TEXTS[lang][:abbr_monthnames]
else
- raise "Missing Support for locale #{lang.inspect}"
+ #raise "Missing Support for locale #{lang.inspect}"
+ #fallback to english
+ daynames = DATE_TEXTS[:en][:daynames]
+ abbr_daynames = DATE_TEXTS[:en][:abbr_daynames]
+ monthnames = DATE_TEXTS[:en][:monthnames]
+ abbr_monthnames = DATE_TEXTS[:en][:abbr_monthnames]
end
#Make the original replacements, after....
|