BUG 7301 With Aymara translation can not use Date Picker dialog... SOLVED

- With Aymara translation can not use Date Picker dialog and can't open Output Documents for editing
- Adjustment in the condition of the calendar when the language doesn't exist.
This commit is contained in:
Hector Cortez
2012-11-19 11:16:43 -04:00
parent 44ca85c443
commit c779f7cfe3

View File

@@ -1222,12 +1222,10 @@ class G
$calendarJs = ''; $calendarJs = '';
$calendarJsFile = PATH_GULLIVER_HOME . "js/widgets/js-calendar/lang/" . $locale .".js"; $calendarJsFile = PATH_GULLIVER_HOME . "js/widgets/js-calendar/lang/" . $locale .".js";
if (file_exists($calendarJsFile)) { if (! file_exists($calendarJsFile)) {
$calendarJs = file_get_contents($calendarJsFile) . "\n";
} else {
$calendarJsFile = PATH_GULLIVER_HOME . "js/widgets/js-calendar/lang/en.js"; $calendarJsFile = PATH_GULLIVER_HOME . "js/widgets/js-calendar/lang/en.js";
$calendarJs = file_get_contents($calendarJsFile) . "\n";
} }
$calendarJs = file_get_contents($calendarJsFile) . "\n";
return $calendarJs . 'var TRANSLATIONS = ' . G::json_encode( $translation ) . ';' ; return $calendarJs . 'var TRANSLATIONS = ' . G::json_encode( $translation ) . ';' ;
} }