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:
@@ -1222,12 +1222,10 @@ class G
|
||||
|
||||
$calendarJs = '';
|
||||
$calendarJsFile = PATH_GULLIVER_HOME . "js/widgets/js-calendar/lang/" . $locale .".js";
|
||||
if (file_exists($calendarJsFile)) {
|
||||
$calendarJs = file_get_contents($calendarJsFile) . "\n";
|
||||
} else {
|
||||
if (! file_exists($calendarJsFile)) {
|
||||
$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 ) . ';' ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user