Permalink
Browse files

Tests need to pass.

  • Loading branch information...
1 parent 0d2a4b4 commit 7070acc87eac4750b553f9dcf1a7cc3b4a491aaa @mde mde committed Mar 13, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 lib/i18n/index.js
  2. +3 −3 lib/model/datatypes.js
View
@@ -8,7 +8,7 @@ var i18n = new (function () {
var defaultLocale = geddy.config.i18n.defaultLocale
, currentLocale = locale || defaultLocale
, currentLocaleStrings = _strings[currentLocale] || {}
- , defaultLocaleStrings = _strings[defaultLocale]
+ , defaultLocaleStrings = _strings[defaultLocale] || {}
, str = currentLocaleStrings[key]
|| defaultLocaleStrings[key] || "[[" + key + "]]";
for (p in opts){
View
@@ -172,14 +172,14 @@ var datatypes = new (function () {
var dt = geddy.date.parse(val);
if (dt) {
return {
- err: null,
- val: dt
+ err: null
+ , val: dt
};
}
else {
return {
err: i18n.getText('model.validatesTime', {name: name}, locale)
- val: null
+ , val: null
};
}
};

0 comments on commit 7070acc

Please sign in to comment.