From 30253598992f5c87bdee07eb30a30bcf1035c61b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 27 Oct 2011 02:44:05 +0200 Subject: [PATCH 01/35] Fix: Substitution missing --- .../modules/facture/doc/doc_generic_invoice_odt.modules.php | 3 ++- htdocs/core/modules/societe/doc/doc_generic_odt.modules.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php b/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php index 29db22df3fd..04e4a00b63a 100644 --- a/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php +++ b/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php @@ -432,8 +432,9 @@ class doc_generic_invoice_odt extends ModelePDFFactures { } } - // Replace tags of object + // Replace tags of object + external modules $tmparray=$this->get_substitutionarray_object($object,$outputlangs); + complete_substitutions_array($tmparray, $outputlangs, $object); foreach($tmparray as $key=>$value) { try { diff --git a/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php b/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php index 76fb65db8c7..b466f16d8d4 100644 --- a/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php +++ b/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php @@ -280,7 +280,7 @@ class doc_generic_odt extends ModeleThirdPartyDoc } // Make substitutions into odt of thirdparty + external modules $tmparray=$this->get_substitutionarray_thirdparty($object,$outputlangs); - complete_substitutions_array($tmparray, $langs, $object); + complete_substitutions_array($tmparray, $ouputlangs, $object); //var_dump($object->id); exit; foreach($tmparray as $key=>$value) { From e780eadeed02795b43a950d200c4c4dc8a5889c1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 27 Oct 2011 10:07:58 +0200 Subject: [PATCH 02/35] Fix: Substitution of free text --- .../doc/doc_generic_invoice_odt.modules.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php b/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php index 04e4a00b63a..5d46b2e8fc7 100644 --- a/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php +++ b/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php @@ -362,15 +362,13 @@ class doc_generic_invoice_odt extends ModelePDFFactures // Make substitutions into odt of freetext - if ($newfreetext) - { - try { - $odfHandler->setVars('free_text', $newfreetext, true, 'UTF-8'); - } - catch(OdfException $e) - { - } + try { + $odfHandler->setVars('free_text', $newfreetext, true, 'UTF-8'); } + catch(OdfException $e) + { + } + // Make substitutions into odt of user info $tmparray=$this->get_substitutionarray_user($user,$outputlangs); //var_dump($tmparray); exit; From bc6fa6028729c21cef621a51a38ac9e86d8b0260 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 28 Oct 2011 12:02:36 +0200 Subject: [PATCH 03/35] Fix: move jnotify options in separate file Fix: move nl2br treatment New: add error message for edit in place --- htdocs/compta/deplacement/fiche.php | 10 +- htdocs/core/ajax/saveinplace.php | 12 ++- htdocs/core/class/html.form.class.php | 7 +- htdocs/core/js/editinplace.js | 139 ++++++++++++++++---------- htdocs/core/js/jnotify.js | 26 +++++ htdocs/core/lib/functions.lib.php | 15 --- htdocs/fichinter/fiche.php | 10 +- htdocs/langs/en_US/main.lang | 1 + htdocs/langs/fr_FR/main.lang | 1 + htdocs/main.inc.php | 9 +- 10 files changed, 139 insertions(+), 91 deletions(-) create mode 100644 htdocs/core/js/jnotify.js diff --git a/htdocs/compta/deplacement/fiche.php b/htdocs/compta/deplacement/fiche.php index d1559311620..4b2c56ab003 100644 --- a/htdocs/compta/deplacement/fiche.php +++ b/htdocs/compta/deplacement/fiche.php @@ -361,7 +361,7 @@ else if ($id) // Km/Price print ''.$langs->trans("FeesKilometersOrAmout").''; - print ''.$form->editInPlace(price($object->km), 'km', $user->rights->deplacement->creer, 'numeric').''; + print ''.$form->editInPlace($object->km, 'km', $user->rights->deplacement->creer, 'numeric').''; // Where print ''.$langs->trans("CompanyVisited").''; @@ -405,9 +405,7 @@ else if ($id) // Public note print ''.$langs->trans("NotePublic").''; print ''; - // FIXME parameter note_private must not be denatured with a format function to be propagated. dol_nl2br must be used - // by editInPlace if necessary according to type (4rd parameter) - print $form->editInPlace(dol_nl2br($object->note_public), 'note_public', $user->rights->deplacement->creer, 'area'); + print $form->editInPlace($object->note_public, 'note_public', $user->rights->deplacement->creer, 'area'); print ""; // Private note @@ -415,9 +413,7 @@ else if ($id) { print ''.$langs->trans("NotePrivate").''; print ''; - // FIXME parameter note_private must not be denatured with a format function to be propagated. dol_nl2br must be used - // by editInPlace if necessary according to type (4rd parameter) - print $form->editInPlace(dol_nl2br($object->note_private), 'note', $user->rights->deplacement->creer, 'area'); + print $form->editInPlace($object->note_private, 'note', $user->rights->deplacement->creer, 'area'); print ""; } diff --git a/htdocs/core/ajax/saveinplace.php b/htdocs/core/ajax/saveinplace.php index efae5b326a2..f34146c592f 100644 --- a/htdocs/core/ajax/saveinplace.php +++ b/htdocs/core/ajax/saveinplace.php @@ -37,7 +37,7 @@ require_once(DOL_DOCUMENT_ROOT."/core/class/genericobject.class.php"); top_httphead(); //print ''."\n"; -//var_dump($_POST); +//print_r($_POST); // Load original field value if((isset($_POST['field']) && ! empty($_POST['field'])) @@ -52,6 +52,7 @@ if((isset($_POST['field']) && ! empty($_POST['field'])) $value = GETPOST('value'); $type = GETPOST('type'); + $return=array(); $error=0; if ($element == 'fichinter') $element = 'ficheinter'; @@ -70,6 +71,7 @@ if((isset($_POST['field']) && ! empty($_POST['field'])) if (! is_numeric($value)) { $error++; + $return['error'] = $langs->trans('ErrorBadValue'); } } @@ -79,11 +81,13 @@ if((isset($_POST['field']) && ! empty($_POST['field'])) if ($ret > 0) { if ($type == 'numeric') $value = price($value); - else $value = (! empty($value) ? dol_nl2br($value) : ' '); - - echo $value; + else if ($type == 'textarea') $value = dol_nl2br($value); + + $return['value'] = $value; } } + + echo json_encode($return); } else { diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index f9be689faf2..0454a286e0f 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -153,10 +153,13 @@ class Form */ function editInPlace($value, $htmlname, $condition, $type='area') { - global $conf,$user; + global $conf; $out=''; - $value = ($value ? $value : " "); + + // Check parameters + if ($type == 'area') $value = dol_nl2br($value); + else if ($type == 'numeric') $value = price($value); if (! empty($conf->global->MAIN_USE_JQUERY_JEDITABLE) && $condition) { diff --git a/htdocs/core/js/editinplace.js b/htdocs/core/js/editinplace.js index fe68febdd65..51b4ae89d53 100644 --- a/htdocs/core/js/editinplace.js +++ b/htdocs/core/js/editinplace.js @@ -7,62 +7,93 @@ $(document).ready(function() { - $(document).ready(function() { - var element = $('#element').html(); - var table_element = $('#table_element').html(); - var fk_element = $('#fk_element').html(); - - $('.edit_area').editable(urlSaveInPlace, { - type : 'textarea', - rows : 4, - id : 'field', - tooltip : tooltipInPlace, - cancel : cancelInPlace, - submit : submitInPlace, - indicator : indicatorInPlace, - loadurl : urlLoadInPlace, - loaddata : { - type: 'textarea', - element: element, - table_element: table_element, - fk_element: fk_element - }, - submitdata : { - type: 'textarea', - element: element, - table_element: table_element, - fk_element: fk_element + var element = $('#element').html(); + var table_element = $('#table_element').html(); + var fk_element = $('#fk_element').html(); + + $('.edit_area').editable(urlSaveInPlace, { + type : 'textarea', + rows : 4, + id : 'field', + tooltip : tooltipInPlace, + placeholder : placeholderInPlace, + cancel : cancelInPlace, + submit : submitInPlace, + indicator : indicatorInPlace, + loadurl : urlLoadInPlace, + loaddata : { + type: 'textarea', + element: element, + table_element: table_element, + fk_element: fk_element + }, + submitdata : { + type: 'textarea', + element: element, + table_element: table_element, + fk_element: fk_element + }, + callback : function(result, settings) { + var obj = $.parseJSON(result); + + if (obj.error) { + $(this).html(this.revert); + $.jnotify(obj.error, "error", true); + } else { + $(this).html(obj.value); } - }); - $('.edit_text').editable(urlSaveInPlace, { - type : 'text', - id : 'field', - width : 300, - tooltip : tooltipInPlace, - cancel : cancelInPlace, - submit : submitInPlace, - indicator : indicatorInPlace, - submitdata : { - type: 'text', - element: element, - table_element: table_element, - fk_element: fk_element + } + }); + $('.edit_text').editable(urlSaveInPlace, { + type : 'text', + id : 'field', + width : 300, + tooltip : tooltipInPlace, + placeholder : placeholderInPlace, + cancel : cancelInPlace, + submit : submitInPlace, + indicator : indicatorInPlace, + submitdata : { + type: 'text', + element: element, + table_element: table_element, + fk_element: fk_element + }, + callback : function(result, settings) { + var obj = $.parseJSON(result); + + if (obj.error) { + $(this).html(this.revert); + $.jnotify(obj.error, "error", true); + } else { + $(this).html(obj.value); } - }); - $('.edit_numeric').editable(urlSaveInPlace, { - type : 'text', - id : 'field', - width : 100, - tooltip : tooltipInPlace, - cancel : cancelInPlace, - submit : submitInPlace, - indicator : indicatorInPlace, - submitdata : { - type: 'numeric', - element: element, - table_element: table_element, - fk_element: fk_element + } + }); + $('.edit_numeric').editable(urlSaveInPlace, { + type : 'text', + id : 'field', + width : 100, + tooltip : tooltipInPlace, + placeholder : placeholderInPlace, + cancel : cancelInPlace, + submit : submitInPlace, + indicator : indicatorInPlace, + submitdata : { + type: 'numeric', + element: element, + table_element: table_element, + fk_element: fk_element + }, + callback : function(result, settings) { + var obj = $.parseJSON(result); + + if (obj.error) { + $(this).html(this.revert); + $.jnotify(obj.error, "error", true); + } else { + $(this).html(obj.value); } - }); + } }); }); \ No newline at end of file diff --git a/htdocs/core/js/jnotify.js b/htdocs/core/js/jnotify.js new file mode 100644 index 00000000000..18673c8d17a --- /dev/null +++ b/htdocs/core/js/jnotify.js @@ -0,0 +1,26 @@ +// Copyright (C) 2011 Regis Houssin +// +// Script javascript that contains functions for jnotify default options +// +// \file htdocs/core/js/jnotify.js +// \brief File that include javascript functions for jnotify default options + + +$(document).ready(function() { + $.jnotify.setup({ + delay: 3000 // the default time to show each notification (in milliseconds) + , sticky: false // determines if the message should be considered "sticky" (user must manually close notification) + , closeLabel: "×" // the HTML to use for the "Close" link + , showClose: true // determines if the "Close" link should be shown if notification is also sticky + , fadeSpeed: 1000 // the speed to fade messages out (in milliseconds) + , slideSpeed: 250 // the speed used to slide messages out (in milliseconds) + , classContainer: "jnotify-container" + , classNotification: "jnotify-notification" + , classBackground: "jnotify-background" + , classClose: "jnotify-close" + , classMessage: "jnotify-message" + , init: null // callback that occurs when the main jnotify container is created + , create: null // callback that occurs when when the note is created (occurs just before appearing in DOM) + , beforeRemove: null // callback that occurs when before the notification starts to fade away + }); +}); \ No newline at end of file diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index c70c05d3d5c..a9d7d4c01c0 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -3963,21 +3963,6 @@ function get_htmloutput_mesg($mesgstring='',$mesgarray='', $style='ok', $keepemb jQuery.jnotify("'.dol_escape_js($out).'", "'.($style=="ok" ? 3000 : $style).'", '.($style=="ok" ? "false" : "true").', - { - closeLabel: "×" // the HTML to use for the "Close" link - , showClose: true // determines if the "Close" link should be shown if notification is also sticky - , fadeSpeed: 1000 // the speed to fade messages out (in milliseconds) - , slideSpeed: 250 // the speed used to slide messages out (in milliseconds) - , classContainer: "jnotify-container" - , classNotification: "jnotify-notification" - , classBackground: "jnotify-background" - , classClose: "jnotify-close" - , classMessage: "jnotify-message" - , init: null // callback that occurs when the main jnotify container is created - , create: null // callback that occurs when when the note is created (occurs just before - // appearing in DOM) - , beforeRemove: null // callback that occurs when before the notification starts to fade away - }, { remove: function (){} } ); }); '; diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index be28c6ee0a7..9fcf0800094 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -807,9 +807,7 @@ else if ($id > 0 || ! empty($ref)) { print $langs->trans('Description'); print ''; - // FIXME parameter note_private must not be denatured with a format function to be propagated. dol_nl2br must be used - // by editInPlace if necessary according to type (4rd parameter) - print $form->editInPlace(dol_nl2br($object->description), 'description', $user->rights->ficheinter->creer && $object->statut == 0, 'area'); + print $form->editInPlace($object->description, 'description', $user->rights->ficheinter->creer && $object->statut == 0, 'area'); } else { @@ -872,9 +870,7 @@ else if ($id > 0 || ! empty($ref)) // Public note print ''.$langs->trans("NotePublic").''; print ''; - // FIXME parameter note_public must not be denatured with a format function to be propagated. dol_nl2br must be used - // by editInPlace if necessary according to type (4rd parameter) - print $form->editInPlace(dol_nl2br($object->note_public), 'note_public', $user->rights->ficheinter->creer, 'area'); + print $form->editInPlace($object->note_public, 'note_public', $user->rights->ficheinter->creer, 'area'); print ""; // Private note @@ -882,7 +878,7 @@ else if ($id > 0 || ! empty($ref)) { print ''.$langs->trans("NotePrivate").''; print ''; - print $form->editInPlace(dol_nl2br($object->note_private), 'note_private', $user->rights->ficheinter->creer); + print $form->editInPlace($object->note_private, 'note_private', $user->rights->ficheinter->creer); print ""; } diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang index 10bd9adc5ce..6684d5ed698 100644 --- a/htdocs/langs/en_US/main.lang +++ b/htdocs/langs/en_US/main.lang @@ -601,6 +601,7 @@ AttributeCode=Attribute code OptionalFieldsSetup=Extra attributes setup URLPhoto=Url of photo/logo CreateDraft=Create draft +ClickToEdit=Click to edit # Week day Monday=Monday diff --git a/htdocs/langs/fr_FR/main.lang b/htdocs/langs/fr_FR/main.lang index ca02f0dbec0..2fd6ce72242 100644 --- a/htdocs/langs/fr_FR/main.lang +++ b/htdocs/langs/fr_FR/main.lang @@ -601,6 +601,7 @@ AttributeCode=Code de l'attribut OptionalFieldsSetup=Configuration des attributs complémentaires URLPhoto=Url vers photo/logo CreateDraft=Créer brouillon +ClickToEdit=Cliquer ici pour éditer # Week day Monday=Lundi diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index e5bc61c25eb..05c7e70afb1 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -922,7 +922,11 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs print ''."\n"; } // jQuery jnotify - if (empty($conf->global->MAIN_DISABLE_JQUERY_JNOTIFY)) print ''."\n"; + if (empty($conf->global->MAIN_DISABLE_JQUERY_JNOTIFY)) + { + print ''."\n"; + print ''."\n"; + } // jQuery jeditable if (! empty($conf->global->MAIN_USE_JQUERY_JEDITABLE)) { @@ -930,7 +934,8 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs print ''."\n"; + print ''."\n"; print ''."\n"; + + // Default datepicker options + print ''."\n"; if (! empty($head)) print $head."\n"; if (! empty($conf->global->MAIN_HTML_HEADER)) print $conf->global->MAIN_HTML_HEADER."\n"; diff --git a/htdocs/theme/auguria/style.css.php b/htdocs/theme/auguria/style.css.php index a3e2b3c5d84..ad569b86238 100644 --- a/htdocs/theme/auguria/style.css.php +++ b/htdocs/theme/auguria/style.css.php @@ -1663,11 +1663,16 @@ table.cal_event td { border: 0px; padding-: 0px; padding-) right center no-repeat; cursor: pointer; } +.edit_datepicker:hover { + background: white url() right center no-repeat; + cursor: pointer; +} + /* ============================================================================== */ /* Admin Menu */ diff --git a/htdocs/theme/bureau2crea/style.css.php b/htdocs/theme/bureau2crea/style.css.php index e2f23269f12..6861d3af98e 100644 --- a/htdocs/theme/bureau2crea/style.css.php +++ b/htdocs/theme/bureau2crea/style.css.php @@ -1863,11 +1863,16 @@ table.cal_event td { border: 0px; padding-: 0px; padding-) right center no-repeat; cursor: pointer; } +.edit_datepicker:hover { + background: white url() right center no-repeat; + cursor: pointer; +} + /* ============================================================================== */ /* Admin Menu */ diff --git a/htdocs/theme/cameleo/style.css.php b/htdocs/theme/cameleo/style.css.php index 4162be90a4f..4ffeeb8f2bf 100644 --- a/htdocs/theme/cameleo/style.css.php +++ b/htdocs/theme/cameleo/style.css.php @@ -1813,11 +1813,16 @@ table.cal_event td { border: 0px; padding-: 0px; padding-) right center no-repeat; cursor: pointer; } +.edit_datepicker:hover { + background: white url() right center no-repeat; + cursor: pointer; +} + /* ============================================================================== */ /* Admin Menu */ diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index 1458c5992b0..acdd43d25a6 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -1724,11 +1724,16 @@ table.cal_event td { border: 0px; padding-: 0px; padding-) right top no-repeat; cursor: pointer; } +.edit_datepicker:hover { + background: white url() right center no-repeat; + cursor: pointer; +} + /* ============================================================================== */ /* Admin Menu */ From 75340e4b74478d19a33d78224007af8524a59d7b Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 28 Oct 2011 17:48:39 +0200 Subject: [PATCH 08/35] Fix: use i18n files for datepicker --- htdocs/core/js/datepicker.js | 17 -------- htdocs/langs/.htaccess | 5 +++ .../fr_FR/js/jquery.ui.datepicker-fr_FR.js | 25 +++++++++++ htdocs/main.inc.php | 43 +------------------ 4 files changed, 32 insertions(+), 58 deletions(-) delete mode 100644 htdocs/core/js/datepicker.js create mode 100644 htdocs/langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js diff --git a/htdocs/core/js/datepicker.js b/htdocs/core/js/datepicker.js deleted file mode 100644 index cddfa386aa5..00000000000 --- a/htdocs/core/js/datepicker.js +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (C) 2011 Regis Houssin -// -// Script javascript that contains functions for datepicker default options -// -// \file htdocs/core/js/datepicker.js -// \brief File that include javascript functions for datepicker default options - - -$(document).ready(function() { - $.datepicker.setDefaults({ - monthNames: tradMonths, - monthNamesShort: tradMonthsMin, - dayNames: tradDays, - dayNamesMin: tradDaysMin, - dateFormat: datePickerFormat - }); -}); \ No newline at end of file diff --git a/htdocs/langs/.htaccess b/htdocs/langs/.htaccess index 93169e4eb44..d87f1072807 100644 --- a/htdocs/langs/.htaccess +++ b/htdocs/langs/.htaccess @@ -1,2 +1,7 @@ Order deny,allow Deny from all + + +Order deny,allow +Allow from all + diff --git a/htdocs/langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js b/htdocs/langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js new file mode 100644 index 00000000000..7e793639f5f --- /dev/null +++ b/htdocs/langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js @@ -0,0 +1,25 @@ +/* French initialisation for the jQuery UI date picker plugin. */ +/* Written by Keith Wood (kbwood{at}iinet.com.au), + Stéphane Nahmani (sholby@sholby.net), + Stéphane Raimbault */ +jQuery(function($){ + $.datepicker.regional['fr'] = { + closeText: 'Fermer', + prevText: 'Précédent', + nextText: 'Suivant', + currentText: 'Aujourd\'hui', + monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin', + 'Juillet','Août','Septembre','Octobre','Novembre','Décembre'], + monthNamesShort: ['Janv.','Févr.','Mars','Avril','Mai','Juin', + 'Juil.','Août','Sept.','Oct.','Nov.','Déc.'], + dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'], + dayNamesShort: ['Dim.','Lun.','Mar.','Mer.','Jeu.','Ven.','Sam.'], + dayNamesMin: ['D','L','M','M','J','V','S'], + weekHeader: 'Sem.', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['fr']); +}); diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 3e3238a0221..e50ed0a5cba 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1013,49 +1013,10 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs $langs->trans("December") ); print 'var tradMonths = '.json_encode($tradMonths).';'."\n"; - - // Define tradMonthsMin javascript array (we define this in datepicker AND in parent page to avoid errors with IE8) - $tradMonthsMin=array($langs->trans("JanuaryMin"), - $langs->trans("FebruaryMin"), - $langs->trans("MarchMin"), - $langs->trans("AprilMin"), - $langs->trans("MayMin"), - $langs->trans("JuneMin"), - $langs->trans("JulyMin"), - $langs->trans("AugustMin"), - $langs->trans("SeptemberMin"), - $langs->trans("OctoberMin"), - $langs->trans("NovemberMin"), - $langs->trans("DecemberMin") - ); - print 'var tradMonthsMin = '.json_encode($tradMonthsMin).';'."\n"; - - // Define tradDays javascript array (we define this in datepicker AND in parent page to avoid errors with IE8) - $tradDays=array($langs->trans("Monday"), - $langs->trans("Tuesday"), - $langs->trans("Wednesday"), - $langs->trans("Thursday"), - $langs->trans("Friday"), - $langs->trans("Saturday"), - $langs->trans("Sunday") - ); - print 'var tradDays = '.json_encode($tradDays).';'."\n"; - - // Define tradDaysMin javascript array (we define this in datepicker AND in parent page to avoid errors with IE8) - $tradDaysMin=array($langs->trans("MondayMin"), - $langs->trans("TuesdayMin"), - $langs->trans("WednesdayMin"), - $langs->trans("ThursdayMin"), - $langs->trans("FridayMin"), - $langs->trans("SaturdayMin"), - $langs->trans("SundayMin") - ); - print 'var tradDaysMin = '.json_encode($tradDaysMin).';'."\n"; - print 'var datePickerFormat = \''.$langs->trans("FormatDateShortJQuery").'\';'."\n"; print ''."\n"; - // Default datepicker options - print ''."\n"; + // Add datepicker i18n for current language + print ''."\n"; if (! empty($head)) print $head."\n"; if (! empty($conf->global->MAIN_HTML_HEADER)) print $conf->global->MAIN_HTML_HEADER."\n"; From dea1210c2d8447f06e7ef61a1712fb991a667dd4 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 28 Oct 2011 19:31:42 +0200 Subject: [PATCH 09/35] Fix: edit in place datepicker more stable --- .cvsignore | 14 ------------- build/.cvsignore | 19 ----------------- build/exe/doliwamp/.cvsignore | 3 --- dev/.cvsignore | 1 - dev/phpunit/.cvsignore | 1 - dev/skeletons/.cvsignore | 2 -- dev/test/.cvsignore | 1 - dev/xdebug/.cvsignore | 1 - doc/images/.cvsignore | 1 - htdocs/.cvsignore | 10 --------- htdocs/admin/.cvsignore | 1 - htdocs/compta/deplacement/fiche.php | 3 +-- htdocs/conf/.cvsignore | 4 ---- htdocs/core/ajax/saveinplace.php | 21 ++++++++++++------- htdocs/core/class/commonobject.class.php | 6 ++++-- htdocs/core/class/html.form.class.php | 3 +++ htdocs/core/js/editinplace.js | 13 +++++++----- htdocs/core/modules/.cvsignore | 2 -- htdocs/core/modules/mailings/.cvsignore | 2 -- htdocs/includes/.cvsignore | 5 ----- .../includes/jquery/plugins/flot/.cvsignore | 1 - .../includes/jquery/plugins/jcrop/.cvsignore | 2 -- htdocs/includes/nusoap/.cvsignore | 1 - htdocs/install/.cvsignore | 1 - htdocs/langs/ca_ES/.cvsignore | 1 - htdocs/langs/en_AU/.cvsignore | 1 - htdocs/langs/en_IN/.cvsignore | 1 - htdocs/langs/en_NZ/.cvsignore | 1 - htdocs/langs/en_US/.cvsignore | 1 - htdocs/langs/es_ES/.cvsignore | 1 - htdocs/langs/es_PR/.cvsignore | 1 - htdocs/langs/fr_BE/.cvsignore | 1 - htdocs/langs/fr_FR/.cvsignore | 1 - .../fr_FR/js/jquery.ui.datepicker-fr_FR.js | 2 ++ htdocs/langs/it_IT/.cvsignore | 1 - htdocs/langs/nl_BE/.cvsignore | 1 - htdocs/langs/pl_PL/.cvsignore | 1 - htdocs/langs/pt_PT/.cvsignore | 1 - htdocs/paypal/img/.cvsignore | 1 - htdocs/public/donations/.cvsignore | 9 -------- htdocs/support/.cvsignore | 1 - htdocs/theme/.cvsignore | 3 --- htdocs/theme/auguria/.cvsignore | 1 - htdocs/theme/auguria/fckeditor/.cvsignore | 1 - .../theme/auguria/fckeditor/images/.cvsignore | 2 -- htdocs/theme/auguria/img/.cvsignore | 1 - htdocs/theme/auguria/img/menus/.cvsignore | 1 - htdocs/theme/bureau2crea/.cvsignore | 2 -- htdocs/theme/bureau2crea/fckeditor/.cvsignore | 1 - .../bureau2crea/fckeditor/images/.cvsignore | 2 -- htdocs/theme/bureau2crea/img/.cvsignore | 1 - htdocs/theme/bureau2crea/img/menus/.cvsignore | 1 - htdocs/theme/common/.cvsignore | 1 - htdocs/theme/common/flags/.cvsignore | 1 - htdocs/theme/common/mime/.cvsignore | 1 - htdocs/theme/common/treemenu/.cvsignore | 2 -- htdocs/theme/eldy/.cvsignore | 1 - htdocs/theme/eldy/fckeditor/.cvsignore | 1 - htdocs/theme/eldy/fckeditor/images/.cvsignore | 2 -- htdocs/theme/eldy/img/.cvsignore | 1 - htdocs/theme/eldy/img/menus/.cvsignore | 1 - test/.cvsignore | 1 - test/phpunit/.cvsignore | 1 - 63 files changed, 32 insertions(+), 141 deletions(-) delete mode 100644 .cvsignore delete mode 100644 build/.cvsignore delete mode 100644 build/exe/doliwamp/.cvsignore delete mode 100644 dev/.cvsignore delete mode 100644 dev/phpunit/.cvsignore delete mode 100644 dev/skeletons/.cvsignore delete mode 100755 dev/test/.cvsignore delete mode 100644 dev/xdebug/.cvsignore delete mode 100644 doc/images/.cvsignore delete mode 100644 htdocs/.cvsignore delete mode 100644 htdocs/admin/.cvsignore delete mode 100644 htdocs/conf/.cvsignore delete mode 100644 htdocs/core/modules/.cvsignore delete mode 100644 htdocs/core/modules/mailings/.cvsignore delete mode 100644 htdocs/includes/.cvsignore delete mode 100755 htdocs/includes/jquery/plugins/flot/.cvsignore delete mode 100755 htdocs/includes/jquery/plugins/jcrop/.cvsignore delete mode 100644 htdocs/includes/nusoap/.cvsignore delete mode 100644 htdocs/install/.cvsignore delete mode 100644 htdocs/langs/ca_ES/.cvsignore delete mode 100644 htdocs/langs/en_AU/.cvsignore delete mode 100755 htdocs/langs/en_IN/.cvsignore delete mode 100755 htdocs/langs/en_NZ/.cvsignore delete mode 100644 htdocs/langs/en_US/.cvsignore delete mode 100644 htdocs/langs/es_ES/.cvsignore delete mode 100755 htdocs/langs/es_PR/.cvsignore delete mode 100644 htdocs/langs/fr_BE/.cvsignore delete mode 100644 htdocs/langs/fr_FR/.cvsignore delete mode 100644 htdocs/langs/it_IT/.cvsignore delete mode 100644 htdocs/langs/nl_BE/.cvsignore delete mode 100644 htdocs/langs/pl_PL/.cvsignore delete mode 100644 htdocs/langs/pt_PT/.cvsignore delete mode 100644 htdocs/paypal/img/.cvsignore delete mode 100644 htdocs/public/donations/.cvsignore delete mode 100644 htdocs/support/.cvsignore delete mode 100644 htdocs/theme/.cvsignore delete mode 100644 htdocs/theme/auguria/.cvsignore delete mode 100644 htdocs/theme/auguria/fckeditor/.cvsignore delete mode 100644 htdocs/theme/auguria/fckeditor/images/.cvsignore delete mode 100644 htdocs/theme/auguria/img/.cvsignore delete mode 100644 htdocs/theme/auguria/img/menus/.cvsignore delete mode 100644 htdocs/theme/bureau2crea/.cvsignore delete mode 100644 htdocs/theme/bureau2crea/fckeditor/.cvsignore delete mode 100644 htdocs/theme/bureau2crea/fckeditor/images/.cvsignore delete mode 100644 htdocs/theme/bureau2crea/img/.cvsignore delete mode 100644 htdocs/theme/bureau2crea/img/menus/.cvsignore delete mode 100644 htdocs/theme/common/.cvsignore delete mode 100644 htdocs/theme/common/flags/.cvsignore delete mode 100644 htdocs/theme/common/mime/.cvsignore delete mode 100644 htdocs/theme/common/treemenu/.cvsignore delete mode 100644 htdocs/theme/eldy/.cvsignore delete mode 100644 htdocs/theme/eldy/fckeditor/.cvsignore delete mode 100644 htdocs/theme/eldy/fckeditor/images/.cvsignore delete mode 100644 htdocs/theme/eldy/img/.cvsignore delete mode 100644 htdocs/theme/eldy/img/menus/.cvsignore delete mode 100644 test/.cvsignore delete mode 100644 test/phpunit/.cvsignore diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index bb36fc7af21..00000000000 --- a/.cvsignore +++ /dev/null @@ -1,14 +0,0 @@ -index.php -*.htaccess -*.settings -*.buildpath -*.project -*.cache -*.log -*.DS_Store -document -documents -DEBIAN -install.lock -*.patch -default.properties diff --git a/build/.cvsignore b/build/.cvsignore deleted file mode 100644 index 53dd6ee2abd..00000000000 --- a/build/.cvsignore +++ /dev/null @@ -1,19 +0,0 @@ -dolibarr-*.exe -dolibarr-*.tgz -dolibarr-*.zip -dolibarr-*.rpm -dolibarr-*.deb -makepack-google.conf -module_google-*.tgz -module_pibarcode-1.0.tgz -*.exe -*.tgz -*.torrent -*.zip -version-phpsane.txt -makepack-phpsane.conf -html -*.deb -*.dsc -*.tar.gz -*.changes diff --git a/build/exe/doliwamp/.cvsignore b/build/exe/doliwamp/.cvsignore deleted file mode 100644 index b0ebc4e224b..00000000000 --- a/build/exe/doliwamp/.cvsignore +++ /dev/null @@ -1,3 +0,0 @@ -*.db -ca_dolibarr.key -doliwamptest.iss diff --git a/dev/.cvsignore b/dev/.cvsignore deleted file mode 100644 index 79c6997b865..00000000000 --- a/dev/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -spec diff --git a/dev/phpunit/.cvsignore b/dev/phpunit/.cvsignore deleted file mode 100644 index 085e8baf0c8..00000000000 --- a/dev/phpunit/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Thumbs.db diff --git a/dev/skeletons/.cvsignore b/dev/skeletons/.cvsignore deleted file mode 100644 index 2dda6229d24..00000000000 --- a/dev/skeletons/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -out.* -socpeople* diff --git a/dev/test/.cvsignore b/dev/test/.cvsignore deleted file mode 100755 index ea7f2ddf499..00000000000 --- a/dev/test/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -example*.pdf diff --git a/dev/xdebug/.cvsignore b/dev/xdebug/.cvsignore deleted file mode 100644 index 085e8baf0c8..00000000000 --- a/dev/xdebug/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Thumbs.db diff --git a/doc/images/.cvsignore b/doc/images/.cvsignore deleted file mode 100644 index 98e6ef67fad..00000000000 --- a/doc/images/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -*.db diff --git a/htdocs/.cvsignore b/htdocs/.cvsignore deleted file mode 100644 index 3ae525b6634..00000000000 --- a/htdocs/.cvsignore +++ /dev/null @@ -1,10 +0,0 @@ -google -.htaccess -.DS_Store -.documents -dolibarr_mail -demo_pwc -phpsane -test.php -custom -custom2 diff --git a/htdocs/admin/.cvsignore b/htdocs/admin/.cvsignore deleted file mode 100644 index 284446f4393..00000000000 --- a/htdocs/admin/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -google.php diff --git a/htdocs/compta/deplacement/fiche.php b/htdocs/compta/deplacement/fiche.php index 347723f2404..7c72d94b83a 100644 --- a/htdocs/compta/deplacement/fiche.php +++ b/htdocs/compta/deplacement/fiche.php @@ -356,8 +356,7 @@ else if ($id) // Date print ''.$langs->trans("Date").''; - print $form->editInPlace($object->date, 'date', $user->rights->deplacement->creer, 'datepicker'); - //print dol_print_date($object->date,'day'); + print $form->editInPlace($object->date, 'dated', $user->rights->deplacement->creer, 'datepicker'); print ''; // Km/Price diff --git a/htdocs/conf/.cvsignore b/htdocs/conf/.cvsignore deleted file mode 100644 index ff44c5dfae4..00000000000 --- a/htdocs/conf/.cvsignore +++ /dev/null @@ -1,4 +0,0 @@ -conf.php*.sav -*.php -conf.php.mysql -conf.php.postgres diff --git a/htdocs/core/ajax/saveinplace.php b/htdocs/core/ajax/saveinplace.php index 449cc27d93c..f710797c8fd 100644 --- a/htdocs/core/ajax/saveinplace.php +++ b/htdocs/core/ajax/saveinplace.php @@ -37,7 +37,7 @@ require_once(DOL_DOCUMENT_ROOT."/core/class/genericobject.class.php"); top_httphead(); //print ''."\n"; -print_r($_POST); +//print_r($_POST); // Load original field value if((isset($_POST['field']) && ! empty($_POST['field'])) @@ -51,7 +51,9 @@ if((isset($_POST['field']) && ! empty($_POST['field'])) $fk_element = GETPOST('fk_element'); $value = GETPOST('value'); $type = GETPOST('type'); + $timestamp = GETPOST('timestamp'); + $format='text'; $return=array(); $error=0; @@ -62,26 +64,31 @@ if((isset($_POST['field']) && ! empty($_POST['field'])) $object = new GenericObject($db); // Clean parameters - $value = trim($value); + $newvalue = trim($value); if ($type == 'numeric') { - $value = price2num($value); + $newvalue = price2num($newvalue); // Check parameters - if (! is_numeric($value)) + if (! is_numeric($newvalue)) { $error++; $return['error'] = $langs->trans('ErrorBadValue'); } } + else if ($type == 'datepicker') + { + $format = 'date'; + $newvalue = ($timestamp / 1000); + } if (! $error) { - $ret=$object->setValueFrom($table_element, $fk_element, $field, $value); + $ret=$object->setValueFrom($table_element, $fk_element, $field, $newvalue, $format); if ($ret > 0) { - if ($type == 'numeric') $value = price($value); - else if ($type == 'textarea') $value = dol_nl2br($value); + if ($type == 'numeric') $value = price($newvalue); + else if ($type == 'textarea') $value = dol_nl2br($newvalue); $return['value'] = $value; } diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index c6477a55c26..d4583a02d7e 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -622,16 +622,18 @@ abstract class CommonObject * @param int $id Object id * @param string $field Field to update * @param mixte $value New value + * @param string $format Data format * @return int <0 if KO, >0 if OK */ - function setValueFrom($table, $id, $field, $value) + function setValueFrom($table, $id, $field, $value, $format='text') { global $conf; $this->db->begin(); $sql = "UPDATE ".MAIN_DB_PREFIX.$table." SET "; - $sql.= $field." = '".$this->db->escape($value)."'"; + if ($format == 'text') $sql.= $field." = '".$this->db->escape($value)."'"; + else if ($format == 'date') $sql.= $field." = '".$this->db->idate($value)."'"; $sql.= " WHERE rowid = ".$id; dol_syslog(get_class($this)."::setValueFrom sql=".$sql, LOG_DEBUG); diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 592c4bf6f4d..53e69f414cc 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -164,6 +164,9 @@ class Form if (! empty($conf->global->MAIN_USE_JQUERY_JEDITABLE) && $condition) { + // Use for timestamp format + if ($type == 'datepicker') $out.= ''; + $out.= '
'; $out.= $value; $out.= '
'; diff --git a/htdocs/core/js/editinplace.js b/htdocs/core/js/editinplace.js index da4e351d10b..9e905f43cc8 100644 --- a/htdocs/core/js/editinplace.js +++ b/htdocs/core/js/editinplace.js @@ -105,11 +105,14 @@ $(document).ready(function() { cancel : cancelInPlace, submit : submitInPlace, indicator : indicatorInPlace, - submitdata : { - type: 'datepicker', - element: element, - table_element: table_element, - fk_element: fk_element + submitdata : function(value, settings) { + return { + type: 'datepicker', + element: element, + table_element: table_element, + fk_element: fk_element, + timestamp: $('#timeStamp').val() + }; }, callback : function(result, settings) { var obj = $.parseJSON(result); diff --git a/htdocs/core/modules/.cvsignore b/htdocs/core/modules/.cvsignore deleted file mode 100644 index 6c3a451f7c8..00000000000 --- a/htdocs/core/modules/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -modGoogle.class.php -modPHPSane.class.php diff --git a/htdocs/core/modules/mailings/.cvsignore b/htdocs/core/modules/mailings/.cvsignore deleted file mode 100644 index 91cc9955acd..00000000000 --- a/htdocs/core/modules/mailings/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -mailinglist_chatsderace.modules.php -mailinglist_chiensderace.modules.php diff --git a/htdocs/includes/.cvsignore b/htdocs/includes/.cvsignore deleted file mode 100644 index ee6265250e2..00000000000 --- a/htdocs/includes/.cvsignore +++ /dev/null @@ -1,5 +0,0 @@ -jpgraph2 -phpsane -php_excelreader -.DS_Store -ckfinder diff --git a/htdocs/includes/jquery/plugins/flot/.cvsignore b/htdocs/includes/jquery/plugins/flot/.cvsignore deleted file mode 100755 index 1e107f52e47..00000000000 --- a/htdocs/includes/jquery/plugins/flot/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -examples diff --git a/htdocs/includes/jquery/plugins/jcrop/.cvsignore b/htdocs/includes/jquery/plugins/jcrop/.cvsignore deleted file mode 100755 index 7f27eaa98d0..00000000000 --- a/htdocs/includes/jquery/plugins/jcrop/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -aaa.txt -demos diff --git a/htdocs/includes/nusoap/.cvsignore b/htdocs/includes/nusoap/.cvsignore deleted file mode 100644 index 81154dd4d19..00000000000 --- a/htdocs/includes/nusoap/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -samples diff --git a/htdocs/install/.cvsignore b/htdocs/install/.cvsignore deleted file mode 100644 index ba9d2cb1f4a..00000000000 --- a/htdocs/install/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -install.forced.php diff --git a/htdocs/langs/ca_ES/.cvsignore b/htdocs/langs/ca_ES/.cvsignore deleted file mode 100644 index 1fd02e68d65..00000000000 --- a/htdocs/langs/ca_ES/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -google.lang diff --git a/htdocs/langs/en_AU/.cvsignore b/htdocs/langs/en_AU/.cvsignore deleted file mode 100644 index 1fd02e68d65..00000000000 --- a/htdocs/langs/en_AU/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -google.lang diff --git a/htdocs/langs/en_IN/.cvsignore b/htdocs/langs/en_IN/.cvsignore deleted file mode 100755 index 1fd02e68d65..00000000000 --- a/htdocs/langs/en_IN/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -google.lang diff --git a/htdocs/langs/en_NZ/.cvsignore b/htdocs/langs/en_NZ/.cvsignore deleted file mode 100755 index 1fd02e68d65..00000000000 --- a/htdocs/langs/en_NZ/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -google.lang diff --git a/htdocs/langs/en_US/.cvsignore b/htdocs/langs/en_US/.cvsignore deleted file mode 100644 index 1fd02e68d65..00000000000 --- a/htdocs/langs/en_US/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -google.lang diff --git a/htdocs/langs/es_ES/.cvsignore b/htdocs/langs/es_ES/.cvsignore deleted file mode 100644 index 1fd02e68d65..00000000000 --- a/htdocs/langs/es_ES/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -google.lang diff --git a/htdocs/langs/es_PR/.cvsignore b/htdocs/langs/es_PR/.cvsignore deleted file mode 100755 index 1fd02e68d65..00000000000 --- a/htdocs/langs/es_PR/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -google.lang diff --git a/htdocs/langs/fr_BE/.cvsignore b/htdocs/langs/fr_BE/.cvsignore deleted file mode 100644 index 1fd02e68d65..00000000000 --- a/htdocs/langs/fr_BE/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -google.lang diff --git a/htdocs/langs/fr_FR/.cvsignore b/htdocs/langs/fr_FR/.cvsignore deleted file mode 100644 index 1fd02e68d65..00000000000 --- a/htdocs/langs/fr_FR/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -google.lang diff --git a/htdocs/langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js b/htdocs/langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js index 7e793639f5f..24d0248832e 100644 --- a/htdocs/langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js +++ b/htdocs/langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js @@ -16,6 +16,8 @@ jQuery(function($){ dayNamesShort: ['Dim.','Lun.','Mar.','Mer.','Jeu.','Ven.','Sam.'], dayNamesMin: ['D','L','M','M','J','V','S'], weekHeader: 'Sem.', + altField: '#timeStamp', + altFormat: '@', // Gives a timestamp dateformat dateFormat: 'dd/mm/yy', firstDay: 1, isRTL: false, diff --git a/htdocs/langs/it_IT/.cvsignore b/htdocs/langs/it_IT/.cvsignore deleted file mode 100644 index 1fd02e68d65..00000000000 --- a/htdocs/langs/it_IT/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -google.lang diff --git a/htdocs/langs/nl_BE/.cvsignore b/htdocs/langs/nl_BE/.cvsignore deleted file mode 100644 index 1fd02e68d65..00000000000 --- a/htdocs/langs/nl_BE/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -google.lang diff --git a/htdocs/langs/pl_PL/.cvsignore b/htdocs/langs/pl_PL/.cvsignore deleted file mode 100644 index 1fd02e68d65..00000000000 --- a/htdocs/langs/pl_PL/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -google.lang diff --git a/htdocs/langs/pt_PT/.cvsignore b/htdocs/langs/pt_PT/.cvsignore deleted file mode 100644 index 1fd02e68d65..00000000000 --- a/htdocs/langs/pt_PT/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -google.lang diff --git a/htdocs/paypal/img/.cvsignore b/htdocs/paypal/img/.cvsignore deleted file mode 100644 index 085e8baf0c8..00000000000 --- a/htdocs/paypal/img/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Thumbs.db diff --git a/htdocs/public/donations/.cvsignore b/htdocs/public/donations/.cvsignore deleted file mode 100644 index d162d9e3319..00000000000 --- a/htdocs/public/donations/.cvsignore +++ /dev/null @@ -1,9 +0,0 @@ -don.php -merci.php -valid.php -erreur.php -navigation.fr.xsl -fsfe-fr.xsl -eucd.css -donateurs.php -graph.php diff --git a/htdocs/support/.cvsignore b/htdocs/support/.cvsignore deleted file mode 100644 index 085e8baf0c8..00000000000 --- a/htdocs/support/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Thumbs.db diff --git a/htdocs/theme/.cvsignore b/htdocs/theme/.cvsignore deleted file mode 100644 index 2a5b5c641fc..00000000000 --- a/htdocs/theme/.cvsignore +++ /dev/null @@ -1,3 +0,0 @@ -*.db -clear -bureau2crea?-?ancien diff --git a/htdocs/theme/auguria/.cvsignore b/htdocs/theme/auguria/.cvsignore deleted file mode 100644 index a92ea3e3f61..00000000000 --- a/htdocs/theme/auguria/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -*.db diff --git a/htdocs/theme/auguria/fckeditor/.cvsignore b/htdocs/theme/auguria/fckeditor/.cvsignore deleted file mode 100644 index 085e8baf0c8..00000000000 --- a/htdocs/theme/auguria/fckeditor/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Thumbs.db diff --git a/htdocs/theme/auguria/fckeditor/images/.cvsignore b/htdocs/theme/auguria/fckeditor/images/.cvsignore deleted file mode 100644 index 78d24c23930..00000000000 --- a/htdocs/theme/auguria/fckeditor/images/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -*.db -*.db diff --git a/htdocs/theme/auguria/img/.cvsignore b/htdocs/theme/auguria/img/.cvsignore deleted file mode 100644 index 98e6ef67fad..00000000000 --- a/htdocs/theme/auguria/img/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -*.db diff --git a/htdocs/theme/auguria/img/menus/.cvsignore b/htdocs/theme/auguria/img/menus/.cvsignore deleted file mode 100644 index fe283d71a09..00000000000 --- a/htdocs/theme/auguria/img/menus/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -tango-icon-theme* diff --git a/htdocs/theme/bureau2crea/.cvsignore b/htdocs/theme/bureau2crea/.cvsignore deleted file mode 100644 index 77883ba2a3e..00000000000 --- a/htdocs/theme/bureau2crea/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -*.db -style.css?-?Copie.php diff --git a/htdocs/theme/bureau2crea/fckeditor/.cvsignore b/htdocs/theme/bureau2crea/fckeditor/.cvsignore deleted file mode 100644 index 085e8baf0c8..00000000000 --- a/htdocs/theme/bureau2crea/fckeditor/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Thumbs.db diff --git a/htdocs/theme/bureau2crea/fckeditor/images/.cvsignore b/htdocs/theme/bureau2crea/fckeditor/images/.cvsignore deleted file mode 100644 index 78d24c23930..00000000000 --- a/htdocs/theme/bureau2crea/fckeditor/images/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -*.db -*.db diff --git a/htdocs/theme/bureau2crea/img/.cvsignore b/htdocs/theme/bureau2crea/img/.cvsignore deleted file mode 100644 index 98e6ef67fad..00000000000 --- a/htdocs/theme/bureau2crea/img/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -*.db diff --git a/htdocs/theme/bureau2crea/img/menus/.cvsignore b/htdocs/theme/bureau2crea/img/menus/.cvsignore deleted file mode 100644 index fe283d71a09..00000000000 --- a/htdocs/theme/bureau2crea/img/menus/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -tango-icon-theme* diff --git a/htdocs/theme/common/.cvsignore b/htdocs/theme/common/.cvsignore deleted file mode 100644 index a92ea3e3f61..00000000000 --- a/htdocs/theme/common/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -*.db diff --git a/htdocs/theme/common/flags/.cvsignore b/htdocs/theme/common/flags/.cvsignore deleted file mode 100644 index 085e8baf0c8..00000000000 --- a/htdocs/theme/common/flags/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Thumbs.db diff --git a/htdocs/theme/common/mime/.cvsignore b/htdocs/theme/common/mime/.cvsignore deleted file mode 100644 index a92ea3e3f61..00000000000 --- a/htdocs/theme/common/mime/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -*.db diff --git a/htdocs/theme/common/treemenu/.cvsignore b/htdocs/theme/common/treemenu/.cvsignore deleted file mode 100644 index 020f3864407..00000000000 --- a/htdocs/theme/common/treemenu/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -*.db -*.db diff --git a/htdocs/theme/eldy/.cvsignore b/htdocs/theme/eldy/.cvsignore deleted file mode 100644 index 98e6ef67fad..00000000000 --- a/htdocs/theme/eldy/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -*.db diff --git a/htdocs/theme/eldy/fckeditor/.cvsignore b/htdocs/theme/eldy/fckeditor/.cvsignore deleted file mode 100644 index 085e8baf0c8..00000000000 --- a/htdocs/theme/eldy/fckeditor/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Thumbs.db diff --git a/htdocs/theme/eldy/fckeditor/images/.cvsignore b/htdocs/theme/eldy/fckeditor/images/.cvsignore deleted file mode 100644 index 020f3864407..00000000000 --- a/htdocs/theme/eldy/fckeditor/images/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -*.db -*.db diff --git a/htdocs/theme/eldy/img/.cvsignore b/htdocs/theme/eldy/img/.cvsignore deleted file mode 100644 index a92ea3e3f61..00000000000 --- a/htdocs/theme/eldy/img/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -*.db diff --git a/htdocs/theme/eldy/img/menus/.cvsignore b/htdocs/theme/eldy/img/menus/.cvsignore deleted file mode 100644 index fe283d71a09..00000000000 --- a/htdocs/theme/eldy/img/menus/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -tango-icon-theme* diff --git a/test/.cvsignore b/test/.cvsignore deleted file mode 100644 index 05c31926438..00000000000 --- a/test/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -report diff --git a/test/phpunit/.cvsignore b/test/phpunit/.cvsignore deleted file mode 100644 index 05c31926438..00000000000 --- a/test/phpunit/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -report From a56482dbfc76158ba3b4226c86a6f08b3d9a85a2 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 28 Oct 2011 19:53:06 +0200 Subject: [PATCH 10/35] Add datepicker language for dispatch in language directory see README file --- htdocs/includes/jquery/i18n/README | 17 ++++++++++++ .../jquery/i18n/jquery.ui.datepicker-af.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-ar-DZ.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-ar.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-az.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-bg.js | 24 +++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-bs.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-ca.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-cs.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-da.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-de.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-el.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-en-AU.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-en-GB.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-en-NZ.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-eo.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-es.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-et.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-eu.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-fa.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-fi.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-fo.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-fr-CH.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-fr.js | 25 ++++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-gl.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-he.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-hr.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-hu.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-hy.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-id.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-is.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-it.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-ja.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-ko.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-kz.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-lt.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-lv.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-ml.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-ms.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-nl.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-no.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-pl.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-pt-BR.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-pt.js | 22 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-rm.js | 21 +++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-ro.js | 26 +++++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-ru.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-sk.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-sl.js | 24 +++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-sq.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-sr-SR.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-sr.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-sv.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-ta.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-th.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-tj.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-tr.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-uk.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-vi.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-zh-CN.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-zh-HK.js | 23 ++++++++++++++++ .../jquery/i18n/jquery.ui.datepicker-zh-TW.js | 23 ++++++++++++++++ .../fr_FR/js/jquery.ui.datepicker-fr_FR.js | 2 +- 63 files changed, 1425 insertions(+), 1 deletion(-) create mode 100644 htdocs/includes/jquery/i18n/README create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-af.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-ar-DZ.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-ar.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-az.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-bg.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-bs.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-ca.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-cs.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-da.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-de.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-el.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-en-AU.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-en-GB.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-en-NZ.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-eo.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-es.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-et.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-eu.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-fa.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-fi.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-fo.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-fr-CH.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-fr.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-gl.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-he.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-hr.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-hu.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-hy.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-id.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-is.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-it.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-ja.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-ko.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-kz.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-lt.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-lv.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-ml.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-ms.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-nl.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-no.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-pl.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-pt-BR.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-pt.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-rm.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-ro.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-ru.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-sk.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-sl.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-sq.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-sr-SR.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-sr.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-sv.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-ta.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-th.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-tj.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-tr.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-uk.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-vi.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-zh-CN.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-zh-HK.js create mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-zh-TW.js diff --git a/htdocs/includes/jquery/i18n/README b/htdocs/includes/jquery/i18n/README new file mode 100644 index 00000000000..a7a4a49e585 --- /dev/null +++ b/htdocs/includes/jquery/i18n/README @@ -0,0 +1,17 @@ +http://github.com/jquery/jquery-ui + +add "js" directory in language directory +eg: /langs/fr_FR/js/ + +add datepicker language file +eg: /langs/fr_FR/js/jquery.ui.datepicker-fr.js + +and rename the file with country code +eg: /langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js + +edit the file and add 2 options : + +altField: '#timeStamp', +altFormat: '@', // Gives a timestamp dateformat + +for example, see /langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-af.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-af.js new file mode 100644 index 00000000000..0922ef7a1c0 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-af.js @@ -0,0 +1,23 @@ +/* Afrikaans initialisation for the jQuery UI date picker plugin. */ +/* Written by Renier Pretorius. */ +jQuery(function($){ + $.datepicker.regional['af'] = { + closeText: 'Selekteer', + prevText: 'Vorige', + nextText: 'Volgende', + currentText: 'Vandag', + monthNames: ['Januarie','Februarie','Maart','April','Mei','Junie', + 'Julie','Augustus','September','Oktober','November','Desember'], + monthNamesShort: ['Jan', 'Feb', 'Mrt', 'Apr', 'Mei', 'Jun', + 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'], + dayNames: ['Sondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrydag', 'Saterdag'], + dayNamesShort: ['Son', 'Maa', 'Din', 'Woe', 'Don', 'Vry', 'Sat'], + dayNamesMin: ['So','Ma','Di','Wo','Do','Vr','Sa'], + weekHeader: 'Wk', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['af']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ar-DZ.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ar-DZ.js new file mode 100644 index 00000000000..7b175af40ea --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ar-DZ.js @@ -0,0 +1,23 @@ +/* Algerian Arabic Translation for jQuery UI date picker plugin. (can be used for Tunisia)*/ +/* Mohamed Cherif BOUCHELAGHEM -- cherifbouchelaghem@yahoo.fr */ + +jQuery(function($){ + $.datepicker.regional['ar-DZ'] = { + closeText: 'إغلاق', + prevText: '<السابق', + nextText: 'التالي>', + currentText: 'اليوم', + monthNames: ['جانفي', 'فيفري', 'مارس', 'أفريل', 'ماي', 'جوان', + 'جويلية', 'أوت', 'سبتمبر','أكتوبر', 'نوفمبر', 'ديسمبر'], + monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], + dayNames: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], + dayNamesShort: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], + dayNamesMin: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], + weekHeader: 'أسبوع', + dateFormat: 'dd/mm/yy', + firstDay: 6, + isRTL: true, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['ar-DZ']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ar.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ar.js new file mode 100644 index 00000000000..f24b3ff5a1c --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ar.js @@ -0,0 +1,23 @@ +/* Arabic Translation for jQuery UI date picker plugin. */ +/* Khaled Alhourani -- me@khaledalhourani.com */ +/* NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */ +jQuery(function($){ + $.datepicker.regional['ar'] = { + closeText: 'إغلاق', + prevText: '<السابق', + nextText: 'التالي>', + currentText: 'اليوم', + monthNames: ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'مايو', 'حزيران', + 'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'], + monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], + dayNames: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], + dayNamesShort: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], + dayNamesMin: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], + weekHeader: 'أسبوع', + dateFormat: 'dd/mm/yy', + firstDay: 6, + isRTL: true, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['ar']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-az.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-az.js new file mode 100644 index 00000000000..1101c8b91b2 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-az.js @@ -0,0 +1,23 @@ +/* Azerbaijani (UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* Written by Jamil Najafov (necefov33@gmail.com). */ +jQuery(function($) { + $.datepicker.regional['az'] = { + closeText: 'Bağla', + prevText: '<Geri', + nextText: 'İrəli>', + currentText: 'Bugün', + monthNames: ['Yanvar','Fevral','Mart','Aprel','May','İyun', + 'İyul','Avqust','Sentyabr','Oktyabr','Noyabr','Dekabr'], + monthNamesShort: ['Yan','Fev','Mar','Apr','May','İyun', + 'İyul','Avq','Sen','Okt','Noy','Dek'], + dayNames: ['Bazar','Bazar ertəsi','Çərşənbə axşamı','Çərşənbə','Cümə axşamı','Cümə','Şənbə'], + dayNamesShort: ['B','Be','Ça','Ç','Ca','C','Ş'], + dayNamesMin: ['B','B','Ç','С','Ç','C','Ş'], + weekHeader: 'Hf', + dateFormat: 'dd.mm.yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['az']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-bg.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-bg.js new file mode 100644 index 00000000000..4e0ee2f509f --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-bg.js @@ -0,0 +1,24 @@ +/* Bulgarian initialisation for the jQuery UI date picker plugin. */ +/* Written by Stoyan Kyosev (http://svest.org). */ +jQuery(function($){ + $.datepicker.regional['bg'] = { + closeText: 'затвори', + prevText: '<назад', + nextText: 'напред>', + nextBigText: '>>', + currentText: 'днес', + monthNames: ['Януари','Февруари','Март','Април','Май','Юни', + 'Юли','Август','Септември','Октомври','Ноември','Декември'], + monthNamesShort: ['Яну','Фев','Мар','Апр','Май','Юни', + 'Юли','Авг','Сеп','Окт','Нов','Дек'], + dayNames: ['Неделя','Понеделник','Вторник','Сряда','Четвъртък','Петък','Събота'], + dayNamesShort: ['Нед','Пон','Вто','Сря','Чет','Пет','Съб'], + dayNamesMin: ['Не','По','Вт','Ср','Че','Пе','Съ'], + weekHeader: 'Wk', + dateFormat: 'dd.mm.yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['bg']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-bs.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-bs.js new file mode 100644 index 00000000000..d6457375544 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-bs.js @@ -0,0 +1,23 @@ +/* Bosnian i18n for the jQuery UI date picker plugin. */ +/* Written by Kenan Konjo. */ +jQuery(function($){ + $.datepicker.regional['bs'] = { + closeText: 'Zatvori', + prevText: '<', + nextText: '>', + currentText: 'Danas', + monthNames: ['Januar','Februar','Mart','April','Maj','Juni', + 'Juli','August','Septembar','Oktobar','Novembar','Decembar'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', + 'Jul','Aug','Sep','Okt','Nov','Dec'], + dayNames: ['Nedelja','Ponedeljak','Utorak','Srijeda','Četvrtak','Petak','Subota'], + dayNamesShort: ['Ned','Pon','Uto','Sri','Čet','Pet','Sub'], + dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'], + weekHeader: 'Wk', + dateFormat: 'dd.mm.yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['bs']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ca.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ca.js new file mode 100644 index 00000000000..23c5c8c8151 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ca.js @@ -0,0 +1,23 @@ +/* Inicialització en català per a l'extenció 'calendar' per jQuery. */ +/* Writers: (joan.leon@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['ca'] = { + closeText: 'Tancar', + prevText: '<Ant', + nextText: 'Seg>', + currentText: 'Avui', + monthNames: ['Gener','Febrer','Març','Abril','Maig','Juny', + 'Juliol','Agost','Setembre','Octubre','Novembre','Desembre'], + monthNamesShort: ['Gen','Feb','Mar','Abr','Mai','Jun', + 'Jul','Ago','Set','Oct','Nov','Des'], + dayNames: ['Diumenge','Dilluns','Dimarts','Dimecres','Dijous','Divendres','Dissabte'], + dayNamesShort: ['Dug','Dln','Dmt','Dmc','Djs','Dvn','Dsb'], + dayNamesMin: ['Dg','Dl','Dt','Dc','Dj','Dv','Ds'], + weekHeader: 'Sm', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['ca']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-cs.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-cs.js new file mode 100644 index 00000000000..bf56baf01ef --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-cs.js @@ -0,0 +1,23 @@ +/* Czech initialisation for the jQuery UI date picker plugin. */ +/* Written by Tomas Muller (tomas@tomas-muller.net). */ +jQuery(function($){ + $.datepicker.regional['cs'] = { + closeText: 'Zavřít', + prevText: '<Dříve', + nextText: 'Později>', + currentText: 'Nyní', + monthNames: ['leden','únor','březen','duben','květen','červen', + 'červenec','srpen','září','říjen','listopad','prosinec'], + monthNamesShort: ['led','úno','bře','dub','kvě','čer', + 'čvc','srp','zář','říj','lis','pro'], + dayNames: ['neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota'], + dayNamesShort: ['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'], + dayNamesMin: ['ne','po','út','st','čt','pá','so'], + weekHeader: 'Týd', + dateFormat: 'dd.mm.yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['cs']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-da.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-da.js new file mode 100644 index 00000000000..fb2d3356d78 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-da.js @@ -0,0 +1,23 @@ +/* Danish initialisation for the jQuery UI date picker plugin. */ +/* Written by Jan Christensen ( deletestuff@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['da'] = { + closeText: 'Luk', + prevText: '<Forrige', + nextText: 'Næste>', + currentText: 'Idag', + monthNames: ['Januar','Februar','Marts','April','Maj','Juni', + 'Juli','August','September','Oktober','November','December'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', + 'Jul','Aug','Sep','Okt','Nov','Dec'], + dayNames: ['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'], + dayNamesShort: ['Søn','Man','Tir','Ons','Tor','Fre','Lør'], + dayNamesMin: ['Sø','Ma','Ti','On','To','Fr','Lø'], + weekHeader: 'Uge', + dateFormat: 'dd-mm-yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['da']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-de.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-de.js new file mode 100644 index 00000000000..52d6c82ce97 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-de.js @@ -0,0 +1,23 @@ +/* German initialisation for the jQuery UI date picker plugin. */ +/* Written by Milian Wolff (mail@milianw.de). */ +jQuery(function($){ + $.datepicker.regional['de'] = { + closeText: 'schließen', + prevText: '<zurück', + nextText: 'Vor>', + currentText: 'heute', + monthNames: ['Januar','Februar','März','April','Mai','Juni', + 'Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun', + 'Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + dateFormat: 'dd.mm.yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['de']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-el.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-el.js new file mode 100644 index 00000000000..6d775f995f9 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-el.js @@ -0,0 +1,23 @@ +/* Greek (el) initialisation for the jQuery UI date picker plugin. */ +/* Written by Alex Cicovic (http://www.alexcicovic.com) */ +jQuery(function($){ + $.datepicker.regional['el'] = { + closeText: 'Κλείσιμο', + prevText: 'Προηγούμενος', + nextText: 'Επόμενος', + currentText: 'Τρέχων Μήνας', + monthNames: ['Ιανουάριος','Φεβρουάριος','Μάρτιος','Απρίλιος','Μάιος','Ιούνιος', + 'Ιούλιος','Αύγουστος','Σεπτέμβριος','Οκτώβριος','Νοέμβριος','Δεκέμβριος'], + monthNamesShort: ['Ιαν','Φεβ','Μαρ','Απρ','Μαι','Ιουν', + 'Ιουλ','Αυγ','Σεπ','Οκτ','Νοε','Δεκ'], + dayNames: ['Κυριακή','Δευτέρα','Τρίτη','Τετάρτη','Πέμπτη','Παρασκευή','Σάββατο'], + dayNamesShort: ['Κυρ','Δευ','Τρι','Τετ','Πεμ','Παρ','Σαβ'], + dayNamesMin: ['Κυ','Δε','Τρ','Τε','Πε','Πα','Σα'], + weekHeader: 'Εβδ', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['el']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-en-AU.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-en-AU.js new file mode 100644 index 00000000000..c1a1020a140 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-en-AU.js @@ -0,0 +1,23 @@ +/* English/Australia initialisation for the jQuery UI date picker plugin. */ +/* Based on the en-GB initialisation. */ +jQuery(function($){ + $.datepicker.regional['en-AU'] = { + closeText: 'Done', + prevText: 'Prev', + nextText: 'Next', + currentText: 'Today', + monthNames: ['January','February','March','April','May','June', + 'July','August','September','October','November','December'], + monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', + 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], + dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], + dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], + dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'], + weekHeader: 'Wk', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['en-AU']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-en-GB.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-en-GB.js new file mode 100644 index 00000000000..16a096e758a --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-en-GB.js @@ -0,0 +1,23 @@ +/* English/UK initialisation for the jQuery UI date picker plugin. */ +/* Written by Stuart. */ +jQuery(function($){ + $.datepicker.regional['en-GB'] = { + closeText: 'Done', + prevText: 'Prev', + nextText: 'Next', + currentText: 'Today', + monthNames: ['January','February','March','April','May','June', + 'July','August','September','October','November','December'], + monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', + 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], + dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], + dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], + dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'], + weekHeader: 'Wk', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['en-GB']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-en-NZ.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-en-NZ.js new file mode 100644 index 00000000000..7819df05286 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-en-NZ.js @@ -0,0 +1,23 @@ +/* English/New Zealand initialisation for the jQuery UI date picker plugin. */ +/* Based on the en-GB initialisation. */ +jQuery(function($){ + $.datepicker.regional['en-NZ'] = { + closeText: 'Done', + prevText: 'Prev', + nextText: 'Next', + currentText: 'Today', + monthNames: ['January','February','March','April','May','June', + 'July','August','September','October','November','December'], + monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', + 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], + dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], + dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], + dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'], + weekHeader: 'Wk', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['en-NZ']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-eo.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-eo.js new file mode 100644 index 00000000000..39e44fc57c1 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-eo.js @@ -0,0 +1,23 @@ +/* Esperanto initialisation for the jQuery UI date picker plugin. */ +/* Written by Olivier M. (olivierweb@ifrance.com). */ +jQuery(function($){ + $.datepicker.regional['eo'] = { + closeText: 'Fermi', + prevText: '<Anta', + nextText: 'Sekv>', + currentText: 'Nuna', + monthNames: ['Januaro','Februaro','Marto','Aprilo','Majo','Junio', + 'Julio','Aŭgusto','Septembro','Oktobro','Novembro','Decembro'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', + 'Jul','Aŭg','Sep','Okt','Nov','Dec'], + dayNames: ['Dimanĉo','Lundo','Mardo','Merkredo','Ĵaŭdo','Vendredo','Sabato'], + dayNamesShort: ['Dim','Lun','Mar','Mer','Ĵaŭ','Ven','Sab'], + dayNamesMin: ['Di','Lu','Ma','Me','Ĵa','Ve','Sa'], + weekHeader: 'Sb', + dateFormat: 'dd/mm/yy', + firstDay: 0, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['eo']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-es.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-es.js new file mode 100644 index 00000000000..5f90cb50640 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-es.js @@ -0,0 +1,23 @@ +/* Inicialización en español para la extensión 'UI date picker' para jQuery. */ +/* Traducido por Vester (xvester@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['es'] = { + closeText: 'Cerrar', + prevText: '<Ant', + nextText: 'Sig>', + currentText: 'Hoy', + monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio', + 'Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'], + monthNamesShort: ['Ene','Feb','Mar','Abr','May','Jun', + 'Jul','Ago','Sep','Oct','Nov','Dic'], + dayNames: ['Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado'], + dayNamesShort: ['Dom','Lun','Mar','Mié','Juv','Vie','Sáb'], + dayNamesMin: ['Do','Lu','Ma','Mi','Ju','Vi','Sá'], + weekHeader: 'Sm', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['es']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-et.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-et.js new file mode 100644 index 00000000000..92f81f63786 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-et.js @@ -0,0 +1,23 @@ +/* Estonian initialisation for the jQuery UI date picker plugin. */ +/* Written by Mart Sõmermaa (mrts.pydev at gmail com). */ +jQuery(function($){ + $.datepicker.regional['et'] = { + closeText: 'Sulge', + prevText: 'Eelnev', + nextText: 'Järgnev', + currentText: 'Täna', + monthNames: ['Jaanuar','Veebruar','Märts','Aprill','Mai','Juuni', + 'Juuli','August','September','Oktoober','November','Detsember'], + monthNamesShort: ['Jaan', 'Veebr', 'Märts', 'Apr', 'Mai', 'Juuni', + 'Juuli', 'Aug', 'Sept', 'Okt', 'Nov', 'Dets'], + dayNames: ['Pühapäev', 'Esmaspäev', 'Teisipäev', 'Kolmapäev', 'Neljapäev', 'Reede', 'Laupäev'], + dayNamesShort: ['Pühap', 'Esmasp', 'Teisip', 'Kolmap', 'Neljap', 'Reede', 'Laup'], + dayNamesMin: ['P','E','T','K','N','R','L'], + weekHeader: 'Sm', + dateFormat: 'dd.mm.yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['et']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-eu.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-eu.js new file mode 100644 index 00000000000..4c40eebec67 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-eu.js @@ -0,0 +1,23 @@ +/* Euskarako oinarria 'UI date picker' jquery-ko extentsioarentzat */ +/* Karrikas-ek itzulia (karrikas@karrikas.com) */ +jQuery(function($){ + $.datepicker.regional['eu'] = { + closeText: 'Egina', + prevText: '<Aur', + nextText: 'Hur>', + currentText: 'Gaur', + monthNames: ['Urtarrila','Otsaila','Martxoa','Apirila','Maiatza','Ekaina', + 'Uztaila','Abuztua','Iraila','Urria','Azaroa','Abendua'], + monthNamesShort: ['Urt','Ots','Mar','Api','Mai','Eka', + 'Uzt','Abu','Ira','Urr','Aza','Abe'], + dayNames: ['Igandea','Astelehena','Asteartea','Asteazkena','Osteguna','Ostirala','Larunbata'], + dayNamesShort: ['Iga','Ast','Ast','Ast','Ost','Ost','Lar'], + dayNamesMin: ['Ig','As','As','As','Os','Os','La'], + weekHeader: 'Wk', + dateFormat: 'yy/mm/dd', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['eu']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fa.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fa.js new file mode 100644 index 00000000000..1d7fbd23c74 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fa.js @@ -0,0 +1,23 @@ +/* Persian (Farsi) Translation for the jQuery UI date picker plugin. */ +/* Javad Mowlanezhad -- jmowla@gmail.com */ +/* Jalali calendar should supported soon! (Its implemented but I have to test it) */ +jQuery(function($) { + $.datepicker.regional['fa'] = { + closeText: 'بستن', + prevText: '<قبلي', + nextText: 'بعدي>', + currentText: 'امروز', + monthNames: ['فروردين','ارديبهشت','خرداد','تير','مرداد','شهريور', + 'مهر','آبان','آذر','دي','بهمن','اسفند'], + monthNamesShort: ['1','2','3','4','5','6','7','8','9','10','11','12'], + dayNames: ['يکشنبه','دوشنبه','سه‌شنبه','چهارشنبه','پنجشنبه','جمعه','شنبه'], + dayNamesShort: ['ي','د','س','چ','پ','ج', 'ش'], + dayNamesMin: ['ي','د','س','چ','پ','ج', 'ش'], + weekHeader: 'هف', + dateFormat: 'yy/mm/dd', + firstDay: 6, + isRTL: true, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['fa']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fi.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fi.js new file mode 100644 index 00000000000..ece04e3b254 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fi.js @@ -0,0 +1,23 @@ +/* Finnish initialisation for the jQuery UI date picker plugin. */ +/* Written by Harri Kilpi� (harrikilpio@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['fi'] = { + closeText: 'Sulje', + prevText: '«Edellinen', + nextText: 'Seuraava»', + currentText: 'Tänään', + monthNames: ['Tammikuu','Helmikuu','Maaliskuu','Huhtikuu','Toukokuu','Kesäkuu', + 'Heinäkuu','Elokuu','Syyskuu','Lokakuu','Marraskuu','Joulukuu'], + monthNamesShort: ['Tammi','Helmi','Maalis','Huhti','Touko','Kesä', + 'Heinä','Elo','Syys','Loka','Marras','Joulu'], + dayNamesShort: ['Su','Ma','Ti','Ke','To','Pe','Su'], + dayNames: ['Sunnuntai','Maanantai','Tiistai','Keskiviikko','Torstai','Perjantai','Lauantai'], + dayNamesMin: ['Su','Ma','Ti','Ke','To','Pe','La'], + weekHeader: 'Vk', + dateFormat: 'dd.mm.yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['fi']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fo.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fo.js new file mode 100644 index 00000000000..9c848a04be2 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fo.js @@ -0,0 +1,23 @@ +/* Faroese initialisation for the jQuery UI date picker plugin */ +/* Written by Sverri Mohr Olsen, sverrimo@gmail.com */ +jQuery(function($){ + $.datepicker.regional['fo'] = { + closeText: 'Lat aftur', + prevText: '<Fyrra', + nextText: 'Næsta>', + currentText: 'Í dag', + monthNames: ['Januar','Februar','Mars','Apríl','Mei','Juni', + 'Juli','August','September','Oktober','November','Desember'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Mei','Jun', + 'Jul','Aug','Sep','Okt','Nov','Des'], + dayNames: ['Sunnudagur','Mánadagur','Týsdagur','Mikudagur','Hósdagur','Fríggjadagur','Leyardagur'], + dayNamesShort: ['Sun','Mán','Týs','Mik','Hós','Frí','Ley'], + dayNamesMin: ['Su','Má','Tý','Mi','Hó','Fr','Le'], + weekHeader: 'Vk', + dateFormat: 'dd-mm-yy', + firstDay: 0, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['fo']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fr-CH.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fr-CH.js new file mode 100644 index 00000000000..fec03a042f2 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fr-CH.js @@ -0,0 +1,23 @@ +/* Swiss-French initialisation for the jQuery UI date picker plugin. */ +/* Written Martin Voelkle (martin.voelkle@e-tc.ch). */ +jQuery(function($){ + $.datepicker.regional['fr-CH'] = { + closeText: 'Fermer', + prevText: '<Préc', + nextText: 'Suiv>', + currentText: 'Courant', + monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin', + 'Juillet','Août','Septembre','Octobre','Novembre','Décembre'], + monthNamesShort: ['Jan','Fév','Mar','Avr','Mai','Jun', + 'Jul','Aoû','Sep','Oct','Nov','Déc'], + dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'], + dayNamesShort: ['Dim','Lun','Mar','Mer','Jeu','Ven','Sam'], + dayNamesMin: ['Di','Lu','Ma','Me','Je','Ve','Sa'], + weekHeader: 'Sm', + dateFormat: 'dd.mm.yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['fr-CH']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fr.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fr.js new file mode 100644 index 00000000000..7e793639f5f --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fr.js @@ -0,0 +1,25 @@ +/* French initialisation for the jQuery UI date picker plugin. */ +/* Written by Keith Wood (kbwood{at}iinet.com.au), + Stéphane Nahmani (sholby@sholby.net), + Stéphane Raimbault */ +jQuery(function($){ + $.datepicker.regional['fr'] = { + closeText: 'Fermer', + prevText: 'Précédent', + nextText: 'Suivant', + currentText: 'Aujourd\'hui', + monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin', + 'Juillet','Août','Septembre','Octobre','Novembre','Décembre'], + monthNamesShort: ['Janv.','Févr.','Mars','Avril','Mai','Juin', + 'Juil.','Août','Sept.','Oct.','Nov.','Déc.'], + dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'], + dayNamesShort: ['Dim.','Lun.','Mar.','Mer.','Jeu.','Ven.','Sam.'], + dayNamesMin: ['D','L','M','M','J','V','S'], + weekHeader: 'Sem.', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['fr']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-gl.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-gl.js new file mode 100644 index 00000000000..3e24312a4d6 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-gl.js @@ -0,0 +1,23 @@ +/* Galician localization for 'UI date picker' jQuery extension. */ +/* Translated by Jorge Barreiro . */ +jQuery(function($){ + $.datepicker.regional['gl'] = { + closeText: 'Pechar', + prevText: '<Ant', + nextText: 'Seg>', + currentText: 'Hoxe', + monthNames: ['Xaneiro','Febreiro','Marzo','Abril','Maio','Xuño', + 'Xullo','Agosto','Setembro','Outubro','Novembro','Decembro'], + monthNamesShort: ['Xan','Feb','Mar','Abr','Mai','Xuñ', + 'Xul','Ago','Set','Out','Nov','Dec'], + dayNames: ['Domingo','Luns','Martes','Mércores','Xoves','Venres','Sábado'], + dayNamesShort: ['Dom','Lun','Mar','Mér','Xov','Ven','Sáb'], + dayNamesMin: ['Do','Lu','Ma','Mé','Xo','Ve','Sá'], + weekHeader: 'Sm', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['gl']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-he.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-he.js new file mode 100644 index 00000000000..58ea8c6d8d6 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-he.js @@ -0,0 +1,23 @@ +/* Hebrew initialisation for the UI Datepicker extension. */ +/* Written by Amir Hardon (ahardon at gmail dot com). */ +jQuery(function($){ + $.datepicker.regional['he'] = { + closeText: 'סגור', + prevText: '<הקודם', + nextText: 'הבא>', + currentText: 'היום', + monthNames: ['ינואר','פברואר','מרץ','אפריל','מאי','יוני', + 'יולי','אוגוסט','ספטמבר','אוקטובר','נובמבר','דצמבר'], + monthNamesShort: ['1','2','3','4','5','6', + '7','8','9','10','11','12'], + dayNames: ['ראשון','שני','שלישי','רביעי','חמישי','שישי','שבת'], + dayNamesShort: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'], + dayNamesMin: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'], + weekHeader: 'Wk', + dateFormat: 'dd/mm/yy', + firstDay: 0, + isRTL: true, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['he']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-hr.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-hr.js new file mode 100644 index 00000000000..6bc5aade129 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-hr.js @@ -0,0 +1,23 @@ +/* Croatian i18n for the jQuery UI date picker plugin. */ +/* Written by Vjekoslav Nesek. */ +jQuery(function($){ + $.datepicker.regional['hr'] = { + closeText: 'Zatvori', + prevText: '<', + nextText: '>', + currentText: 'Danas', + monthNames: ['Siječanj','Veljača','Ožujak','Travanj','Svibanj','Lipanj', + 'Srpanj','Kolovoz','Rujan','Listopad','Studeni','Prosinac'], + monthNamesShort: ['Sij','Velj','Ožu','Tra','Svi','Lip', + 'Srp','Kol','Ruj','Lis','Stu','Pro'], + dayNames: ['Nedjelja','Ponedjeljak','Utorak','Srijeda','Četvrtak','Petak','Subota'], + dayNamesShort: ['Ned','Pon','Uto','Sri','Čet','Pet','Sub'], + dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'], + weekHeader: 'Tje', + dateFormat: 'dd.mm.yy.', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['hr']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-hu.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-hu.js new file mode 100644 index 00000000000..b28c268c1c4 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-hu.js @@ -0,0 +1,23 @@ +/* Hungarian initialisation for the jQuery UI date picker plugin. */ +/* Written by Istvan Karaszi (jquery@spam.raszi.hu). */ +jQuery(function($){ + $.datepicker.regional['hu'] = { + closeText: 'bezár', + prevText: 'vissza', + nextText: 'előre', + currentText: 'ma', + monthNames: ['Január', 'Február', 'Március', 'Április', 'Május', 'Június', + 'Július', 'Augusztus', 'Szeptember', 'Október', 'November', 'December'], + monthNamesShort: ['Jan', 'Feb', 'Már', 'Ápr', 'Máj', 'Jún', + 'Júl', 'Aug', 'Szep', 'Okt', 'Nov', 'Dec'], + dayNames: ['Vasárnap', 'Hétfő', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombat'], + dayNamesShort: ['Vas', 'Hét', 'Ked', 'Sze', 'Csü', 'Pén', 'Szo'], + dayNamesMin: ['V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'], + weekHeader: 'Hét', + dateFormat: 'yy.mm.dd.', + firstDay: 1, + isRTL: false, + showMonthAfterYear: true, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['hu']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-hy.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-hy.js new file mode 100644 index 00000000000..b4285159613 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-hy.js @@ -0,0 +1,23 @@ +/* Armenian(UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* Written by Levon Zakaryan (levon.zakaryan@gmail.com)*/ +jQuery(function($){ + $.datepicker.regional['hy'] = { + closeText: 'Փակել', + prevText: '<Նախ.', + nextText: 'Հաջ.>', + currentText: 'Այսօր', + monthNames: ['Հունվար','Փետրվար','Մարտ','Ապրիլ','Մայիս','Հունիս', + 'Հուլիս','Օգոստոս','Սեպտեմբեր','Հոկտեմբեր','Նոյեմբեր','Դեկտեմբեր'], + monthNamesShort: ['Հունվ','Փետր','Մարտ','Ապր','Մայիս','Հունիս', + 'Հուլ','Օգս','Սեպ','Հոկ','Նոյ','Դեկ'], + dayNames: ['կիրակի','եկուշաբթի','երեքշաբթի','չորեքշաբթի','հինգշաբթի','ուրբաթ','շաբաթ'], + dayNamesShort: ['կիր','երկ','երք','չրք','հնգ','ուրբ','շբթ'], + dayNamesMin: ['կիր','երկ','երք','չրք','հնգ','ուրբ','շբթ'], + weekHeader: 'ՇԲՏ', + dateFormat: 'dd.mm.yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['hy']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-id.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-id.js new file mode 100644 index 00000000000..4ad46f64083 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-id.js @@ -0,0 +1,23 @@ +/* Indonesian initialisation for the jQuery UI date picker plugin. */ +/* Written by Deden Fathurahman (dedenf@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['id'] = { + closeText: 'Tutup', + prevText: '<mundur', + nextText: 'maju>', + currentText: 'hari ini', + monthNames: ['Januari','Februari','Maret','April','Mei','Juni', + 'Juli','Agustus','September','Oktober','Nopember','Desember'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Mei','Jun', + 'Jul','Agus','Sep','Okt','Nop','Des'], + dayNames: ['Minggu','Senin','Selasa','Rabu','Kamis','Jumat','Sabtu'], + dayNamesShort: ['Min','Sen','Sel','Rab','kam','Jum','Sab'], + dayNamesMin: ['Mg','Sn','Sl','Rb','Km','jm','Sb'], + weekHeader: 'Mg', + dateFormat: 'dd/mm/yy', + firstDay: 0, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['id']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-is.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-is.js new file mode 100644 index 00000000000..b52959a0377 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-is.js @@ -0,0 +1,23 @@ +/* Icelandic initialisation for the jQuery UI date picker plugin. */ +/* Written by Haukur H. Thorsson (haukur@eskill.is). */ +jQuery(function($){ + $.datepicker.regional['is'] = { + closeText: 'Loka', + prevText: '< Fyrri', + nextText: 'Næsti >', + currentText: 'Í dag', + monthNames: ['Janúar','Febrúar','Mars','Apríl','Maí','Júní', + 'Júlí','Ágúst','September','Október','Nóvember','Desember'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Maí','Jún', + 'Júl','Ágú','Sep','Okt','Nóv','Des'], + dayNames: ['Sunnudagur','Mánudagur','Þriðjudagur','Miðvikudagur','Fimmtudagur','Föstudagur','Laugardagur'], + dayNamesShort: ['Sun','Mán','Þri','Mið','Fim','Fös','Lau'], + dayNamesMin: ['Su','Má','Þr','Mi','Fi','Fö','La'], + weekHeader: 'Vika', + dateFormat: 'dd/mm/yy', + firstDay: 0, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['is']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-it.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-it.js new file mode 100644 index 00000000000..ebca1663798 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-it.js @@ -0,0 +1,23 @@ +/* Italian initialisation for the jQuery UI date picker plugin. */ +/* Written by Antonello Pasella (antonello.pasella@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['it'] = { + closeText: 'Chiudi', + prevText: '<Prec', + nextText: 'Succ>', + currentText: 'Oggi', + monthNames: ['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno', + 'Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'], + monthNamesShort: ['Gen','Feb','Mar','Apr','Mag','Giu', + 'Lug','Ago','Set','Ott','Nov','Dic'], + dayNames: ['Domenica','Lunedì','Martedì','Mercoledì','Giovedì','Venerdì','Sabato'], + dayNamesShort: ['Dom','Lun','Mar','Mer','Gio','Ven','Sab'], + dayNamesMin: ['Do','Lu','Ma','Me','Gi','Ve','Sa'], + weekHeader: 'Sm', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['it']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ja.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ja.js new file mode 100644 index 00000000000..afd2983157d --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ja.js @@ -0,0 +1,23 @@ +/* Japanese initialisation for the jQuery UI date picker plugin. */ +/* Written by Kentaro SATO (kentaro@ranvis.com). */ +jQuery(function($){ + $.datepicker.regional['ja'] = { + closeText: '閉じる', + prevText: '<前', + nextText: '次>', + currentText: '今日', + monthNames: ['1月','2月','3月','4月','5月','6月', + '7月','8月','9月','10月','11月','12月'], + monthNamesShort: ['1月','2月','3月','4月','5月','6月', + '7月','8月','9月','10月','11月','12月'], + dayNames: ['日曜日','月曜日','火曜日','水曜日','木曜日','金曜日','土曜日'], + dayNamesShort: ['日','月','火','水','木','金','土'], + dayNamesMin: ['日','月','火','水','木','金','土'], + weekHeader: '週', + dateFormat: 'yy/mm/dd', + firstDay: 0, + isRTL: false, + showMonthAfterYear: true, + yearSuffix: '年'}; + $.datepicker.setDefaults($.datepicker.regional['ja']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ko.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ko.js new file mode 100644 index 00000000000..5b3531652d9 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ko.js @@ -0,0 +1,23 @@ +/* Korean initialisation for the jQuery calendar extension. */ +/* Written by DaeKwon Kang (ncrash.dk@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['ko'] = { + closeText: '닫기', + prevText: '이전달', + nextText: '다음달', + currentText: '오늘', + monthNames: ['1월(JAN)','2월(FEB)','3월(MAR)','4월(APR)','5월(MAY)','6월(JUN)', + '7월(JUL)','8월(AUG)','9월(SEP)','10월(OCT)','11월(NOV)','12월(DEC)'], + monthNamesShort: ['1월(JAN)','2월(FEB)','3월(MAR)','4월(APR)','5월(MAY)','6월(JUN)', + '7월(JUL)','8월(AUG)','9월(SEP)','10월(OCT)','11월(NOV)','12월(DEC)'], + dayNames: ['일','월','화','수','목','금','토'], + dayNamesShort: ['일','월','화','수','목','금','토'], + dayNamesMin: ['일','월','화','수','목','금','토'], + weekHeader: 'Wk', + dateFormat: 'yy-mm-dd', + firstDay: 0, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: '년'}; + $.datepicker.setDefaults($.datepicker.regional['ko']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-kz.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-kz.js new file mode 100644 index 00000000000..658c21275d2 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-kz.js @@ -0,0 +1,23 @@ +/* Kazakh (UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* Written by Dmitriy Karasyov (dmitriy.karasyov@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['kz'] = { + closeText: 'Жабу', + prevText: '<Алдыңғы', + nextText: 'Келесі>', + currentText: 'Бүгін', + monthNames: ['Қаңтар','Ақпан','Наурыз','Сәуір','Мамыр','Маусым', + 'Шілде','Тамыз','Қыркүйек','Қазан','Қараша','Желтоқсан'], + monthNamesShort: ['Қаң','Ақп','Нау','Сәу','Мам','Мау', + 'Шіл','Там','Қыр','Қаз','Қар','Жел'], + dayNames: ['Жексенбі','Дүйсенбі','Сейсенбі','Сәрсенбі','Бейсенбі','Жұма','Сенбі'], + dayNamesShort: ['жкс','дсн','ссн','срс','бсн','жма','снб'], + dayNamesMin: ['Жк','Дс','Сс','Ср','Бс','Жм','Сн'], + weekHeader: 'Не', + dateFormat: 'dd.mm.yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['kz']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-lt.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-lt.js new file mode 100644 index 00000000000..2970f8f37c2 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-lt.js @@ -0,0 +1,23 @@ +/* Lithuanian (UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* @author Arturas Paleicikas */ +jQuery(function($){ + $.datepicker.regional['lt'] = { + closeText: 'Uždaryti', + prevText: '<Atgal', + nextText: 'Pirmyn>', + currentText: 'Šiandien', + monthNames: ['Sausis','Vasaris','Kovas','Balandis','Gegužė','Birželis', + 'Liepa','Rugpjūtis','Rugsėjis','Spalis','Lapkritis','Gruodis'], + monthNamesShort: ['Sau','Vas','Kov','Bal','Geg','Bir', + 'Lie','Rugp','Rugs','Spa','Lap','Gru'], + dayNames: ['sekmadienis','pirmadienis','antradienis','trečiadienis','ketvirtadienis','penktadienis','šeštadienis'], + dayNamesShort: ['sek','pir','ant','tre','ket','pen','šeš'], + dayNamesMin: ['Se','Pr','An','Tr','Ke','Pe','Še'], + weekHeader: 'Wk', + dateFormat: 'yy-mm-dd', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['lt']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-lv.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-lv.js new file mode 100644 index 00000000000..003934e7212 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-lv.js @@ -0,0 +1,23 @@ +/* Latvian (UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* @author Arturas Paleicikas */ +jQuery(function($){ + $.datepicker.regional['lv'] = { + closeText: 'Aizvērt', + prevText: 'Iepr', + nextText: 'Nāka', + currentText: 'Šodien', + monthNames: ['Janvāris','Februāris','Marts','Aprīlis','Maijs','Jūnijs', + 'Jūlijs','Augusts','Septembris','Oktobris','Novembris','Decembris'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Mai','Jūn', + 'Jūl','Aug','Sep','Okt','Nov','Dec'], + dayNames: ['svētdiena','pirmdiena','otrdiena','trešdiena','ceturtdiena','piektdiena','sestdiena'], + dayNamesShort: ['svt','prm','otr','tre','ctr','pkt','sst'], + dayNamesMin: ['Sv','Pr','Ot','Tr','Ct','Pk','Ss'], + weekHeader: 'Nav', + dateFormat: 'dd-mm-yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['lv']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ml.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ml.js new file mode 100644 index 00000000000..1e3432c0a8f --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ml.js @@ -0,0 +1,23 @@ +/* Malayalam (UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* Written by Saji Nediyanchath (saji89@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['ml'] = { + closeText: 'ശരി', + prevText: 'മുന്നത്തെ', + nextText: 'അടുത്തത് ', + currentText: 'ഇന്ന്', + monthNames: ['ജനുവരി','ഫെബ്രുവരി','മാര്‍ച്ച്','ഏപ്രില്‍','മേയ്','ജൂണ്‍', + 'ജൂലൈ','ആഗസ്റ്റ്','സെപ്റ്റംബര്‍','ഒക്ടോബര്‍','നവംബര്‍','ഡിസംബര്‍'], + monthNamesShort: ['ജനു', 'ഫെബ്', 'മാര്‍', 'ഏപ്രി', 'മേയ്', 'ജൂണ്‍', + 'ജൂലാ', 'ആഗ', 'സെപ്', 'ഒക്ടോ', 'നവം', 'ഡിസ'], + dayNames: ['ഞായര്‍', 'തിങ്കള്‍', 'ചൊവ്വ', 'ബുധന്‍', 'വ്യാഴം', 'വെള്ളി', 'ശനി'], + dayNamesShort: ['ഞായ', 'തിങ്ക', 'ചൊവ്വ', 'ബുധ', 'വ്യാഴം', 'വെള്ളി', 'ശനി'], + dayNamesMin: ['ഞാ','തി','ചൊ','ബു','വ്യാ','വെ','ശ'], + weekHeader: 'ആ', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['ml']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ms.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ms.js new file mode 100644 index 00000000000..c290af10a57 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ms.js @@ -0,0 +1,23 @@ +/* Malaysian initialisation for the jQuery UI date picker plugin. */ +/* Written by Mohd Nawawi Mohamad Jamili (nawawi@ronggeng.net). */ +jQuery(function($){ + $.datepicker.regional['ms'] = { + closeText: 'Tutup', + prevText: '<Sebelum', + nextText: 'Selepas>', + currentText: 'hari ini', + monthNames: ['Januari','Februari','Mac','April','Mei','Jun', + 'Julai','Ogos','September','Oktober','November','Disember'], + monthNamesShort: ['Jan','Feb','Mac','Apr','Mei','Jun', + 'Jul','Ogo','Sep','Okt','Nov','Dis'], + dayNames: ['Ahad','Isnin','Selasa','Rabu','Khamis','Jumaat','Sabtu'], + dayNamesShort: ['Aha','Isn','Sel','Rab','kha','Jum','Sab'], + dayNamesMin: ['Ah','Is','Se','Ra','Kh','Ju','Sa'], + weekHeader: 'Mg', + dateFormat: 'dd/mm/yy', + firstDay: 0, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['ms']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-nl.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-nl.js new file mode 100644 index 00000000000..781fe619176 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-nl.js @@ -0,0 +1,23 @@ +/* Dutch (UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* Written by Mathias Bynens */ +jQuery(function($){ + $.datepicker.regional.nl = { + closeText: 'Sluiten', + prevText: '←', + nextText: '→', + currentText: 'Vandaag', + monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', + 'juli', 'augustus', 'september', 'oktober', 'november', 'december'], + monthNamesShort: ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun', + 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'], + dayNames: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'], + dayNamesShort: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'], + dayNamesMin: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], + weekHeader: 'Wk', + dateFormat: 'dd-mm-yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional.nl); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-no.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-no.js new file mode 100644 index 00000000000..9590592f8e8 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-no.js @@ -0,0 +1,23 @@ +/* Norwegian initialisation for the jQuery UI date picker plugin. */ +/* Written by Naimdjon Takhirov (naimdjon@gmail.com). */ + +jQuery(function($){ + $.datepicker.regional['no'] = { + closeText: 'Lukk', + prevText: '«Forrige', + nextText: 'Neste»', + currentText: 'I dag', + monthNames: ['januar','februar','mars','april','mai','juni','juli','august','september','oktober','november','desember'], + monthNamesShort: ['jan','feb','mar','apr','mai','jun','jul','aug','sep','okt','nov','des'], + dayNamesShort: ['søn','man','tir','ons','tor','fre','lør'], + dayNames: ['søndag','mandag','tirsdag','onsdag','torsdag','fredag','lørdag'], + dayNamesMin: ['sø','ma','ti','on','to','fr','lø'], + weekHeader: 'Uke', + dateFormat: 'dd.mm.yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: '' + }; + $.datepicker.setDefaults($.datepicker.regional['no']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-pl.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-pl.js new file mode 100644 index 00000000000..0ffc515b95b --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-pl.js @@ -0,0 +1,23 @@ +/* Polish initialisation for the jQuery UI date picker plugin. */ +/* Written by Jacek Wysocki (jacek.wysocki@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['pl'] = { + closeText: 'Zamknij', + prevText: '<Poprzedni', + nextText: 'Następny>', + currentText: 'Dziś', + monthNames: ['Styczeń','Luty','Marzec','Kwiecień','Maj','Czerwiec', + 'Lipiec','Sierpień','Wrzesień','Październik','Listopad','Grudzień'], + monthNamesShort: ['Sty','Lu','Mar','Kw','Maj','Cze', + 'Lip','Sie','Wrz','Pa','Lis','Gru'], + dayNames: ['Niedziela','Poniedziałek','Wtorek','Środa','Czwartek','Piątek','Sobota'], + dayNamesShort: ['Nie','Pn','Wt','Śr','Czw','Pt','So'], + dayNamesMin: ['N','Pn','Wt','Śr','Cz','Pt','So'], + weekHeader: 'Tydz', + dateFormat: 'dd.mm.yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['pl']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-pt-BR.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-pt-BR.js new file mode 100644 index 00000000000..b2d61f62e76 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-pt-BR.js @@ -0,0 +1,23 @@ +/* Brazilian initialisation for the jQuery UI date picker plugin. */ +/* Written by Leonildo Costa Silva (leocsilva@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['pt-BR'] = { + closeText: 'Fechar', + prevText: '<Anterior', + nextText: 'Próximo>', + currentText: 'Hoje', + monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho', + 'Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'], + monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun', + 'Jul','Ago','Set','Out','Nov','Dez'], + dayNames: ['Domingo','Segunda-feira','Terça-feira','Quarta-feira','Quinta-feira','Sexta-feira','Sábado'], + dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'], + dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'], + weekHeader: 'Sm', + dateFormat: 'dd/mm/yy', + firstDay: 0, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['pt-BR']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-pt.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-pt.js new file mode 100644 index 00000000000..9ec5a6228cb --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-pt.js @@ -0,0 +1,22 @@ +/* Portuguese initialisation for the jQuery UI date picker plugin. */ +jQuery(function($){ + $.datepicker.regional['pt'] = { + closeText: 'Fechar', + prevText: '<Anterior', + nextText: 'Seguinte', + currentText: 'Hoje', + monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho', + 'Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'], + monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun', + 'Jul','Ago','Set','Out','Nov','Dez'], + dayNames: ['Domingo','Segunda-feira','Terça-feira','Quarta-feira','Quinta-feira','Sexta-feira','Sábado'], + dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'], + dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'], + weekHeader: 'Sem', + dateFormat: 'dd/mm/yy', + firstDay: 0, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['pt']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-rm.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-rm.js new file mode 100644 index 00000000000..22ed21685dd --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-rm.js @@ -0,0 +1,21 @@ +/* Romansh initialisation for the jQuery UI date picker plugin. */ +/* Written by Yvonne Gienal (yvonne.gienal@educa.ch). */ +jQuery(function($){ + $.datepicker.regional['rm'] = { + closeText: 'Serrar', + prevText: '<Suandant', + nextText: 'Precedent>', + currentText: 'Actual', + monthNames: ['Schaner','Favrer','Mars','Avrigl','Matg','Zercladur', 'Fanadur','Avust','Settember','October','November','December'], + monthNamesShort: ['Scha','Fev','Mar','Avr','Matg','Zer', 'Fan','Avu','Sett','Oct','Nov','Dec'], + dayNames: ['Dumengia','Glindesdi','Mardi','Mesemna','Gievgia','Venderdi','Sonda'], + dayNamesShort: ['Dum','Gli','Mar','Mes','Gie','Ven','Som'], + dayNamesMin: ['Du','Gl','Ma','Me','Gi','Ve','So'], + weekHeader: 'emna', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['rm']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ro.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ro.js new file mode 100644 index 00000000000..a988270d750 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ro.js @@ -0,0 +1,26 @@ +/* Romanian initialisation for the jQuery UI date picker plugin. + * + * Written by Edmond L. (ll_edmond@walla.com) + * and Ionut G. Stan (ionut.g.stan@gmail.com) + */ +jQuery(function($){ + $.datepicker.regional['ro'] = { + closeText: 'Închide', + prevText: '« Luna precedentă', + nextText: 'Luna următoare »', + currentText: 'Azi', + monthNames: ['Ianuarie','Februarie','Martie','Aprilie','Mai','Iunie', + 'Iulie','August','Septembrie','Octombrie','Noiembrie','Decembrie'], + monthNamesShort: ['Ian', 'Feb', 'Mar', 'Apr', 'Mai', 'Iun', + 'Iul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], + dayNames: ['Duminică', 'Luni', 'Marţi', 'Miercuri', 'Joi', 'Vineri', 'Sâmbătă'], + dayNamesShort: ['Dum', 'Lun', 'Mar', 'Mie', 'Joi', 'Vin', 'Sâm'], + dayNamesMin: ['Du','Lu','Ma','Mi','Jo','Vi','Sâ'], + weekHeader: 'Săpt', + dateFormat: 'dd.mm.yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['ro']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ru.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ru.js new file mode 100644 index 00000000000..2017e053787 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ru.js @@ -0,0 +1,23 @@ +/* Russian (UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* Written by Andrew Stromnov (stromnov@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['ru'] = { + closeText: 'Закрыть', + prevText: '<Пред', + nextText: 'След>', + currentText: 'Сегодня', + monthNames: ['Январь','Февраль','Март','Апрель','Май','Июнь', + 'Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'], + monthNamesShort: ['Янв','Фев','Мар','Апр','Май','Июн', + 'Июл','Авг','Сен','Окт','Ноя','Дек'], + dayNames: ['воскресенье','понедельник','вторник','среда','четверг','пятница','суббота'], + dayNamesShort: ['вск','пнд','втр','срд','чтв','птн','сбт'], + dayNamesMin: ['Вс','Пн','Вт','Ср','Чт','Пт','Сб'], + weekHeader: 'Нед', + dateFormat: 'dd.mm.yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['ru']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sk.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sk.js new file mode 100644 index 00000000000..83ae8e811f1 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sk.js @@ -0,0 +1,23 @@ +/* Slovak initialisation for the jQuery UI date picker plugin. */ +/* Written by Vojtech Rinik (vojto@hmm.sk). */ +jQuery(function($){ + $.datepicker.regional['sk'] = { + closeText: 'Zavrieť', + prevText: '<Predchádzajúci', + nextText: 'Nasledujúci>', + currentText: 'Dnes', + monthNames: ['Január','Február','Marec','Apríl','Máj','Jún', + 'Júl','August','September','Október','November','December'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Máj','Jún', + 'Júl','Aug','Sep','Okt','Nov','Dec'], + dayNames: ['Nedeľa','Pondelok','Utorok','Streda','Štvrtok','Piatok','Sobota'], + dayNamesShort: ['Ned','Pon','Uto','Str','Štv','Pia','Sob'], + dayNamesMin: ['Ne','Po','Ut','St','Št','Pia','So'], + weekHeader: 'Ty', + dateFormat: 'dd.mm.yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['sk']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sl.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sl.js new file mode 100644 index 00000000000..e3d7f6d74d1 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sl.js @@ -0,0 +1,24 @@ +/* Slovenian initialisation for the jQuery UI date picker plugin. */ +/* Written by Jaka Jancar (jaka@kubje.org). */ +/* c = č, s = š z = ž C = Č S = Š Z = Ž */ +jQuery(function($){ + $.datepicker.regional['sl'] = { + closeText: 'Zapri', + prevText: '<Prejšnji', + nextText: 'Naslednji>', + currentText: 'Trenutni', + monthNames: ['Januar','Februar','Marec','April','Maj','Junij', + 'Julij','Avgust','September','Oktober','November','December'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', + 'Jul','Avg','Sep','Okt','Nov','Dec'], + dayNames: ['Nedelja','Ponedeljek','Torek','Sreda','Četrtek','Petek','Sobota'], + dayNamesShort: ['Ned','Pon','Tor','Sre','Čet','Pet','Sob'], + dayNamesMin: ['Ne','Po','To','Sr','Če','Pe','So'], + weekHeader: 'Teden', + dateFormat: 'dd.mm.yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['sl']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sq.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sq.js new file mode 100644 index 00000000000..d6086a78960 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sq.js @@ -0,0 +1,23 @@ +/* Albanian initialisation for the jQuery UI date picker plugin. */ +/* Written by Flakron Bytyqi (flakron@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['sq'] = { + closeText: 'mbylle', + prevText: '<mbrapa', + nextText: 'Përpara>', + currentText: 'sot', + monthNames: ['Janar','Shkurt','Mars','Prill','Maj','Qershor', + 'Korrik','Gusht','Shtator','Tetor','Nëntor','Dhjetor'], + monthNamesShort: ['Jan','Shk','Mar','Pri','Maj','Qer', + 'Kor','Gus','Sht','Tet','Nën','Dhj'], + dayNames: ['E Diel','E Hënë','E Martë','E Mërkurë','E Enjte','E Premte','E Shtune'], + dayNamesShort: ['Di','Hë','Ma','Më','En','Pr','Sh'], + dayNamesMin: ['Di','Hë','Ma','Më','En','Pr','Sh'], + weekHeader: 'Ja', + dateFormat: 'dd.mm.yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['sq']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sr-SR.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sr-SR.js new file mode 100644 index 00000000000..6d5d042110e --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sr-SR.js @@ -0,0 +1,23 @@ +/* Serbian i18n for the jQuery UI date picker plugin. */ +/* Written by Dejan Dimić. */ +jQuery(function($){ + $.datepicker.regional['sr-SR'] = { + closeText: 'Zatvori', + prevText: '<', + nextText: '>', + currentText: 'Danas', + monthNames: ['Januar','Februar','Mart','April','Maj','Jun', + 'Jul','Avgust','Septembar','Oktobar','Novembar','Decembar'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', + 'Jul','Avg','Sep','Okt','Nov','Dec'], + dayNames: ['Nedelja','Ponedeljak','Utorak','Sreda','Četvrtak','Petak','Subota'], + dayNamesShort: ['Ned','Pon','Uto','Sre','Čet','Pet','Sub'], + dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'], + weekHeader: 'Sed', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['sr-SR']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sr.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sr.js new file mode 100644 index 00000000000..d4e1d9af09a --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sr.js @@ -0,0 +1,23 @@ +/* Serbian i18n for the jQuery UI date picker plugin. */ +/* Written by Dejan Dimić. */ +jQuery(function($){ + $.datepicker.regional['sr'] = { + closeText: 'Затвори', + prevText: '<', + nextText: '>', + currentText: 'Данас', + monthNames: ['Јануар','Фебруар','Март','Април','Мај','Јун', + 'Јул','Август','Септембар','Октобар','Новембар','Децембар'], + monthNamesShort: ['Јан','Феб','Мар','Апр','Мај','Јун', + 'Јул','Авг','Сеп','Окт','Нов','Дец'], + dayNames: ['Недеља','Понедељак','Уторак','Среда','Четвртак','Петак','Субота'], + dayNamesShort: ['Нед','Пон','Уто','Сре','Чет','Пет','Суб'], + dayNamesMin: ['Не','По','Ут','Ср','Че','Пе','Су'], + weekHeader: 'Сед', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['sr']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sv.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sv.js new file mode 100644 index 00000000000..173689b2a96 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sv.js @@ -0,0 +1,23 @@ +/* Swedish initialisation for the jQuery UI date picker plugin. */ +/* Written by Anders Ekdahl ( anders@nomadiz.se). */ +jQuery(function($){ + $.datepicker.regional['sv'] = { + closeText: 'Stäng', + prevText: '«Förra', + nextText: 'Nästa»', + currentText: 'Idag', + monthNames: ['Januari','Februari','Mars','April','Maj','Juni', + 'Juli','Augusti','September','Oktober','November','December'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', + 'Jul','Aug','Sep','Okt','Nov','Dec'], + dayNamesShort: ['Sön','Mån','Tis','Ons','Tor','Fre','Lör'], + dayNames: ['Söndag','Måndag','Tisdag','Onsdag','Torsdag','Fredag','Lördag'], + dayNamesMin: ['Sö','Må','Ti','On','To','Fr','Lö'], + weekHeader: 'Ve', + dateFormat: 'yy-mm-dd', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['sv']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ta.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ta.js new file mode 100644 index 00000000000..40431ed8ec7 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ta.js @@ -0,0 +1,23 @@ +/* Tamil (UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* Written by S A Sureshkumar (saskumar@live.com). */ +jQuery(function($){ + $.datepicker.regional['ta'] = { + closeText: 'மூடு', + prevText: 'முன்னையது', + nextText: 'அடுத்தது', + currentText: 'இன்று', + monthNames: ['தை','மாசி','பங்குனி','சித்திரை','வைகாசி','ஆனி', + 'ஆடி','ஆவணி','புரட்டாசி','ஐப்பசி','கார்த்திகை','மார்கழி'], + monthNamesShort: ['தை','மாசி','பங்','சித்','வைகா','ஆனி', + 'ஆடி','ஆவ','புர','ஐப்','கார்','மார்'], + dayNames: ['ஞாயிற்றுக்கிழமை','திங்கட்கிழமை','செவ்வாய்க்கிழமை','புதன்கிழமை','வியாழக்கிழமை','வெள்ளிக்கிழமை','சனிக்கிழமை'], + dayNamesShort: ['ஞாயிறு','திங்கள்','செவ்வாய்','புதன்','வியாழன்','வெள்ளி','சனி'], + dayNamesMin: ['ஞா','தி','செ','பு','வி','வெ','ச'], + weekHeader: 'Не', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['ta']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-th.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-th.js new file mode 100644 index 00000000000..d57541f640f --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-th.js @@ -0,0 +1,23 @@ +/* Thai initialisation for the jQuery UI date picker plugin. */ +/* Written by pipo (pipo@sixhead.com). */ +jQuery(function($){ + $.datepicker.regional['th'] = { + closeText: 'ปิด', + prevText: '« ย้อน', + nextText: 'ถัดไป »', + currentText: 'วันนี้', + monthNames: ['มกราคม','กุมภาพันธ์','มีนาคม','เมษายน','พฤษภาคม','มิถุนายน', + 'กรกฎาคม','สิงหาคม','กันยายน','ตุลาคม','พฤศจิกายน','ธันวาคม'], + monthNamesShort: ['ม.ค.','ก.พ.','มี.ค.','เม.ย.','พ.ค.','มิ.ย.', + 'ก.ค.','ส.ค.','ก.ย.','ต.ค.','พ.ย.','ธ.ค.'], + dayNames: ['อาทิตย์','จันทร์','อังคาร','พุธ','พฤหัสบดี','ศุกร์','เสาร์'], + dayNamesShort: ['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'], + dayNamesMin: ['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'], + weekHeader: 'Wk', + dateFormat: 'dd/mm/yy', + firstDay: 0, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['th']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-tj.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-tj.js new file mode 100644 index 00000000000..ed662392c53 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-tj.js @@ -0,0 +1,23 @@ +/* Tajiki (UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* Written by Abdurahmon Saidov (saidovab@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['tj'] = { + closeText: 'Идома', + prevText: '<Қафо', + nextText: 'Пеш>', + currentText: 'Имрӯз', + monthNames: ['Январ','Феврал','Март','Апрел','Май','Июн', + 'Июл','Август','Сентябр','Октябр','Ноябр','Декабр'], + monthNamesShort: ['Янв','Фев','Мар','Апр','Май','Июн', + 'Июл','Авг','Сен','Окт','Ноя','Дек'], + dayNames: ['якшанбе','душанбе','сешанбе','чоршанбе','панҷшанбе','ҷумъа','шанбе'], + dayNamesShort: ['якш','душ','сеш','чор','пан','ҷум','шан'], + dayNamesMin: ['Як','Дш','Сш','Чш','Пш','Ҷм','Шн'], + weekHeader: 'Хф', + dateFormat: 'dd.mm.yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['tj']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-tr.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-tr.js new file mode 100644 index 00000000000..1b5cafc3954 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-tr.js @@ -0,0 +1,23 @@ +/* Turkish initialisation for the jQuery UI date picker plugin. */ +/* Written by Izzet Emre Erkan (kara@karalamalar.net). */ +jQuery(function($){ + $.datepicker.regional['tr'] = { + closeText: 'kapat', + prevText: '<geri', + nextText: 'ileri>', + currentText: 'bugün', + monthNames: ['Ocak','Şubat','Mart','Nisan','Mayıs','Haziran', + 'Temmuz','Ağustos','Eylül','Ekim','Kasım','Aralık'], + monthNamesShort: ['Oca','Şub','Mar','Nis','May','Haz', + 'Tem','Ağu','Eyl','Eki','Kas','Ara'], + dayNames: ['Pazar','Pazartesi','Salı','Çarşamba','Perşembe','Cuma','Cumartesi'], + dayNamesShort: ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'], + dayNamesMin: ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'], + weekHeader: 'Hf', + dateFormat: 'dd.mm.yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['tr']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-uk.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-uk.js new file mode 100644 index 00000000000..07ce206b9ec --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-uk.js @@ -0,0 +1,23 @@ +/* Ukrainian (UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* Written by Maxim Drogobitskiy (maxdao@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['uk'] = { + closeText: 'Закрити', + prevText: '<', + nextText: '>', + currentText: 'Сьогодні', + monthNames: ['Січень','Лютий','Березень','Квітень','Травень','Червень', + 'Липень','Серпень','Вересень','Жовтень','Листопад','Грудень'], + monthNamesShort: ['Січ','Лют','Бер','Кві','Тра','Чер', + 'Лип','Сер','Вер','Жов','Лис','Гру'], + dayNames: ['неділя','понеділок','вівторок','середа','четвер','п’ятниця','субота'], + dayNamesShort: ['нед','пнд','вів','срд','чтв','птн','сбт'], + dayNamesMin: ['Нд','Пн','Вт','Ср','Чт','Пт','Сб'], + weekHeader: 'Не', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['uk']); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-vi.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-vi.js new file mode 100644 index 00000000000..b49e7eb130e --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-vi.js @@ -0,0 +1,23 @@ +/* Vietnamese initialisation for the jQuery UI date picker plugin. */ +/* Translated by Le Thanh Huy (lthanhhuy@cit.ctu.edu.vn). */ +jQuery(function($){ + $.datepicker.regional['vi'] = { + closeText: 'Đóng', + prevText: '<Trước', + nextText: 'Tiếp>', + currentText: 'Hôm nay', + monthNames: ['Tháng Một', 'Tháng Hai', 'Tháng Ba', 'Tháng Tư', 'Tháng Năm', 'Tháng Sáu', + 'Tháng Bảy', 'Tháng Tám', 'Tháng Chín', 'Tháng Mười', 'Tháng Mười Một', 'Tháng Mười Hai'], + monthNamesShort: ['Tháng 1', 'Tháng 2', 'Tháng 3', 'Tháng 4', 'Tháng 5', 'Tháng 6', + 'Tháng 7', 'Tháng 8', 'Tháng 9', 'Tháng 10', 'Tháng 11', 'Tháng 12'], + dayNames: ['Chủ Nhật', 'Thứ Hai', 'Thứ Ba', 'Thứ Tư', 'Thứ Năm', 'Thứ Sáu', 'Thứ Bảy'], + dayNamesShort: ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'], + dayNamesMin: ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'], + weekHeader: 'Tu', + dateFormat: 'dd/mm/yy', + firstDay: 0, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['vi']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-zh-CN.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-zh-CN.js new file mode 100644 index 00000000000..fed386f5458 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-zh-CN.js @@ -0,0 +1,23 @@ +/* Chinese initialisation for the jQuery UI date picker plugin. */ +/* Written by Cloudream (cloudream@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['zh-CN'] = { + closeText: '关闭', + prevText: '<上月', + nextText: '下月>', + currentText: '今天', + monthNames: ['一月','二月','三月','四月','五月','六月', + '七月','八月','九月','十月','十一月','十二月'], + monthNamesShort: ['一','二','三','四','五','六', + '七','八','九','十','十一','十二'], + dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], + dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], + dayNamesMin: ['日','一','二','三','四','五','六'], + weekHeader: '周', + dateFormat: 'yy-mm-dd', + firstDay: 1, + isRTL: false, + showMonthAfterYear: true, + yearSuffix: '年'}; + $.datepicker.setDefaults($.datepicker.regional['zh-CN']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-zh-HK.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-zh-HK.js new file mode 100644 index 00000000000..3c26d0ec224 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-zh-HK.js @@ -0,0 +1,23 @@ +/* Chinese initialisation for the jQuery UI date picker plugin. */ +/* Written by SCCY (samuelcychan@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['zh-HK'] = { + closeText: '關閉', + prevText: '<上月', + nextText: '下月>', + currentText: '今天', + monthNames: ['一月','二月','三月','四月','五月','六月', + '七月','八月','九月','十月','十一月','十二月'], + monthNamesShort: ['一','二','三','四','五','六', + '七','八','九','十','十一','十二'], + dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], + dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], + dayNamesMin: ['日','一','二','三','四','五','六'], + weekHeader: '周', + dateFormat: 'dd-mm-yy', + firstDay: 0, + isRTL: false, + showMonthAfterYear: true, + yearSuffix: '年'}; + $.datepicker.setDefaults($.datepicker.regional['zh-HK']); +}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-zh-TW.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-zh-TW.js new file mode 100644 index 00000000000..19702a65c92 --- /dev/null +++ b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-zh-TW.js @@ -0,0 +1,23 @@ +/* Chinese initialisation for the jQuery UI date picker plugin. */ +/* Written by Ressol (ressol@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['zh-TW'] = { + closeText: '關閉', + prevText: '<上月', + nextText: '下月>', + currentText: '今天', + monthNames: ['一月','二月','三月','四月','五月','六月', + '七月','八月','九月','十月','十一月','十二月'], + monthNamesShort: ['一','二','三','四','五','六', + '七','八','九','十','十一','十二'], + dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], + dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], + dayNamesMin: ['日','一','二','三','四','五','六'], + weekHeader: '周', + dateFormat: 'yy/mm/dd', + firstDay: 1, + isRTL: false, + showMonthAfterYear: true, + yearSuffix: '年'}; + $.datepicker.setDefaults($.datepicker.regional['zh-TW']); +}); diff --git a/htdocs/langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js b/htdocs/langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js index 24d0248832e..de5b7a46e14 100644 --- a/htdocs/langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js +++ b/htdocs/langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js @@ -17,7 +17,7 @@ jQuery(function($){ dayNamesMin: ['D','L','M','M','J','V','S'], weekHeader: 'Sem.', altField: '#timeStamp', - altFormat: '@', // Gives a timestamp dateformat + altFormat: '@', // Gives a timestamp dateformat dateFormat: 'dd/mm/yy', firstDay: 1, isRTL: false, From a20d0e769901055d8d7afcf95b486c33744afae9 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 28 Oct 2011 22:06:57 +0200 Subject: [PATCH 11/35] Fix: add datepicker default options and just rename datepicker language options --- htdocs/core/js/datepicker.js | 14 +++++++++++ htdocs/includes/jquery/i18n/README | 7 ------ .../jquery/i18n/jquery.ui.datepicker-fr.js | 25 ------------------- .../fr_CH/js/jquery.ui.datepicker-fr_CH.js} | 0 .../fr_FR/js/jquery.ui.datepicker-fr_FR.js | 2 -- htdocs/main.inc.php | 2 ++ 6 files changed, 16 insertions(+), 34 deletions(-) create mode 100644 htdocs/core/js/datepicker.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-fr.js rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-fr-CH.js => langs/fr_CH/js/jquery.ui.datepicker-fr_CH.js} (100%) diff --git a/htdocs/core/js/datepicker.js b/htdocs/core/js/datepicker.js new file mode 100644 index 00000000000..4af0dbd5ad4 --- /dev/null +++ b/htdocs/core/js/datepicker.js @@ -0,0 +1,14 @@ +// Copyright (C) 2011 Regis Houssin +// +// Script javascript that contains functions for datepicker default options +// +// \file htdocs/core/js/jnotify.js +// \brief File that include javascript functions for datepicker default options + + +$(document).ready(function() { + $.datepicker.setDefaults({ + altField: '#timeStamp', + altFormat: '@' // Gives a timestamp dateformat + }); +}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/README b/htdocs/includes/jquery/i18n/README index a7a4a49e585..85d09fc88c0 100644 --- a/htdocs/includes/jquery/i18n/README +++ b/htdocs/includes/jquery/i18n/README @@ -8,10 +8,3 @@ eg: /langs/fr_FR/js/jquery.ui.datepicker-fr.js and rename the file with country code eg: /langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js - -edit the file and add 2 options : - -altField: '#timeStamp', -altFormat: '@', // Gives a timestamp dateformat - -for example, see /langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fr.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fr.js deleted file mode 100644 index 7e793639f5f..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fr.js +++ /dev/null @@ -1,25 +0,0 @@ -/* French initialisation for the jQuery UI date picker plugin. */ -/* Written by Keith Wood (kbwood{at}iinet.com.au), - Stéphane Nahmani (sholby@sholby.net), - Stéphane Raimbault */ -jQuery(function($){ - $.datepicker.regional['fr'] = { - closeText: 'Fermer', - prevText: 'Précédent', - nextText: 'Suivant', - currentText: 'Aujourd\'hui', - monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin', - 'Juillet','Août','Septembre','Octobre','Novembre','Décembre'], - monthNamesShort: ['Janv.','Févr.','Mars','Avril','Mai','Juin', - 'Juil.','Août','Sept.','Oct.','Nov.','Déc.'], - dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'], - dayNamesShort: ['Dim.','Lun.','Mar.','Mer.','Jeu.','Ven.','Sam.'], - dayNamesMin: ['D','L','M','M','J','V','S'], - weekHeader: 'Sem.', - dateFormat: 'dd/mm/yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['fr']); -}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fr-CH.js b/htdocs/langs/fr_CH/js/jquery.ui.datepicker-fr_CH.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-fr-CH.js rename to htdocs/langs/fr_CH/js/jquery.ui.datepicker-fr_CH.js diff --git a/htdocs/langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js b/htdocs/langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js index de5b7a46e14..7e793639f5f 100644 --- a/htdocs/langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js +++ b/htdocs/langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js @@ -16,8 +16,6 @@ jQuery(function($){ dayNamesShort: ['Dim.','Lun.','Mar.','Mer.','Jeu.','Ven.','Sam.'], dayNamesMin: ['D','L','M','M','J','V','S'], weekHeader: 'Sem.', - altField: '#timeStamp', - altFormat: '@', // Gives a timestamp dateformat dateFormat: 'dd/mm/yy', firstDay: 1, isRTL: false, diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index e50ed0a5cba..39f18d9a451 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1015,6 +1015,8 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs print 'var tradMonths = '.json_encode($tradMonths).';'."\n"; print ''."\n"; + // Add datepicker default options + print ''."\n"; // Add datepicker i18n for current language print ''."\n"; From 9d9c3a6af852a893547205c0cffc3cfc61fcc97a Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 28 Oct 2011 23:03:17 +0200 Subject: [PATCH 12/35] Move datepicker i18n --- htdocs/includes/jquery/i18n/README | 6 +++--- .../ca_ES/js/jquery.ui.datepicker.js} | 0 .../da_DK/js/jquery.ui.datepicker.js} | 0 .../de_DE/js/jquery.ui.datepicker.js} | 0 .../el_GR/js/jquery.ui.datepicker.js} | 0 .../en_AU/js/jquery.ui.datepicker.js} | 0 .../en_GB/js/jquery.ui.datepicker.js} | 0 .../en_NZ/js/jquery.ui.datepicker.js} | 0 .../es_ES/js/jquery.ui.datepicker.js} | 0 .../fa_IR/js/jquery.ui.datepicker.js} | 0 .../fi_FI/js/jquery.ui.datepicker.js} | 0 ...query.ui.datepicker-fr_CH.js => jquery.ui.datepicker.js} | 0 ...query.ui.datepicker-fr_FR.js => jquery.ui.datepicker.js} | 0 .../hu_HU/js/jquery.ui.datepicker.js} | 0 .../is_IS/js/jquery.ui.datepicker.js} | 0 .../it_IT/js/jquery.ui.datepicker.js} | 0 .../ja_JP/js/jquery.ui.datepicker.js} | 0 .../nb_NO/js/jquery.ui.datepicker.js} | 0 .../nl_NL/js/jquery.ui.datepicker.js} | 0 .../pl_PL/js/jquery.ui.datepicker.js} | 0 .../pt_BR/js/jquery.ui.datepicker.js} | 0 .../pt_PT/js/jquery.ui.datepicker.js} | 0 .../ro_RO/js/jquery.ui.datepicker.js} | 0 .../ru_RU/js/jquery.ui.datepicker.js} | 0 .../sl_SI/js/jquery.ui.datepicker.js} | 0 .../sv_SE/js/jquery.ui.datepicker.js} | 0 .../tr_TR/js/jquery.ui.datepicker.js} | 0 .../zh_CN/js/jquery.ui.datepicker.js} | 0 htdocs/main.inc.php | 2 +- 29 files changed, 4 insertions(+), 4 deletions(-) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-ca.js => langs/ca_ES/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-da.js => langs/da_DK/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-de.js => langs/de_DE/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-el.js => langs/el_GR/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-en-AU.js => langs/en_AU/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-en-GB.js => langs/en_GB/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-en-NZ.js => langs/en_NZ/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-es.js => langs/es_ES/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-fa.js => langs/fa_IR/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-fi.js => langs/fi_FI/js/jquery.ui.datepicker.js} (100%) rename htdocs/langs/fr_CH/js/{jquery.ui.datepicker-fr_CH.js => jquery.ui.datepicker.js} (100%) rename htdocs/langs/fr_FR/js/{jquery.ui.datepicker-fr_FR.js => jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-hu.js => langs/hu_HU/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-is.js => langs/is_IS/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-it.js => langs/it_IT/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-ja.js => langs/ja_JP/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-no.js => langs/nb_NO/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-nl.js => langs/nl_NL/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-pl.js => langs/pl_PL/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-pt-BR.js => langs/pt_BR/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-pt.js => langs/pt_PT/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-ro.js => langs/ro_RO/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-ru.js => langs/ru_RU/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-sl.js => langs/sl_SI/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-sv.js => langs/sv_SE/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-tr.js => langs/tr_TR/js/jquery.ui.datepicker.js} (100%) rename htdocs/{includes/jquery/i18n/jquery.ui.datepicker-zh-CN.js => langs/zh_CN/js/jquery.ui.datepicker.js} (100%) diff --git a/htdocs/includes/jquery/i18n/README b/htdocs/includes/jquery/i18n/README index 85d09fc88c0..44fe75ed28e 100644 --- a/htdocs/includes/jquery/i18n/README +++ b/htdocs/includes/jquery/i18n/README @@ -3,8 +3,8 @@ http://github.com/jquery/jquery-ui add "js" directory in language directory eg: /langs/fr_FR/js/ -add datepicker language file +move datepicker language file eg: /langs/fr_FR/js/jquery.ui.datepicker-fr.js -and rename the file with country code -eg: /langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js +and rename the file +eg: /langs/fr_FR/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ca.js b/htdocs/langs/ca_ES/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-ca.js rename to htdocs/langs/ca_ES/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-da.js b/htdocs/langs/da_DK/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-da.js rename to htdocs/langs/da_DK/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-de.js b/htdocs/langs/de_DE/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-de.js rename to htdocs/langs/de_DE/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-el.js b/htdocs/langs/el_GR/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-el.js rename to htdocs/langs/el_GR/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-en-AU.js b/htdocs/langs/en_AU/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-en-AU.js rename to htdocs/langs/en_AU/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-en-GB.js b/htdocs/langs/en_GB/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-en-GB.js rename to htdocs/langs/en_GB/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-en-NZ.js b/htdocs/langs/en_NZ/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-en-NZ.js rename to htdocs/langs/en_NZ/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-es.js b/htdocs/langs/es_ES/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-es.js rename to htdocs/langs/es_ES/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fa.js b/htdocs/langs/fa_IR/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-fa.js rename to htdocs/langs/fa_IR/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fi.js b/htdocs/langs/fi_FI/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-fi.js rename to htdocs/langs/fi_FI/js/jquery.ui.datepicker.js diff --git a/htdocs/langs/fr_CH/js/jquery.ui.datepicker-fr_CH.js b/htdocs/langs/fr_CH/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/langs/fr_CH/js/jquery.ui.datepicker-fr_CH.js rename to htdocs/langs/fr_CH/js/jquery.ui.datepicker.js diff --git a/htdocs/langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js b/htdocs/langs/fr_FR/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/langs/fr_FR/js/jquery.ui.datepicker-fr_FR.js rename to htdocs/langs/fr_FR/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-hu.js b/htdocs/langs/hu_HU/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-hu.js rename to htdocs/langs/hu_HU/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-is.js b/htdocs/langs/is_IS/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-is.js rename to htdocs/langs/is_IS/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-it.js b/htdocs/langs/it_IT/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-it.js rename to htdocs/langs/it_IT/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ja.js b/htdocs/langs/ja_JP/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-ja.js rename to htdocs/langs/ja_JP/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-no.js b/htdocs/langs/nb_NO/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-no.js rename to htdocs/langs/nb_NO/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-nl.js b/htdocs/langs/nl_NL/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-nl.js rename to htdocs/langs/nl_NL/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-pl.js b/htdocs/langs/pl_PL/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-pl.js rename to htdocs/langs/pl_PL/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-pt-BR.js b/htdocs/langs/pt_BR/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-pt-BR.js rename to htdocs/langs/pt_BR/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-pt.js b/htdocs/langs/pt_PT/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-pt.js rename to htdocs/langs/pt_PT/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ro.js b/htdocs/langs/ro_RO/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-ro.js rename to htdocs/langs/ro_RO/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ru.js b/htdocs/langs/ru_RU/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-ru.js rename to htdocs/langs/ru_RU/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sl.js b/htdocs/langs/sl_SI/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-sl.js rename to htdocs/langs/sl_SI/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sv.js b/htdocs/langs/sv_SE/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-sv.js rename to htdocs/langs/sv_SE/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-tr.js b/htdocs/langs/tr_TR/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-tr.js rename to htdocs/langs/tr_TR/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-zh-CN.js b/htdocs/langs/zh_CN/js/jquery.ui.datepicker.js similarity index 100% rename from htdocs/includes/jquery/i18n/jquery.ui.datepicker-zh-CN.js rename to htdocs/langs/zh_CN/js/jquery.ui.datepicker.js diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 39f18d9a451..e316daa44a7 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1018,7 +1018,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs // Add datepicker default options print ''."\n"; // Add datepicker i18n for current language - print ''."\n"; + print ''."\n"; if (! empty($head)) print $head."\n"; if (! empty($conf->global->MAIN_HTML_HEADER)) print $conf->global->MAIN_HTML_HEADER."\n"; From c485acdb37d25b962d730c3ce6bf432979cb5d4e Mon Sep 17 00:00:00 2001 From: Juanjo Menent Date: Sat, 29 Oct 2011 07:54:59 +0200 Subject: [PATCH 13/35] Trad: Fix missing translation --- htdocs/langs/ca_ES/bills.lang | 9 ++++++--- htdocs/langs/es_ES/bills.lang | 11 +++++++---- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/htdocs/langs/ca_ES/bills.lang b/htdocs/langs/ca_ES/bills.lang index 20cdeaff9cd..caafb2956e1 100644 --- a/htdocs/langs/ca_ES/bills.lang +++ b/htdocs/langs/ca_ES/bills.lang @@ -234,7 +234,10 @@ GlobalDiscount=Descompte fixe CreditNote=Abonament CreditNotes=Abonaments AddDiscount=Crear descompte fix +AddRelativeDiscount=Crear descompte relatiu +EditRelativeDiscount=Editar descompte relatiu AddGlobalDiscount=Crear descompte fixe +EditGlobalDiscounts=Editar descompte fixe AddCreditNote=Crear factura de pagament Deposit=Bestreta Deposits=Bestretes @@ -277,7 +280,7 @@ TotalOfTwoDiscountMustEqualsOriginal=La suma de l'import dels 2 nous descomptes ConfirmRemoveDiscount=Esteu segur de voler eliminar aquest descompte? RelatedBill=Factura associada RelatedBills=Factures associades -# PaymentConditions== +# PaymentConditions PaymentConditionShortRECEP=A la recepció PaymentConditionRECEP=A la recepció de la factura PaymentConditionShort30D=30 dies @@ -288,7 +291,7 @@ PaymentConditionShort60D=60 dies PaymentCondition60D=Pagament als 60 dies PaymentConditionShort60DENDMONTH=60 dies a fi de mes PaymentCondition60DENDMONTH=Pagament als 60 dies a fi de mes -# PaymentType== +# PaymentType PaymentTypeVIR=Transferència bancària PaymentTypeShortVIR=Transferència PaymentTypePRE=Domiciliació bancària @@ -379,4 +382,4 @@ PDFCrabeDescription=Model de factura complet (model recomanat per defecte) # oursin PDF Model PDFOursinDescription=Model de factura complet (model alternatiu) # NumRef Modules -TerreNumRefModelDesc1=Retorna el nombre sota el format %syymm-nnnn per a les factures i %syymm-nnnn per als abonaments on yy és l'any, mm. el mes i nnnn un comptador seqüencial sense ruptura i sense permanència a 0 \ No newline at end of file +TerreNumRefModelDesc1=Retorna el nombre sota el format %syymm-nnnn per a les factures i %syymm-nnnn per als abonaments on yy és l'any, mm. el mes i nnnn un comptador seqüencial sense ruptura i sense permanència a 0 diff --git a/htdocs/langs/es_ES/bills.lang b/htdocs/langs/es_ES/bills.lang index fe11cf0fac8..7bcc3cb432c 100644 --- a/htdocs/langs/es_ES/bills.lang +++ b/htdocs/langs/es_ES/bills.lang @@ -1,4 +1,4 @@ -# Dolibarr language file - es_ES - bills +# Dolibarr language file - es_ES - bills CHARSET=UTF-8 Bill=Factura Bills=Facturas @@ -234,7 +234,10 @@ GlobalDiscount=Descuento fijo CreditNote=Abono CreditNotes=Abonos AddDiscount=Crear descuento fijo +AddRelativeDiscount=Crear descuento relativo +EditRelativeDiscount=Editar descuento relativo AddGlobalDiscount=Crear descuento fijo +EditGlobalDiscounts=Editar descuento fijo AddCreditNote=Crear factura de abono Deposit=Anticipo Deposits=Anticipos @@ -277,7 +280,7 @@ TotalOfTwoDiscountMustEqualsOriginal=La suma del importe de los 2 nuevos descuen ConfirmRemoveDiscount=¿Está seguro de querer eliminar este descuento? RelatedBill=Factura asociada RelatedBills=Facturas asociadas -# PaymentConditions= +# PaymentConditions PaymentConditionShortRECEP=A la recepción PaymentConditionRECEP=A la recepción de la factura PaymentConditionShort30D=30 días @@ -288,7 +291,7 @@ PaymentConditionShort60D=60 días PaymentCondition60D=Pago a los 60 días PaymentConditionShort60DENDMONTH=60 días a fin de mes PaymentCondition60DENDMONTH=Pago a los 60 días a fin de mes -# PaymentType= +# PaymentType PaymentTypeVIR=Transferencia bancaria PaymentTypeShortVIR=Transferencia PaymentTypePRE=Domiciliación bancaria @@ -379,4 +382,4 @@ PDFCrabeDescription=Modelo de factura completo (modelo recomendado por defecto) # oursin PDF Model PDFOursinDescription=Modelo de factura completo (modelo alternativo) # NumRef Modules -TerreNumRefModelDesc1=Devuelve el número bajo el formato %syymm-nnnn para las facturas y %syymm-nnnn para los abonos donde yy es el año, mm. el mes y nnnn un contador secuencial sin ruptura y sin permanencia a 0 \ No newline at end of file +TerreNumRefModelDesc1=Devuelve el número bajo el formato %syymm-nnnn para las facturas y %syymm-nnnn para los abonos donde yy es el año, mm. el mes y nnnn un contador secuencial sin ruptura y sin permanencia a 0 From 5d23da1be1c4288c0270c6251cb285502c1ed8ca Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 29 Oct 2011 08:33:59 +0200 Subject: [PATCH 14/35] Fix: uniform code --- .../compta/localtax/class/localtax.class.php | 87 ++++++++++--------- 1 file changed, 45 insertions(+), 42 deletions(-) diff --git a/htdocs/compta/localtax/class/localtax.class.php b/htdocs/compta/localtax/class/localtax.class.php index 9bb1f1c559a..b6ac1e02af9 100644 --- a/htdocs/compta/localtax/class/localtax.class.php +++ b/htdocs/compta/localtax/class/localtax.class.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2011 Juanjo Menent * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -25,9 +25,9 @@ require_once(DOL_DOCUMENT_ROOT ."/core/class/commonobject.class.php"); /** - \class Localtax - \brief Put here description of your class -*/ + * \class Localtax + * \brief Put here description of your class + */ class localtax extends CommonObject { var $id; @@ -47,10 +47,9 @@ class localtax extends CommonObject * * @param DoliDB $DB Database handler */ - function localtax($DB) + function __construct($DB) { $this->db = $DB; - return 1; } @@ -65,7 +64,6 @@ class localtax extends CommonObject global $conf, $langs; // Clean parameters - $this->amount=trim($this->amount); $this->label=trim($this->label); $this->note=trim($this->note); @@ -96,7 +94,7 @@ class localtax extends CommonObject $sql.= " '".$this->fk_user_modif."'"; $sql.= ")"; - dol_syslog("localtax::create sql=".$sql, LOG_DEBUG); + dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG); $resql=$this->db->query($sql); if ($resql) { @@ -105,7 +103,7 @@ class localtax extends CommonObject // Appel des triggers include_once(DOL_DOCUMENT_ROOT . "/core/class/interfaces.class.php"); $interface=new Interfaces($this->db); - $result=$interface->run_triggers('MYOBJECT_CREATE',$this,$user,$langs,$conf); + $result=$interface->run_triggers('LOCALTAX_CREATE',$this,$user,$langs,$conf); if ($result < 0) { $error++; $this->errors=$interface->errors; } // Fin appel triggers @@ -114,16 +112,17 @@ class localtax extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog("localtax::create ".$this->error, LOG_ERR); + dol_syslog(get_class($this)."::create ".$this->error, LOG_ERR); return -1; } } /** * Update database - * @param user User that modify - * @param notrigger 0=no, 1=yes (no update trigger) - * @return int <0 if KO, >0 if OK + * + * @param User $user User that modify + * @param int $notrigger 0=no, 1=yes (no update trigger) + * @return int <0 if KO, >0 if OK */ function update($user=0, $notrigger=0) { @@ -150,12 +149,12 @@ class localtax extends CommonObject $sql.= " fk_user_modif='".$this->fk_user_modif."'"; $sql.= " WHERE rowid=".$this->id; - dol_syslog("localtax::update sql=".$sql, LOG_DEBUG); + dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG); $resql = $this->db->query($sql); if (! $resql) { $this->error="Error ".$this->db->lasterror(); - dol_syslog("localtax::update ".$this->error, LOG_ERR); + dol_syslog(get_class($this)."::update ".$this->error, LOG_ERR); return -1; } @@ -164,7 +163,7 @@ class localtax extends CommonObject // Appel des triggers include_once(DOL_DOCUMENT_ROOT . "/core/class/interfaces.class.php"); $interface=new Interfaces($this->db); - $result=$interface->run_triggers('MYOBJECT_MODIFY',$this,$user,$langs,$conf); + $result=$interface->run_triggers('LOCALTAX_MODIFY',$this,$user,$langs,$conf); if ($result < 0) { $error++; $this->errors=$interface->errors; } // Fin appel triggers } @@ -175,11 +174,11 @@ class localtax extends CommonObject /** * Load object in memory from database - * @param id id object - * @param user User that load - * @return int <0 if KO, >0 if OK + * + * @param int $id Object id + * @return int <0 if KO, >0 if OK */ - function fetch($id, $user=0) + function fetch($id) { global $langs; $sql = "SELECT"; @@ -200,7 +199,7 @@ class localtax extends CommonObject $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."bank as b ON t.fk_bank = b.rowid"; $sql.= " WHERE t.rowid = ".$id; - dol_syslog("localtax::fetch sql=".$sql, LOG_DEBUG); + dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG); $resql=$this->db->query($sql); if ($resql) { @@ -230,17 +229,18 @@ class localtax extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog("localtax::fetch ".$this->error, LOG_ERR); + dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } /** - * Delete object in database - * @param user User that delete - * @return int <0 if KO, >0 if OK - */ + * Delete object in database + * + * @param User $user User that delete + * @return int <0 if KO, >0 if OK + */ function delete($user) { global $conf, $langs; @@ -248,19 +248,19 @@ class localtax extends CommonObject $sql = "DELETE FROM ".MAIN_DB_PREFIX."localtax"; $sql.= " WHERE rowid=".$this->id; - dol_syslog("localtax::delete sql=".$sql); + dol_syslog(get_class($this)."::delete sql=".$sql, LOG_DEBUG); $resql = $this->db->query($sql); if (! $resql) { $this->error="Error ".$this->db->lasterror(); - dol_syslog("localtax::delete ".$this->error, LOG_ERR); + dol_syslog(get_class($this)."::delete ".$this->error, LOG_ERR); return -1; } // Appel des triggers include_once(DOL_DOCUMENT_ROOT . "/core/class/interfaces.class.php"); $interface=new Interfaces($this->db); - $result=$interface->run_triggers('MYOBJECT_DELETE',$this,$user,$langs,$conf); + $result=$interface->run_triggers('LOCALTAX_DELETE',$this,$user,$langs,$conf); if ($result < 0) { $error++; $this->errors=$interface->errors; } // Fin appel triggers @@ -432,8 +432,9 @@ class localtax extends CommonObject /** * Add a payment of localtax - * @param user Object user that insert - * @return int <0 if KO, rowid in localtax table if OK + * + * @param User $user Object user that insert + * @return int <0 if KO, rowid in localtax table if OK */ function addPayment($user) { @@ -477,7 +478,7 @@ class localtax extends CommonObject $sql.=", '".$user->id."', NULL"; $sql.= ")"; - dol_syslog("localtax::addPayment sql=".$sql); + dol_syslog(get_class($this)."::addPayment sql=".$sql); $result = $this->db->query($sql); if ($result) { @@ -544,12 +545,13 @@ class localtax extends CommonObject /** * Update the link betwen localtax payment and the line into llx_bank - * @param id_bank Id compte bancaire - * @return int <0 if KO, >0 if OK + * + * @param int $id Id bank account + * @return int <0 if KO, >0 if OK */ - function update_fk_bank($id_bank) + function update_fk_bank($id) { - $sql = 'UPDATE llx_localtax set fk_bank = '.$id_bank; + $sql = 'UPDATE llx_localtax set fk_bank = '.$id; $sql.= ' WHERE rowid = '.$this->id; $result = $this->db->query($sql); if ($result) @@ -565,12 +567,13 @@ class localtax extends CommonObject /** - * brief Returns clickable name - * @param withpicto 0=Link, 1=Picto into link, 2=Picto - * @param option Sur quoi pointe le lien - * @return string Chaine avec URL - */ - function getNomUrl($withpicto=0,$option='') + * Returns clickable name + * + * @param int $withpicto 0=Link, 1=Picto into link, 2=Picto + * @param string $option Sur quoi pointe le lien + * @return string Chaine avec URL + */ + function getNomUrl($withpicto=0, $option='') { global $langs; From a3fa3586a5729b299d2650d0029be3d125997f8b Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 29 Oct 2011 08:42:54 +0200 Subject: [PATCH 15/35] Add empty US datepicker initialisation --- htdocs/langs/en_US/js/jquery.ui.datepicker.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 htdocs/langs/en_US/js/jquery.ui.datepicker.js diff --git a/htdocs/langs/en_US/js/jquery.ui.datepicker.js b/htdocs/langs/en_US/js/jquery.ui.datepicker.js new file mode 100644 index 00000000000..bfc5fd3a006 --- /dev/null +++ b/htdocs/langs/en_US/js/jquery.ui.datepicker.js @@ -0,0 +1 @@ +/* US initialisation for the jQuery UI date picker plugin. */ \ No newline at end of file From de842ef1e1a409c257335e3ec1f90d29fc3e1c02 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 29 Oct 2011 18:15:54 +0200 Subject: [PATCH 16/35] Doxygen Fix: Bad vars --- htdocs/core/lib/functions.lib.php | 20 +++++++++---------- .../societe/doc/doc_generic_odt.modules.php | 10 +++++++--- .../modules/societe/modules_societe.class.php | 12 +++++------ 3 files changed, 23 insertions(+), 19 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index a9d7d4c01c0..42d8a8d5eea 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -585,7 +585,7 @@ function dol_get_fiche_head($links=array(), $active='0', $title='', $notab=0, $p $out.="\n"; if (! $notab) $out.="\n".'
'."\n"; - + // Parameters for edit in place if (! empty($GLOBALS['object'])) { @@ -3848,10 +3848,10 @@ function complete_substitutions_array(&$substitutionarray,$outputlangs,$object=' /** * Format output for start and end date * - * @param date_start Start date - * @param date_end End date - * @param format Output format - * @param outputlangs Output language + * @param timestamp $date_start Start date + * @param timestamp $date_end End date + * @param string $format Output format + * @param Translate $outputlangs Output language * @return void */ function print_date_range($date_start,$date_end,$format = '',$outputlangs='') @@ -3862,11 +3862,11 @@ function print_date_range($date_start,$date_end,$format = '',$outputlangs='') /** * Format output for start and end date * - * @param date_start Start date - * @param date_end End date - * @param format Output format - * @param outputlangs Output language - * @return string String + * @param timestamp $date_start Start date + * @param timestamp $date_end End date + * @param string $format Output format + * @param Translate $outputlangs Output language + * @return string String */ function get_date_range($date_start,$date_end,$format = '',$outputlangs='') { diff --git a/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php b/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php index b466f16d8d4..68681e069fc 100644 --- a/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php +++ b/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php @@ -43,7 +43,7 @@ class doc_generic_odt extends ModeleThirdPartyDoc /** * Constructor * - * @param DoliDB $DB Database handler + * @param DoliDB $db Database handler */ function doc_generic_odt($db) { @@ -226,7 +226,8 @@ class doc_generic_odt extends ModeleThirdPartyDoc // Open and load template require_once(ODTPHP_PATH.'odf.php'); - $odfHandler = new odf($srctemplatepath, array( + $odfHandler = new odf($srctemplatepath, array + ( 'PATH_TO_TMP' => $conf->societe->dir_temp, 'ZIP_PROXY' => 'PclZipProxy', // PhpZipProxy or PclZipProxy. Got "bad compression method" error when using PhpZipProxy. 'DELIMITER_LEFT' => '{', @@ -255,6 +256,7 @@ class doc_generic_odt extends ModeleThirdPartyDoc } catch(OdfException $e) { + // setVars failed, probably because key not found } } // Make substitutions into odt of mysoc info @@ -276,11 +278,12 @@ class doc_generic_odt extends ModeleThirdPartyDoc } catch(OdfException $e) { + // setVars failed, probably because key not found } } // Make substitutions into odt of thirdparty + external modules $tmparray=$this->get_substitutionarray_thirdparty($object,$outputlangs); - complete_substitutions_array($tmparray, $ouputlangs, $object); + complete_substitutions_array($tmparray, $outputlangs, $object); //var_dump($object->id); exit; foreach($tmparray as $key=>$value) { @@ -297,6 +300,7 @@ class doc_generic_odt extends ModeleThirdPartyDoc } catch(OdfException $e) { + // setVars failed, probably because key not found } } diff --git a/htdocs/core/modules/societe/modules_societe.class.php b/htdocs/core/modules/societe/modules_societe.class.php index f674b4fb11f..a25c78446e0 100644 --- a/htdocs/core/modules/societe/modules_societe.class.php +++ b/htdocs/core/modules/societe/modules_societe.class.php @@ -352,12 +352,12 @@ abstract class ModeleAccountancyCode /** * Create a document for third party * - * @param db Database handler - * @param id Id of third party to use - * @param message Message - * @param modele Force model to use ('' to not force). model can be a model name or a template file. - * @param outputlangs Objet lang to use for translation - * @return int <0 if KO, >0 if OK + * @param DoliDB $db Database handler + * @param int $id Id of third party to use + * @param string $message Message + * @param string $modele Force model to use ('' to not force). model can be a model name or a template file. + * @param Translate $outputlangs Object lang to use for translation + * @return int <0 if KO, >0 if OK */ function thirdparty_doc_create($db, $id, $message, $modele, $outputlangs) { From ac183e248308a5e1e7393b0bc3334e834dd542d7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 29 Oct 2011 18:28:13 +0200 Subject: [PATCH 17/35] Optimize speed --- htdocs/contact/class/contact.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/contact/class/contact.class.php b/htdocs/contact/class/contact.class.php index 18e021b15be..8fcfa734e51 100644 --- a/htdocs/contact/class/contact.class.php +++ b/htdocs/contact/class/contact.class.php @@ -944,35 +944,35 @@ class Contact extends CommonObject if ($statut==4) return $langs->trans('StatusContactValidated'); if ($statut==5) return $langs->trans('StatusContactValidated'); } - if ($mode == 1) + elseif ($mode == 1) { if ($statut==0) return $langs->trans('StatusContactDraftShort'); if ($statut==1) return $langs->trans('StatusContactValidatedShort'); if ($statut==4) return $langs->trans('StatusContactValidatedShort'); if ($statut==5) return $langs->trans('StatusContactValidatedShort'); } - if ($mode == 2) + elseif ($mode == 2) { if ($statut==0) return img_picto($langs->trans('StatusContactDraftShort'),'statut0').' '.$langs->trans('StatusContactDraft'); if ($statut==1) return img_picto($langs->trans('StatusContactValidatedShort'),'statut1').' '.$langs->trans('StatusContactValidated'); if ($statut==4) return img_picto($langs->trans('StatusContactValidatedShort'),'statut4').' '.$langs->trans('StatusContactValidated'); if ($statut==5) return img_picto($langs->trans('StatusContactValidatedShort'),'statut5').' '.$langs->trans('StatusContactValidated'); } - if ($mode == 3) + elseif ($mode == 3) { if ($statut==0) return img_picto($langs->trans('StatusContactDraft'),'statut0'); if ($statut==1) return img_picto($langs->trans('StatusContactValidated'),'statut1'); if ($statut==4) return img_picto($langs->trans('StatusContactValidated'),'statut4'); if ($statut==5) return img_picto($langs->trans('StatusContactValidated'),'statut5'); } - if ($mode == 4) + elseif ($mode == 4) { if ($statut==0) return img_picto($langs->trans('StatusContactDraft'),'statut0').' '.$langs->trans('StatusContactDraft'); if ($statut==1) return img_picto($langs->trans('StatusContactValidated'),'statut1').' '.$langs->trans('StatusContactValidated'); if ($statut==4) return img_picto($langs->trans('StatusContactValidated'),'statut4').' '.$langs->trans('StatusContactValidated'); if ($statut==5) return img_picto($langs->trans('StatusContactValidated'),'statut5').' '.$langs->trans('StatusContactValidated'); } - if ($mode == 5) + elseif ($mode == 5) { if ($statut==0) return $langs->trans('StatusContactDraftShort').' '.img_picto($langs->trans('StatusContactDraftShort'),'statut0'); if ($statut==1) return $langs->trans('StatusContactValidatedShort').' '.img_picto($langs->trans('StatusContactValidatedShort'),'statut1'); From fd9619f4cd7794e7fd2ff1ffc7e7ff01e6c4b9a7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 29 Oct 2011 18:48:19 +0200 Subject: [PATCH 18/35] Fix: Property not loaded Enhance phpunit --- htdocs/societe/class/societe.class.php | 18 +++++++++++------- test/phpunit/SocieteTest.php | 8 ++++++++ 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 38a6635312b..ccb94dd5bc0 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -150,7 +150,6 @@ class Societe extends CommonObject $this->db = $DB; - $this->id = $id; $this->client = 0; $this->prospect = 0; $this->fournisseur = 0; @@ -720,12 +719,12 @@ class Societe extends CommonObject $this->parent = $obj->parent; - $this->siren = $obj->siren; // TODO obsolete - $this->idprof1 = $obj->siren; - $this->siret = $obj->siret; // TODO obsolete - $this->idprof2 = $obj->siret; - $this->ape = $obj->ape; // TODO obsolete - $this->idprof3 = $obj->ape; + $this->siren = $obj->idprof1; // TODO obsolete + $this->idprof1 = $obj->idprof1; + $this->siret = $obj->idprof2; // TODO obsolete + $this->idprof2 = $obj->idprof2; + $this->ape = $obj->idprof3; // TODO obsolete + $this->idprof3 = $obj->idprof3; $this->idprof4 = $obj->idprof4; $this->capital = $obj->capital; @@ -2521,6 +2520,11 @@ class Societe extends CommonObject $this->tva_intra='EU1234567'; $this->note_public='This is a comment (public)'; $this->note='This is a comment (private)'; + + $this->idprof1='idprof1'; + $this->idprof2='idprof2'; + $this->idprof3='idprof3'; + $this->idprof4='idprof4'; } } diff --git a/test/phpunit/SocieteTest.php b/test/phpunit/SocieteTest.php index 738bb8d35c6..d61d3f26a66 100755 --- a/test/phpunit/SocieteTest.php +++ b/test/phpunit/SocieteTest.php @@ -177,6 +177,10 @@ class SocieteTest extends PHPUnit_Framework_TestCase $localobject->fax='New fax'; $localobject->email='New email'; $localobject->url='New url'; + $localobject->idprof1='new idprof1'; + $localobject->idprof2='new idprof2'; + $localobject->idprof3='new idprof3'; + $localobject->idprof4='new idprof4'; $result=$localobject->update($localobject->id,$user); print __METHOD__." id=".$localobject->id." result=".$result."\n"; $this->assertLessThan($result, 0); @@ -203,6 +207,10 @@ class SocieteTest extends PHPUnit_Framework_TestCase $this->assertEquals($localobject->fax, $newobject->fax); $this->assertEquals($localobject->email, $newobject->email); $this->assertEquals($localobject->url, $newobject->url); + $this->assertEquals($localobject->idprof1, $newobject->idprof1); + $this->assertEquals($localobject->idprof2, $newobject->idprof2); + $this->assertEquals($localobject->idprof3, $newobject->idprof3); + $this->assertEquals($localobject->idprof4, $newobject->idprof4); return $localobject; } From 784f696c852cf7a00597e48e2ef36914235fa1f2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 29 Oct 2011 19:50:25 +0200 Subject: [PATCH 19/35] Qual: Some fixes to make working with PHP option error_reporting E_STRICT --- htdocs/compta/resultat/clientfourn.php | 2 +- htdocs/compta/resultat/index.php | 2 +- htdocs/compta/stats/cabyuser.php | 2 +- htdocs/compta/stats/casoc.php | 2 +- htdocs/compta/stats/index.php | 2 +- htdocs/compta/tva/quadri.php | 15 ++++++----- htdocs/core/class/conf.class.php | 24 ++++++++++------- htdocs/core/lib/accountancy.lib.php | 5 ++-- htdocs/filefunc.inc.php | 37 +++++++++++++------------- htdocs/master.inc.php | 1 - 10 files changed, 49 insertions(+), 43 deletions(-) diff --git a/htdocs/compta/resultat/clientfourn.php b/htdocs/compta/resultat/clientfourn.php index a5c566391e9..9d24bbe3c48 100644 --- a/htdocs/compta/resultat/clientfourn.php +++ b/htdocs/compta/resultat/clientfourn.php @@ -87,7 +87,7 @@ else } // Define modecompta ('CREANCES-DETTES' or 'RECETTES-DEPENSES') -$modecompta = $conf->compta->mode; +$modecompta = $conf->global->COMPTA_MODE; if ($_GET["modecompta"]) $modecompta=$_GET["modecompta"]; diff --git a/htdocs/compta/resultat/index.php b/htdocs/compta/resultat/index.php index 2af686bdec7..35f3e1aedfe 100644 --- a/htdocs/compta/resultat/index.php +++ b/htdocs/compta/resultat/index.php @@ -44,7 +44,7 @@ if (!$user->rights->compta->resultat->lire && !$user->rights->accounting->compta accessforbidden(); // Define modecompta ('CREANCES-DETTES' or 'RECETTES-DEPENSES') -$modecompta = $conf->compta->mode; +$modecompta = $conf->global->COMPTA_MODE; if ($_GET["modecompta"]) $modecompta=$_GET["modecompta"]; diff --git a/htdocs/compta/stats/cabyuser.php b/htdocs/compta/stats/cabyuser.php index 4b02a954fac..da20dd3a7cd 100644 --- a/htdocs/compta/stats/cabyuser.php +++ b/htdocs/compta/stats/cabyuser.php @@ -34,7 +34,7 @@ if (!$user->rights->compta->resultat->lire && !$user->rights->accounting->compta accessforbidden(); // Define modecompta ('CREANCES-DETTES' or 'RECETTES-DEPENSES') -$modecompta = $conf->compta->mode; +$modecompta = $conf->global->COMPTA_MODE; if ($_GET["modecompta"]) $modecompta=$_GET["modecompta"]; $sortorder=isset($_GET["sortorder"])?$_GET["sortorder"]:$_POST["sortorder"]; diff --git a/htdocs/compta/stats/casoc.php b/htdocs/compta/stats/casoc.php index 7962b3f1059..4fbdbd7eaed 100644 --- a/htdocs/compta/stats/casoc.php +++ b/htdocs/compta/stats/casoc.php @@ -31,7 +31,7 @@ require_once(DOL_DOCUMENT_ROOT."/core/lib/date.lib.php"); $langs->load("companies"); // Define modecompta ('CREANCES-DETTES' or 'RECETTES-DEPENSES') -$modecompta = $conf->compta->mode; +$modecompta = $conf->global->COMPTA_MODE; if ($_GET["modecompta"]) $modecompta=$_GET["modecompta"]; $sortorder=isset($_GET["sortorder"])?$_GET["sortorder"]:$_POST["sortorder"]; diff --git a/htdocs/compta/stats/index.php b/htdocs/compta/stats/index.php index 2942b62c912..a243cfedc34 100644 --- a/htdocs/compta/stats/index.php +++ b/htdocs/compta/stats/index.php @@ -45,7 +45,7 @@ if (!$user->rights->compta->resultat->lire && !$user->rights->accounting->compta accessforbidden(); // Define modecompta ('CREANCES-DETTES' or 'RECETTES-DEPENSES') -$modecompta = $conf->compta->mode; +$modecompta = $conf->global->COMPTA_MODE; if ($_GET["modecompta"]) $modecompta=$_GET["modecompta"]; diff --git a/htdocs/compta/tva/quadri.php b/htdocs/compta/tva/quadri.php index d02ebf630d6..3154c5de299 100644 --- a/htdocs/compta/tva/quadri.php +++ b/htdocs/compta/tva/quadri.php @@ -49,7 +49,8 @@ $result = restrictedArea($user, 'tax', '', '', 'charges'); * Gets VAT to collect for the given month of the given year * The function gets the VAT in split results, as the VAT declaration asks * to report the amounts for different VAT rates as different lines. - * This function also accounts recurrent invoices + * This function also accounts recurrent invoices. + * * @param db Database handler * @param y Year * @param q Year quarter (1-4) @@ -57,7 +58,8 @@ $result = restrictedArea($user, 'tax', '', '', 'charges'); function tva_coll($db,$y,$q) { global $conf; - if ($conf->compta->mode == "CREANCES-DETTES") + + if ($conf->global->COMPTA_MODE == "CREANCES-DETTES") { // if vat paid on due invoices $sql = "SELECT d.fk_facture as facid, f.facnumber as facnum, d.tva_tx as rate, d.total_ht as totalht, d.total_tva as amount"; @@ -124,7 +126,7 @@ function tva_paye($db, $y,$q) { global $conf; - if ($conf->compta->mode == "CREANCES-DETTES") + if ($conf->global->COMPTA_MODE == "CREANCES-DETTES") { // Si on paye la tva sur les factures dues (non brouillon) $sql = "SELECT d.fk_facture_fourn as facid, f.facnumber as facnum, d.tva_tx as rate, d.total_ht as totalht, d.tva as amount"; @@ -208,10 +210,9 @@ print "".$langs->trans("Invoices").""; print "".$langs->trans("TotalToPay").""; print "\n"; -if ($conf->compta->mode == "CREANCES-DETTES") +if ($conf->global->COMPTA_MODE == "CREANCES-DETTES") { - $y = $year_current ; - + $y = $year_current; $total = 0; $subtotal = 0; $i=0; @@ -219,7 +220,7 @@ if ($conf->compta->mode == "CREANCES-DETTES") $subtot_coll_vat = 0; $subtot_paye_total = 0; $subtot_paye_vat = 0; - for ($q = 1 ; $q <= 4 ; $q++ ) + for ($q = 1 ; $q <= 4 ; $q++) { print "".$langs->trans("Quadri")." $q (".dol_print_date(dol_mktime(0,0,0,(($q-1)*3)+1,1,$y),"%b %Y").' - '.dol_print_date(dol_mktime(0,0,0,($q*3),1,$y),"%b %Y").")"; $var=true; diff --git a/htdocs/core/class/conf.class.php b/htdocs/core/class/conf.class.php index 44a366f876c..5895d3a8c45 100644 --- a/htdocs/core/class/conf.class.php +++ b/htdocs/core/class/conf.class.php @@ -38,6 +38,9 @@ class Conf var $db; //! To store properties found in conf file var $file; + //! To store properties found into database + var $global; + //! To store if javascript/ajax is enabked var $use_javascript_ajax; @@ -73,10 +76,15 @@ class Conf */ function Conf() { - //! Charset for HTML output and for storing data in memory - $this->file->character_set_client='UTF-8'; // UTF-8, ISO-8859-1 - - // $this->agendas_modules['comm/action'][]= 'ActionAgenda'; + // Avoid warnings when filling this->xxx + $this->file=(object) array(); + $this->db=(object) array(); + $this->global=(object) array(); + $this->mycompany=(object) array(); + $this->admin=(object) array(); + $this->user=(object) array(); + //! Charset for HTML output and for storing data in memory + $this->file->character_set_client='UTF-8'; // UTF-8, ISO-8859-1 } @@ -172,6 +180,7 @@ class Conf { $module=strtolower($reg[1]); //print "Module ".$module." is enabled
\n"; + $this->$module=(object) array(); $this->$module->enabled=true; // Add this module in list of enabled modules $this->modules[]=$module; @@ -231,7 +240,6 @@ class Conf // For backward compatibility // TODO Replace this->xxx->enabled by this->modulename->enabled to remove this code - if (isset($this->comptabilite->enabled)) $this->compta->enabled=$this->comptabilite->enabled; if (isset($this->propale->enabled)) $this->propal->enabled=$this->propale->enabled; // Define default dir_output and dir_temp for directories of modules @@ -313,10 +321,8 @@ class Conf $this->monnaie=$this->global->MAIN_MONNAIE; // TODO deprecated $this->currency=$this->global->MAIN_MONNAIE; - // $this->compta->mode = Option du module Comptabilite (simple ou expert): - // Defini le mode de calcul des etats comptables (CA,...) - $this->compta->mode = 'RECETTES-DEPENSES'; // By default - if (isset($this->global->COMPTA_MODE)) $this->compta->mode = $this->global->COMPTA_MODE; // Can be 'RECETTES-DEPENSES' ou 'CREANCES-DETTES' + // $this->global->COMPTA_MODE = Option des modules Comptabilites (simple ou expert). Defini le mode de calcul des etats comptables (CA,...) + if (empty($this->global->COMPTA_MODE)) $this->global->COMPTA_MODE='RECETTES-DEPENSES'; // By default. Can be 'RECETTES-DEPENSES' ou 'CREANCES-DETTES' // $this->liste_limit = constante de taille maximale des listes if (empty($this->global->MAIN_SIZE_LISTE_LIMIT)) $this->global->MAIN_SIZE_LISTE_LIMIT=25; diff --git a/htdocs/core/lib/accountancy.lib.php b/htdocs/core/lib/accountancy.lib.php index a1500797866..f0586fc50d7 100644 --- a/htdocs/core/lib/accountancy.lib.php +++ b/htdocs/core/lib/accountancy.lib.php @@ -50,10 +50,11 @@ function get_ca_propal ($db, $year, $socid) function get_ca ($db, $year, $socid) { global $conf; - + $sql = "SELECT sum(f.amount) as sum FROM ".MAIN_DB_PREFIX."facture as f"; $sql .= " WHERE f.fk_statut in (1,2)"; - if ($conf->compta->mode != 'CREANCES-DETTES') { + if ($conf->global->COMPTA_MODE != 'CREANCES-DETTES') + { $sql .= " AND f.paye = 1"; } $sql .= " AND date_format(f.datef , '%Y') = '".$year."'"; diff --git a/htdocs/filefunc.inc.php b/htdocs/filefunc.inc.php index 8695e9d6004..b01d7dc61b9 100755 --- a/htdocs/filefunc.inc.php +++ b/htdocs/filefunc.inc.php @@ -33,30 +33,29 @@ if (! defined('DOL_VERSION')) define('DOL_VERSION','3.2.0-alpha'); // Also defin if (! defined('EURO')) define('EURO',chr(128)); // Definition des constantes syslog -if (function_exists("define_syslog_variables")) +if (! defined('LOG_DEBUG')) { - if (version_compare(PHP_VERSION, '5.3.0', '<')) - { - define_syslog_variables(); // Deprecated since php 5.3.0, syslog variables no longer need to be initialized - } + if (function_exists("define_syslog_variables")) + { + define_syslog_variables(); // Deprecated since php 5.3.0, syslog variables no longer need to be initialized + } + else + { + // Pour PHP sans syslog (comme sous Windows) + define('LOG_EMERG',0); + define('LOG_ALERT',1); + define('LOG_CRIT',2); + define('LOG_ERR',3); + define('LOG_WARNING',4); + define('LOG_NOTICE',5); + define('LOG_INFO',6); + define('LOG_DEBUG',7); + } } -else -{ - // Pour PHP sans syslog (comme sous Windows) - define('LOG_EMERG',0); - define('LOG_ALERT',1); - define('LOG_CRIT',2); - define('LOG_ERR',3); - define('LOG_WARNING',4); - define('LOG_NOTICE',5); - define('LOG_INFO',6); - define('LOG_DEBUG',7); -} - // Forcage du parametrage PHP error_reporting (Dolibarr non utilisable en mode error E_ALL) error_reporting(E_ALL ^ E_NOTICE); -//error_reporting(E_ALL); +//error_reporting(E_ALL | E_STRICT); // Define vars diff --git a/htdocs/master.inc.php b/htdocs/master.inc.php index 1f223fc38f9..c56ded1c2aa 100644 --- a/htdocs/master.inc.php +++ b/htdocs/master.inc.php @@ -42,7 +42,6 @@ require_once("filefunc.inc.php"); // May have been already require by main.inc.p require_once(DOL_DOCUMENT_ROOT."/core/class/conf.class.php"); $conf = new Conf(); - // Identifiant propres au serveur base de donnee $conf->db->host = $dolibarr_main_db_host; $conf->db->port = $dolibarr_main_db_port; From d46241e380aac4b44e6ffeda331d950126e93dca Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 29 Oct 2011 20:00:21 +0200 Subject: [PATCH 20/35] Fix: Translations --- htdocs/langs/el_GR/compta.lang | 4 ++-- htdocs/langs/en_US/compta.lang | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/langs/el_GR/compta.lang b/htdocs/langs/el_GR/compta.lang index d3a424b9c8f..8bfb3e10110 100755 --- a/htdocs/langs/el_GR/compta.lang +++ b/htdocs/langs/el_GR/compta.lang @@ -93,9 +93,9 @@ DeleteSocialContribution=Διαγραφή κοινωνικής εισφοράς ConfirmDeleteSocialContribution=Είστε σίγουροι ότι θέλετε να διαγράψετε την κοινωνική εισφορά; ExportDataset_tax_1=Social contributions and payments AnnualSummaryDueDebtMode=Balance of income and expenses, annual summary, mode %sClaims-Debts%s said Commitment accounting. -AnnualSummaryInputOutputMode=Balance of income and expenses, annual summary, mode %sRevenues-Expensens%s said cash accounting. +AnnualSummaryInputOutputMode=Balance of income and expenses, annual summary, mode %sIncomes-Expensens%s said cash accounting. AnnualByCompaniesDueDebtMode=Balance of income and expenses, detail by third parties, mode %sClaims-Debts%s said Commitment accounting. -AnnualByCompaniesInputOutputMode=Balance of income and expenses, detail by third parties, mode %sRevenues-Expenses%s said cash accounting. +AnnualByCompaniesInputOutputMode=Balance of income and expenses, detail by third parties, mode %sIncomes-Expenses%s said cash accounting. SeeReportInInputOutputMode=See report %sIncomes-Expenses%s said cash accounting for a calculation on actual payments made SeeReportInDueDebtMode=See report %sClaims-Debts%s said commitment accounting for a calculation on issued invoices RulesResultDue=- Amounts shown are with all taxes included
- It includes outstanding invoices, expenses and VAT whether they are paid or not.
- It is based on the validation date of invoices and VAT and on the due date for expenses. diff --git a/htdocs/langs/en_US/compta.lang b/htdocs/langs/en_US/compta.lang index 6fb68b6bd24..473ef385806 100644 --- a/htdocs/langs/en_US/compta.lang +++ b/htdocs/langs/en_US/compta.lang @@ -6,8 +6,8 @@ Treasury=Treasury MenuFinancial=Financial TaxModuleSetupToModifyRules=Go to module setup to modify rules for calculation OptionMode=Option for accountancy -OptionModeTrue=Option Input-Output -OptionModeVirtual=Option Credits-Debits +OptionModeTrue=Option Incomes-Expenses +OptionModeVirtual=Option Claims-Debts OptionModeTrueDesc=In this context, the turnover is calculated over payments (date of payments). \nThe validity of the figures is assured only if the book-keeping is scrutinized through the input/output on the accounts via invoices. OptionModeVirtualDesc=In this context, the turnover is calculated over invoices (date of validation). When these invoices are due, whether they have been paid or not, they are listed in the turnover output. FeatureIsSupportedInInOutModeOnly=Feature only available in CREDITS-DEBTS accountancy mode (See Accountancy module configuration) @@ -102,9 +102,9 @@ DeleteSocialContribution=Delete a social contribution ConfirmDeleteSocialContribution=Are you sure you want to delete this social contribution? ExportDataset_tax_1=Social contributions and payments AnnualSummaryDueDebtMode=Balance of income and expenses, annual summary, mode %sClaims-Debts%s said Commitment accounting. -AnnualSummaryInputOutputMode=Balance of income and expenses, annual summary, mode %sRevenues-Expenses%s said cash accounting. +AnnualSummaryInputOutputMode=Balance of income and expenses, annual summary, mode %sIncomes-Expenses%s said cash accounting. AnnualByCompaniesDueDebtMode=Balance of income and expenses, detail by third parties, mode %sClaims-Debts%s said Commitment accounting. -AnnualByCompaniesInputOutputMode=Balance of income and expenses, detail by third parties, mode %sRevenues-Expenses%s said cash accounting. +AnnualByCompaniesInputOutputMode=Balance of income and expenses, detail by third parties, mode %sIncomes-Expenses%s said cash accounting. SeeReportInInputOutputMode=See report %sIncomes-Expenses%s said cash accounting for a calculation on actual payments made SeeReportInDueDebtMode=See report %sClaims-Debts%s said commitment accounting for a calculation on issued invoices RulesResultDue=- Amounts shown are with all taxes included
- It includes outstanding invoices, expenses and VAT whether they are paid or not.
- It is based on the validation date of invoices and VAT and on the due date for expenses. From 609632244c4920a5d031b17e71bdb47cec0c2daa Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 29 Oct 2011 20:36:18 +0200 Subject: [PATCH 21/35] Removed error reporting --- htdocs/main.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index e316daa44a7..f3ffef35bf1 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1014,7 +1014,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs ); print 'var tradMonths = '.json_encode($tradMonths).';'."\n"; print ''."\n"; - + // Add datepicker default options print ''."\n"; // Add datepicker i18n for current language @@ -1438,7 +1438,7 @@ function left_menu($menu_array_before, $helppagename='', $moresearchform='', $me // Execute hook printLeftBlock $parameters=array(); - $leftblock.=$hookmanager->executeHooks('printLeftBlock',$parameters); // Note that $action and $object may have been modified by some hooks + $leftblock=$hookmanager->executeHooks('printLeftBlock',$parameters); // Note that $action and $object may have been modified by some hooks print $leftblock; if ($conf->use_javascript_ajax && $conf->global->MAIN_MENU_USE_JQUERY_LAYOUT) print '
'."\n"; From 8dc1a20466c4f012b26bcb03b0bef34d528010a5 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 29 Oct 2011 23:42:24 +0200 Subject: [PATCH 22/35] Add jeditable select and autocomplete (not stable) --- .../deplacement/class/deplacement.class.php | 9 ++-- htdocs/compta/deplacement/fiche.php | 8 ++-- htdocs/compta/deplacement/index.php | 4 +- htdocs/core/ajax/loadinplace.php | 13 ++++-- htdocs/core/js/editinplace.js | 44 +++++++++++++++++++ .../jquery.jeditable.ui-autocomplete.js | 9 ++++ htdocs/main.inc.php | 1 + htdocs/theme/eldy/style.css.php | 11 ++++- 8 files changed, 87 insertions(+), 12 deletions(-) create mode 100644 htdocs/includes/jquery/plugins/jeditable/jquery.jeditable.ui-autocomplete.js diff --git a/htdocs/compta/deplacement/class/deplacement.class.php b/htdocs/compta/deplacement/class/deplacement.class.php index eb5551e2a82..d3e7691f05a 100644 --- a/htdocs/compta/deplacement/class/deplacement.class.php +++ b/htdocs/compta/deplacement/class/deplacement.class.php @@ -361,7 +361,7 @@ class Deplacement extends CommonObject $sql.= " FROM ".MAIN_DB_PREFIX."c_type_fees"; $sql.= " WHERE active = ".$active; - dol_syslog("Deplacement::listOfTypes sql=".$sql, LOG_DEBUG); + dol_syslog(get_class($this)."::listOfTypes sql=".$sql, LOG_DEBUG); $result = $this->db->query($sql); if ( $result ) { @@ -370,11 +370,14 @@ class Deplacement extends CommonObject while ($i < $num) { $obj = $this->db->fetch_object($result); - $ret[$obj->id]=array('code'=>$obj->code, 'label'=>(($langs->trans($obj->code)!=$obj->code)?$langs->trans($obj->code):$obj->label)); + $ret[$obj->code]=(($langs->trans($obj->code)!=$obj->code)?$langs->trans($obj->code):$obj->label); $i++; } } - else dol_print_error($this->db); + else + { + dol_print_error($this->db); + } return $ret; } diff --git a/htdocs/compta/deplacement/fiche.php b/htdocs/compta/deplacement/fiche.php index 7c72d94b83a..1f3c6438536 100644 --- a/htdocs/compta/deplacement/fiche.php +++ b/htdocs/compta/deplacement/fiche.php @@ -339,13 +339,15 @@ else if ($id) print ''; // Ref - print ""; - print ''; // Type - print ''; + print ''; // Who print ''; print "\n"; $listoftype=$tripandexpense_static->listOfTypes(); -foreach ($listoftype as $typefee) +foreach ($listoftype as $code => $label) { - $dataseries[]=array('label'=>$typefee['label'],'values'=>array(0=>(isset($nb[$typefee['code']])?$nb[$typefee['code']]:0))); + $dataseries[]=array('label'=>$label,'values'=>array(0=>(isset($nb[$code])?$nb[$code]:0))); } if ($conf->use_javascript_ajax) diff --git a/htdocs/core/ajax/loadinplace.php b/htdocs/core/ajax/loadinplace.php index 88af8e50ef5..f45dc8dd80c 100644 --- a/htdocs/core/ajax/loadinplace.php +++ b/htdocs/core/ajax/loadinplace.php @@ -54,9 +54,16 @@ if((isset($_GET['field']) && ! empty($_GET['field'])) if ($user->rights->$element->lire || $user->rights->$element->read) { - $object = new GenericObject($db); - $value=$object->getValueFrom($table_element, $fk_element, $field); - echo $value; + if ($type == 'select') + { + echo json_encode(array("Aberdeen", "Ada", "Adamsville", "Addyston", "Adelphi", "Adena", "Adrian", "Akron")); + } + else + { + $object = new GenericObject($db); + $value=$object->getValueFrom($table_element, $fk_element, $field); + echo $value; + } } else { diff --git a/htdocs/core/js/editinplace.js b/htdocs/core/js/editinplace.js index 9e905f43cc8..1ea15604de6 100644 --- a/htdocs/core/js/editinplace.js +++ b/htdocs/core/js/editinplace.js @@ -125,4 +125,48 @@ $(document).ready(function() { } } }); + $('.edit_select').editable(urlSaveInPlace, { + type : 'select', + id : 'field', + onblur : 'ignore', + cssclass : 'flat', + tooltip : tooltipInPlace, + placeholder : placeholderInPlace, + cancel : cancelInPlace, + submit : submitInPlace, + indicator : indicatorInPlace, + loadurl : urlLoadInPlace, + loaddata : { + type: 'select', + element: element, + table_element: table_element, + fk_element: fk_element + }, + submitdata : { + type: 'select', + element: element, + table_element: table_element, + fk_element: fk_element + }, + callback : function(result, settings) { + var obj = $.parseJSON(result); + + if (obj.error) { + $(this).html(this.revert); + $.jnotify(obj.error, "error", true); + } else { + $(this).html(obj.value); + } + } + }); + $('.edit_autocomplete').editable(urlSaveInPlace, { + type : 'autocomplete', + id : 'field', + onblur : 'submit', + tooltip : tooltipInPlace, + indicator : indicatorInPlace, + autocomplete : { + data : ["Aberdeen", "Ada", "Adamsville", "Addyston", "Adelphi", "Adena", "Adrian", "Akron"] + } + }); }); \ No newline at end of file diff --git a/htdocs/includes/jquery/plugins/jeditable/jquery.jeditable.ui-autocomplete.js b/htdocs/includes/jquery/plugins/jeditable/jquery.jeditable.ui-autocomplete.js new file mode 100644 index 00000000000..6983002ef56 --- /dev/null +++ b/htdocs/includes/jquery/plugins/jeditable/jquery.jeditable.ui-autocomplete.js @@ -0,0 +1,9 @@ +/* Create an inline datepicker which leverages the + jQuery UI autocomplete +*/ +$.editable.addInputType('autocomplete', { + element : $.editable.types.text.element, + plugin : function(settings, original) { + $('input', this).autocomplete(settings.autocomplete.data); + } +}); \ No newline at end of file diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index e316daa44a7..9a259fe35e1 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -932,6 +932,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs { print ''."\n"; print ''."\n"; + print ''."\n"; print ' - + -global->MAIN_HTML_FOOTER; ?> +global->MAIN_HTML_FOOTER)) print $conf->global->MAIN_HTML_FOOTER; ?> From eaeb399f0247a9e22e793dc27152f7291024e5f4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 30 Oct 2011 17:26:55 +0100 Subject: [PATCH 25/35] Qual: Uniformize variable name --- htdocs/core/class/conf.class.php | 5 ----- htdocs/core/menus/init_menu_auguria.sql | 10 +++++----- htdocs/core/menus/init_menu_smartphone.sql | 10 +++++----- htdocs/core/menus/standard/eldy.lib.php | 10 +++++----- htdocs/core/tpl/login.tpl.php | 2 +- htdocs/install/mysql/migration/2.1.0-2.2.0.sql | 2 +- 6 files changed, 17 insertions(+), 22 deletions(-) diff --git a/htdocs/core/class/conf.class.php b/htdocs/core/class/conf.class.php index 5895d3a8c45..ac4bd8135d6 100644 --- a/htdocs/core/class/conf.class.php +++ b/htdocs/core/class/conf.class.php @@ -380,11 +380,6 @@ class Conf if (empty($this->global->TAX_MODE_SELL_SERVICE)) $this->global->TAX_MODE_SELL_SERVICE='payment'; if (empty($this->global->TAX_MODE_BUY_SERVICE)) $this->global->TAX_MODE_BUY_SERVICE='payment'; - /* We always show vat menus if module tax is enabled. - * Because even when vat option is 'franchise' and vat rate is 0, we have to pay vat. - */ - $this->compta->tva=1; // This option means "Show vat menus" - // Delay before warnings $this->actions->warning_delay=(isset($this->global->MAIN_DELAY_ACTIONS_TODO)?$this->global->MAIN_DELAY_ACTIONS_TODO:7)*24*60*60; $this->commande->client->warning_delay=(isset($this->global->MAIN_DELAY_ORDERS_TO_PROCESS)?$this->global->MAIN_DELAY_ORDERS_TO_PROCESS:2)*24*60*60; diff --git a/htdocs/core/menus/init_menu_auguria.sql b/htdocs/core/menus/init_menu_auguria.sql index e1295766226..6be1cd349a7 100644 --- a/htdocs/core/menus/init_menu_auguria.sql +++ b/htdocs/core/menus/init_menu_auguria.sql @@ -178,11 +178,11 @@ insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled', __HANDLER__, 'left', 2201__+MAX_llx_menu__, 'accountancy', '', 2200__+MAX_llx_menu__, '/compta/sociales/index.php?leftmenu=tax_social', 'SocialContributions', 1, '', '$user->rights->tax->charges->lire', '', 0, 1, __ENTITY__); insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && $leftmenu=="tax_social"', __HANDLER__, 'left', 2202__+MAX_llx_menu__, 'accountancy', '', 2201__+MAX_llx_menu__, '/compta/sociales/charges.php?leftmenu=tax_social&action=create', 'MenuNewSocialContribution', 2, '', '$user->rights->tax->charges->creer', '', 0, 2, __ENTITY__); insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && $leftmenu=="tax_social"', __HANDLER__, 'left', 2203__+MAX_llx_menu__, 'accountancy', '', 2201__+MAX_llx_menu__, '/compta/charges/index.php?leftmenu=tax_social&mainmenu=accountancy&mode=sconly', 'Payments', 2, '', '$user->rights->tax->charges->lire', '', 0, 3, __ENTITY__); -insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && $conf->compta->tva', __HANDLER__, 'left', 2300__+MAX_llx_menu__, 'accountancy', '', 2200__+MAX_llx_menu__, '/compta/tva/index.php?leftmenu=tax_vat&mainmenu=accountancy', 'VAT', 1, 'companies', '$user->rights->tax->charges->lire', '', 0, 7, __ENTITY__); -insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && $conf->compta->tva && $leftmenu=="tax_vat"', __HANDLER__, 'left', 2301__+MAX_llx_menu__, 'accountancy', '', 2300__+MAX_llx_menu__, '/compta/tva/fiche.php?leftmenu=tax_vat&action=create', 'NewPayment', 2, 'companies', '$user->rights->tax->charges->creer', '', 0, 0, __ENTITY__); -insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && $conf->compta->tva && $leftmenu=="tax_vat"', __HANDLER__, 'left', 2302__+MAX_llx_menu__, 'accountancy', '', 2300__+MAX_llx_menu__, '/compta/tva/reglement.php?leftmenu=tax_vat', 'Payments', 2, 'companies', '$user->rights->tax->charges->lire', '', 0, 1, __ENTITY__); -insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && $conf->compta->tva && $leftmenu=="tax_vat"', __HANDLER__, 'left', 2303__+MAX_llx_menu__, 'accountancy', '', 2300__+MAX_llx_menu__, '/compta/tva/clients.php?leftmenu=tax_vat', 'ReportByCustomers', 2, 'companies', '$user->rights->tax->charges->lire', '', 0, 2, __ENTITY__); -insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && $conf->compta->tva && $leftmenu=="tax_vat"', __HANDLER__, 'left', 2304__+MAX_llx_menu__, 'accountancy', '', 2300__+MAX_llx_menu__, '/compta/tva/quadri_detail.php?leftmenu=tax_vat', 'ReportByQuarter', 2, 'companies', '$user->rights->tax->charges->lire', '', 0, 3, __ENTITY__); +insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && empty($conf->global->TAX_DISABLE_VAT_MENUS)', __HANDLER__, 'left', 2300__+MAX_llx_menu__, 'accountancy', '', 2200__+MAX_llx_menu__, '/compta/tva/index.php?leftmenu=tax_vat&mainmenu=accountancy', 'VAT', 1, 'companies', '$user->rights->tax->charges->lire', '', 0, 7, __ENTITY__); +insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && empty($conf->global->TAX_DISABLE_VAT_MENUS) && $leftmenu=="tax_vat"', __HANDLER__, 'left', 2301__+MAX_llx_menu__, 'accountancy', '', 2300__+MAX_llx_menu__, '/compta/tva/fiche.php?leftmenu=tax_vat&action=create', 'NewPayment', 2, 'companies', '$user->rights->tax->charges->creer', '', 0, 0, __ENTITY__); +insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && empty($conf->global->TAX_DISABLE_VAT_MENUS) && $leftmenu=="tax_vat"', __HANDLER__, 'left', 2302__+MAX_llx_menu__, 'accountancy', '', 2300__+MAX_llx_menu__, '/compta/tva/reglement.php?leftmenu=tax_vat', 'Payments', 2, 'companies', '$user->rights->tax->charges->lire', '', 0, 1, __ENTITY__); +insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && empty($conf->global->TAX_DISABLE_VAT_MENUS) && $leftmenu=="tax_vat"', __HANDLER__, 'left', 2303__+MAX_llx_menu__, 'accountancy', '', 2300__+MAX_llx_menu__, '/compta/tva/clients.php?leftmenu=tax_vat', 'ReportByCustomers', 2, 'companies', '$user->rights->tax->charges->lire', '', 0, 2, __ENTITY__); +insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && empty($conf->global->TAX_DISABLE_VAT_MENUS) && $leftmenu=="tax_vat"', __HANDLER__, 'left', 2304__+MAX_llx_menu__, 'accountancy', '', 2300__+MAX_llx_menu__, '/compta/tva/quadri_detail.php?leftmenu=tax_vat', 'ReportByQuarter', 2, 'companies', '$user->rights->tax->charges->lire', '', 0, 3, __ENTITY__); insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->comptabilite->enabled && $conf->global->FACTURE_VENTILATION', __HANDLER__, 'left', 2400__+MAX_llx_menu__, 'accountancy', '', 6__+MAX_llx_menu__, '/compta/ventilation/index.php?leftmenu=ventil', 'Ventilation', 0, 'companies', '$user->rights->compta->ventilation->lire', '', 0, 8, __ENTITY__); insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->comptabilite->enabled && $conf->global->FACTURE_VENTILATION', __HANDLER__, 'left', 2401__+MAX_llx_menu__, 'accountancy', '', 2400__+MAX_llx_menu__, '/compta/ventilation/liste.php', 'ToDispatch', 1, 'companies', '$user->rights->compta->ventilation->lire', '', 0, 0, __ENTITY__); insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->comptabilite->enabled && $conf->global->FACTURE_VENTILATION', __HANDLER__, 'left', 2402__+MAX_llx_menu__, 'accountancy', '', 2400__+MAX_llx_menu__, '/compta/ventilation/lignes.php', 'Dispatched', 1, 'companies', '$user->rights->compta->ventilation->lire', '', 0, 1, __ENTITY__); diff --git a/htdocs/core/menus/init_menu_smartphone.sql b/htdocs/core/menus/init_menu_smartphone.sql index bf52845f1e9..8636d7ac607 100755 --- a/htdocs/core/menus/init_menu_smartphone.sql +++ b/htdocs/core/menus/init_menu_smartphone.sql @@ -196,11 +196,11 @@ insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled', __HANDLER__, 'left', 2201__+MAX_llx_menu__, 'accountancy', '', 2200__+MAX_llx_menu__, '/compta/sociales/index.php?leftmenu=tax_social', 'SocialContributions', 1, '', '$user->rights->tax->charges->lire', '', 0, 1, __ENTITY__); insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && $leftmenu=="tax_social"', __HANDLER__, 'left', 2202__+MAX_llx_menu__, 'accountancy', '', 2201__+MAX_llx_menu__, '/compta/sociales/charges.php?leftmenu=tax_social&action=create', 'MenuNewSocialContribution', 2, '', '$user->rights->tax->charges->creer', '', 0, 2, __ENTITY__); insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && $leftmenu=="tax_social"', __HANDLER__, 'left', 2203__+MAX_llx_menu__, 'accountancy', '', 2201__+MAX_llx_menu__, '/compta/charges/index.php?leftmenu=tax_social&mainmenu=accountancy&mode=sconly', 'Payments', 2, '', '$user->rights->tax->charges->lire', '', 0, 3, __ENTITY__); -insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && $conf->compta->tva', __HANDLER__, 'left', 2300__+MAX_llx_menu__, 'accountancy', '', 2200__+MAX_llx_menu__, '/compta/tva/index.php?leftmenu=tax_vat&mainmenu=accountancy', 'VAT', 1, 'companies', '$user->rights->tax->charges->lire', '', 0, 7, __ENTITY__); -insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && $conf->compta->tva && $leftmenu=="tax_vat"', __HANDLER__, 'left', 2301__+MAX_llx_menu__, 'accountancy', '', 2300__+MAX_llx_menu__, '/compta/tva/fiche.php?leftmenu=tax_vat&action=create', 'NewPayment', 2, 'companies', '$user->rights->tax->charges->creer', '', 0, 0, __ENTITY__); -insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && $conf->compta->tva && $leftmenu=="tax_vat"', __HANDLER__, 'left', 2302__+MAX_llx_menu__, 'accountancy', '', 2300__+MAX_llx_menu__, '/compta/tva/reglement.php?leftmenu=tax_vat', 'Payments', 2, 'companies', '$user->rights->tax->charges->lire', '', 0, 1, __ENTITY__); -insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && $conf->compta->tva && $leftmenu=="tax_vat"', __HANDLER__, 'left', 2303__+MAX_llx_menu__, 'accountancy', '', 2300__+MAX_llx_menu__, '/compta/tva/clients.php?leftmenu=tax_vat', 'ReportByCustomers', 2, 'companies', '$user->rights->tax->charges->lire', '', 0, 2, __ENTITY__); -insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && $conf->compta->tva && $leftmenu=="tax_vat"', __HANDLER__, 'left', 2304__+MAX_llx_menu__, 'accountancy', '', 2300__+MAX_llx_menu__, '/compta/tva/quadri_detail.php?leftmenu=tax_vat', 'ReportByQuarter', 2, 'companies', '$user->rights->tax->charges->lire', '', 0, 3, __ENTITY__); +insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && empty($conf->global->TAX_DISABLE_VAT_MENUS)', __HANDLER__, 'left', 2300__+MAX_llx_menu__, 'accountancy', '', 2200__+MAX_llx_menu__, '/compta/tva/index.php?leftmenu=tax_vat&mainmenu=accountancy', 'VAT', 1, 'companies', '$user->rights->tax->charges->lire', '', 0, 7, __ENTITY__); +insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && empty($conf->global->TAX_DISABLE_VAT_MENUS) && $leftmenu=="tax_vat"', __HANDLER__, 'left', 2301__+MAX_llx_menu__, 'accountancy', '', 2300__+MAX_llx_menu__, '/compta/tva/fiche.php?leftmenu=tax_vat&action=create', 'NewPayment', 2, 'companies', '$user->rights->tax->charges->creer', '', 0, 0, __ENTITY__); +insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && empty($conf->global->TAX_DISABLE_VAT_MENUS) && $leftmenu=="tax_vat"', __HANDLER__, 'left', 2302__+MAX_llx_menu__, 'accountancy', '', 2300__+MAX_llx_menu__, '/compta/tva/reglement.php?leftmenu=tax_vat', 'Payments', 2, 'companies', '$user->rights->tax->charges->lire', '', 0, 1, __ENTITY__); +insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && empty($conf->global->TAX_DISABLE_VAT_MENUS) && $leftmenu=="tax_vat"', __HANDLER__, 'left', 2303__+MAX_llx_menu__, 'accountancy', '', 2300__+MAX_llx_menu__, '/compta/tva/clients.php?leftmenu=tax_vat', 'ReportByCustomers', 2, 'companies', '$user->rights->tax->charges->lire', '', 0, 2, __ENTITY__); +insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->tax->enabled && empty($conf->global->TAX_DISABLE_VAT_MENUS) && $leftmenu=="tax_vat"', __HANDLER__, 'left', 2304__+MAX_llx_menu__, 'accountancy', '', 2300__+MAX_llx_menu__, '/compta/tva/quadri_detail.php?leftmenu=tax_vat', 'ReportByQuarter', 2, 'companies', '$user->rights->tax->charges->lire', '', 0, 3, __ENTITY__); insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->comptabilite->enabled && $conf->global->FACTURE_VENTILATION', __HANDLER__, 'left', 2400__+MAX_llx_menu__, 'accountancy', '', 6__+MAX_llx_menu__, '/compta/ventilation/index.php?leftmenu=ventil', 'Ventilation', 0, 'companies', '$user->rights->compta->ventilation->lire', '', 0, 8, __ENTITY__); insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->comptabilite->enabled && $conf->global->FACTURE_VENTILATION', __HANDLER__, 'left', 2401__+MAX_llx_menu__, 'accountancy', '', 2400__+MAX_llx_menu__, '/compta/ventilation/liste.php', 'ToDispatch', 1, 'companies', '$user->rights->compta->ventilation->lire', '', 0, 0, __ENTITY__); insert into llx_menu (enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('$conf->comptabilite->enabled && $conf->global->FACTURE_VENTILATION', __HANDLER__, 'left', 2402__+MAX_llx_menu__, 'accountancy', '', 2400__+MAX_llx_menu__, '/compta/ventilation/lignes.php', 'Dispatched', 1, 'companies', '$user->rights->compta->ventilation->lire', '', 0, 1, __ENTITY__); diff --git a/htdocs/core/menus/standard/eldy.lib.php b/htdocs/core/menus/standard/eldy.lib.php index fef135ddf43..2c6ab43242c 100644 --- a/htdocs/core/menus/standard/eldy.lib.php +++ b/htdocs/core/menus/standard/eldy.lib.php @@ -441,7 +441,7 @@ function print_eldy_menu($db,$atarget,$type_user) $menuArbo = new Menubase($db,'eldy','top'); $newTabMenu = $menuArbo->menuTopCharger($_SESSION['mainmenu'],'',$type_user,'eldy'); - + $num = count($newTabMenu); for($i = 0; $i < $num; $i++) { @@ -934,7 +934,7 @@ function print_left_eldy_menu($db,$menu_array_before,$menu_array_after) if (preg_match('/^tax/i',$leftmenu)) $newmenu->add("/compta/sociales/charges.php?leftmenu=tax_social&action=create",$langs->trans("MenuNewSocialContribution"), 2, $user->rights->tax->charges->creer); if (preg_match('/^tax/i',$leftmenu)) $newmenu->add("/compta/charges/index.php?leftmenu=tax_social&mainmenu=accountancy&mode=sconly",$langs->trans("Payments"), 2, $user->rights->tax->charges->lire); // VAT - if ($conf->compta->tva) + if (empty($conf->global->TAX_DISABLE_VAT_MENUS)) { if (preg_match('/^tax/i',$leftmenu)) $newmenu->add("/compta/tva/index.php?leftmenu=tax_vat&mainmenu=accountancy",$langs->trans("VAT"),1,$user->rights->tax->charges->lire); if (preg_match('/^tax/i',$leftmenu)) $newmenu->add("/compta/tva/fiche.php?leftmenu=tax_vat&action=create",$langs->trans("NewPayment"),2,$user->rights->tax->charges->creer); @@ -942,7 +942,7 @@ function print_left_eldy_menu($db,$menu_array_before,$menu_array_after) if (preg_match('/^tax/i',$leftmenu)) $newmenu->add("/compta/tva/clients.php?leftmenu=tax_vat", $langs->trans("ReportByCustomers"), 2, $user->rights->tax->charges->lire); if (preg_match('/^tax/i',$leftmenu)) $newmenu->add("/compta/tva/quadri_detail.php?leftmenu=tax_vat", $langs->trans("ReportByQuarter"), 2, $user->rights->tax->charges->lire); global $mysoc; - + //Local Taxes if($mysoc->pays_code=='ES' && $mysoc->localtax2_assuj=="1") { @@ -952,9 +952,9 @@ function print_left_eldy_menu($db,$menu_array_before,$menu_array_after) if (preg_match('/^tax/i',$leftmenu)) $newmenu->add("/compta/localtax/clients.php?leftmenu=tax_vat", $langs->trans("ReportByCustomers"), 2, $user->rights->tax->charges->lire); //if (preg_match('/^tax/i',$leftmenu)) $newmenu->add("/compta/localtax/quadri_detail.php?leftmenu=tax_vat", $langs->trans("ReportByQuarter"), 2, $user->rights->tax->charges->lire); } - + } - + } // Compta simple diff --git a/htdocs/core/tpl/login.tpl.php b/htdocs/core/tpl/login.tpl.php index 555180228e2..f4c5e9746ba 100644 --- a/htdocs/core/tpl/login.tpl.php +++ b/htdocs/core/tpl/login.tpl.php @@ -49,7 +49,7 @@ header("Content-type: text/html; charset=".$conf->file->character_set_client); } --> -global->MAIN_HTML_HEADER ?> +global->MAIN_HTML_HEADER)) print $conf->global->MAIN_HTML_HEADER; ?> diff --git a/htdocs/install/mysql/migration/2.1.0-2.2.0.sql b/htdocs/install/mysql/migration/2.1.0-2.2.0.sql index 94c612a099e..fc8540e2e64 100644 --- a/htdocs/install/mysql/migration/2.1.0-2.2.0.sql +++ b/htdocs/install/mysql/migration/2.1.0-2.2.0.sql @@ -509,7 +509,7 @@ insert into `llx_menu_constraint` (`rowid`, `action`) values (14, '! $conf->glob insert into `llx_menu_constraint` (`rowid`, `action`) values (15, '$conf->don->enabled'); insert into `llx_menu_constraint` (`rowid`, `action`) values (16, '$conf->deplacement->enabled'); insert into `llx_menu_constraint` (`rowid`, `action`) values (17, '$conf->tax->enabled'); -insert into `llx_menu_constraint` (`rowid`, `action`) values (18, '($conf->compta->enabled || $conf->comptaexpert->enabled) && $conf->compta->tva && $user->societe_id == 0'); +insert into `llx_menu_constraint` (`rowid`, `action`) values (18, '($conf->compta->enabled || $conf->comptaexpert->enabled) && empty($conf->global->TAX_DISABLE_VAT_MENUS) && $user->societe_id == 0'); insert into `llx_menu_constraint` (`rowid`, `action`) values (19, '$conf->compta-enabled'); insert into `llx_menu_constraint` (`rowid`, `action`) values (20, '$conf->prelevement->enabled'); insert into `llx_menu_constraint` (`rowid`, `action`) values (21, '$conf->banque->enabled'); From 7e1715d02575a0b3b73e3f341b303bd3c0266a24 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 30 Oct 2011 18:24:59 +0100 Subject: [PATCH 26/35] Avoid having duplicate translations --- htdocs/core/js/datepicker.js | 14 ---- htdocs/core/js/datepicker.js.php | 65 +++++++++++++++++++ htdocs/langs/ca_ES/js/jquery.ui.datepicker.js | 23 ------- htdocs/langs/da_DK/js/jquery.ui.datepicker.js | 23 ------- htdocs/langs/de_DE/js/jquery.ui.datepicker.js | 23 ------- htdocs/langs/el_GR/js/jquery.ui.datepicker.js | 23 ------- htdocs/langs/en_AU/js/jquery.ui.datepicker.js | 23 ------- htdocs/langs/en_GB/js/jquery.ui.datepicker.js | 23 ------- htdocs/langs/en_NZ/js/jquery.ui.datepicker.js | 23 ------- htdocs/langs/es_ES/js/jquery.ui.datepicker.js | 23 ------- htdocs/langs/fa_IR/js/jquery.ui.datepicker.js | 23 ------- htdocs/langs/fi_FI/js/jquery.ui.datepicker.js | 23 ------- htdocs/langs/fr_CH/js/jquery.ui.datepicker.js | 23 ------- htdocs/langs/fr_FR/js/jquery.ui.datepicker.js | 25 ------- htdocs/langs/hu_HU/js/jquery.ui.datepicker.js | 23 ------- htdocs/langs/is_IS/js/jquery.ui.datepicker.js | 23 ------- htdocs/langs/it_IT/js/jquery.ui.datepicker.js | 23 ------- htdocs/langs/ja_JP/js/jquery.ui.datepicker.js | 23 ------- htdocs/langs/nb_NO/js/jquery.ui.datepicker.js | 23 ------- htdocs/langs/nl_NL/js/jquery.ui.datepicker.js | 23 ------- htdocs/langs/pl_PL/js/jquery.ui.datepicker.js | 23 ------- htdocs/langs/pt_BR/js/jquery.ui.datepicker.js | 23 ------- htdocs/langs/pt_PT/js/jquery.ui.datepicker.js | 22 ------- htdocs/langs/ro_RO/js/jquery.ui.datepicker.js | 26 -------- htdocs/langs/ru_RU/js/jquery.ui.datepicker.js | 23 ------- htdocs/langs/sl_SI/js/jquery.ui.datepicker.js | 24 ------- htdocs/langs/sv_SE/js/jquery.ui.datepicker.js | 23 ------- htdocs/langs/tr_TR/js/jquery.ui.datepicker.js | 23 ------- htdocs/langs/zh_CN/js/jquery.ui.datepicker.js | 23 ------- htdocs/main.inc.php | 4 +- 30 files changed, 66 insertions(+), 643 deletions(-) delete mode 100644 htdocs/core/js/datepicker.js create mode 100644 htdocs/core/js/datepicker.js.php delete mode 100644 htdocs/langs/ca_ES/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/da_DK/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/de_DE/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/el_GR/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/en_AU/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/en_GB/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/en_NZ/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/es_ES/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/fa_IR/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/fi_FI/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/fr_CH/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/fr_FR/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/hu_HU/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/is_IS/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/it_IT/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/ja_JP/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/nb_NO/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/nl_NL/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/pl_PL/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/pt_BR/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/pt_PT/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/ro_RO/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/ru_RU/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/sl_SI/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/sv_SE/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/tr_TR/js/jquery.ui.datepicker.js delete mode 100644 htdocs/langs/zh_CN/js/jquery.ui.datepicker.js diff --git a/htdocs/core/js/datepicker.js b/htdocs/core/js/datepicker.js deleted file mode 100644 index 4af0dbd5ad4..00000000000 --- a/htdocs/core/js/datepicker.js +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (C) 2011 Regis Houssin -// -// Script javascript that contains functions for datepicker default options -// -// \file htdocs/core/js/jnotify.js -// \brief File that include javascript functions for datepicker default options - - -$(document).ready(function() { - $.datepicker.setDefaults({ - altField: '#timeStamp', - altFormat: '@' // Gives a timestamp dateformat - }); -}); \ No newline at end of file diff --git a/htdocs/core/js/datepicker.js.php b/htdocs/core/js/datepicker.js.php new file mode 100644 index 00000000000..634001eaf35 --- /dev/null +++ b/htdocs/core/js/datepicker.js.php @@ -0,0 +1,65 @@ + + * + * Script javascript that contains functions for datepicker default options + */ + +/** + * \file htdocs/core/js/datepicker.js.php + * \brief File that include javascript functions for datepicker default options + */ + +//if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); // Not disabled cause need to load personalized language +//if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); +if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1'); +//if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // Not disabled cause need to do translations +if (! defined('NOCSRFCHECK')) define('NOCSRFCHECK',1); +if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL',1); +if (! defined('NOLOGIN')) define('NOLOGIN',1); +if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU',1); +if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML',1); +if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1'); + +session_cache_limiter(FALSE); + +require_once("../../main.inc.php"); +?> + + +$(document).ready(function() { + $.datepicker.setDefaults({ + altField: '#timeStamp', + altFormat: '@' // Gives a timestamp dateformat + }); +}); + +jQuery(function($){ + $.datepicker.regional['defaultlang ?>'] = { + closeText: 'transnoentitiesnoconv("Close")) ?>', + prevText: 'transnoentitiesnoconv("Previous")) ?>', + nextText: 'transnoentitiesnoconv("Next")) ?>', + currentText: 'transnoentitiesnoconv("January")) ?>', + monthNames: [transnoentitiesnoconv("January")."',". + "'".$langs->transnoentitiesnoconv("February")."',". + "'".$langs->transnoentitiesnoconv("March")."',". + "'".$langs->transnoentitiesnoconv("April")."',". + "'".$langs->transnoentitiesnoconv("May")."',". + "'".$langs->transnoentitiesnoconv("June")."',". + "'".$langs->transnoentitiesnoconv("July")."',". + "'".$langs->transnoentitiesnoconv("August")."',". + "'".$langs->transnoentitiesnoconv("September")."',". + "'".$langs->transnoentitiesnoconv("October")."',". + "'".$langs->transnoentitiesnoconv("November")."',". + "'".$langs->transnoentitiesnoconv("December")."'" ?>], + monthNamesShort: ['Janv.','Févr.','Mars','Avril','Mai','Juin','Juil.','Août','Sept.','Oct.','Nov.','Déc.'], + dayNames: ['transnoentitiesnoconv("Sunday")) ?>','transnoentitiesnoconv("Monday")) ?>','transnoentitiesnoconv("Tuesday")) ?>','transnoentitiesnoconv("Wednesday")) ?>','transnoentitiesnoconv("Thursday")) ?>','transnoentitiesnoconv("Friday")) ?>','transnoentitiesnoconv("Saturday")) ?>'], + dayNamesShort: ['transnoentitiesnoconv("SundayMin")) ?>','transnoentitiesnoconv("MondayMin")) ?>','transnoentitiesnoconv("TuesdayMin")) ?>','transnoentitiesnoconv("WednesdayMin")) ?>','transnoentitiesnoconv("ThursdayMin")) ?>','transnoentitiesnoconv("FridayMin")) ?>','transnoentitiesnoconv("SaturdayMin")) ?>'], + dayNamesMin: ['transnoentitiesnoconv("ShortSunday")) ?>','transnoentitiesnoconv("ShortMonday")) ?>','transnoentitiesnoconv("ShortTuesday")) ?>','transnoentitiesnoconv("ShortWednesday")) ?>','transnoentitiesnoconv("ShortThursday")) ?>','transnoentitiesnoconv("ShortFriday")) ?>','transnoentitiesnoconv("ShortSaturday")) ?>'], + weekHeader: 'Sem.', + dateFormat: 'transnoentitiesnoconv("FormatDateShortJQuery"); ?>', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['defaultlang ?>']); +}); diff --git a/htdocs/langs/ca_ES/js/jquery.ui.datepicker.js b/htdocs/langs/ca_ES/js/jquery.ui.datepicker.js deleted file mode 100644 index 23c5c8c8151..00000000000 --- a/htdocs/langs/ca_ES/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Inicialització en català per a l'extenció 'calendar' per jQuery. */ -/* Writers: (joan.leon@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['ca'] = { - closeText: 'Tancar', - prevText: '<Ant', - nextText: 'Seg>', - currentText: 'Avui', - monthNames: ['Gener','Febrer','Març','Abril','Maig','Juny', - 'Juliol','Agost','Setembre','Octubre','Novembre','Desembre'], - monthNamesShort: ['Gen','Feb','Mar','Abr','Mai','Jun', - 'Jul','Ago','Set','Oct','Nov','Des'], - dayNames: ['Diumenge','Dilluns','Dimarts','Dimecres','Dijous','Divendres','Dissabte'], - dayNamesShort: ['Dug','Dln','Dmt','Dmc','Djs','Dvn','Dsb'], - dayNamesMin: ['Dg','Dl','Dt','Dc','Dj','Dv','Ds'], - weekHeader: 'Sm', - dateFormat: 'dd/mm/yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ca']); -}); \ No newline at end of file diff --git a/htdocs/langs/da_DK/js/jquery.ui.datepicker.js b/htdocs/langs/da_DK/js/jquery.ui.datepicker.js deleted file mode 100644 index fb2d3356d78..00000000000 --- a/htdocs/langs/da_DK/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Danish initialisation for the jQuery UI date picker plugin. */ -/* Written by Jan Christensen ( deletestuff@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['da'] = { - closeText: 'Luk', - prevText: '<Forrige', - nextText: 'Næste>', - currentText: 'Idag', - monthNames: ['Januar','Februar','Marts','April','Maj','Juni', - 'Juli','August','September','Oktober','November','December'], - monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', - 'Jul','Aug','Sep','Okt','Nov','Dec'], - dayNames: ['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'], - dayNamesShort: ['Søn','Man','Tir','Ons','Tor','Fre','Lør'], - dayNamesMin: ['Sø','Ma','Ti','On','To','Fr','Lø'], - weekHeader: 'Uge', - dateFormat: 'dd-mm-yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['da']); -}); diff --git a/htdocs/langs/de_DE/js/jquery.ui.datepicker.js b/htdocs/langs/de_DE/js/jquery.ui.datepicker.js deleted file mode 100644 index 52d6c82ce97..00000000000 --- a/htdocs/langs/de_DE/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* German initialisation for the jQuery UI date picker plugin. */ -/* Written by Milian Wolff (mail@milianw.de). */ -jQuery(function($){ - $.datepicker.regional['de'] = { - closeText: 'schließen', - prevText: '<zurück', - nextText: 'Vor>', - currentText: 'heute', - monthNames: ['Januar','Februar','März','April','Mai','Juni', - 'Juli','August','September','Oktober','November','Dezember'], - monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun', - 'Jul','Aug','Sep','Okt','Nov','Dez'], - dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], - dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], - dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], - weekHeader: 'Wo', - dateFormat: 'dd.mm.yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['de']); -}); diff --git a/htdocs/langs/el_GR/js/jquery.ui.datepicker.js b/htdocs/langs/el_GR/js/jquery.ui.datepicker.js deleted file mode 100644 index 6d775f995f9..00000000000 --- a/htdocs/langs/el_GR/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Greek (el) initialisation for the jQuery UI date picker plugin. */ -/* Written by Alex Cicovic (http://www.alexcicovic.com) */ -jQuery(function($){ - $.datepicker.regional['el'] = { - closeText: 'Κλείσιμο', - prevText: 'Προηγούμενος', - nextText: 'Επόμενος', - currentText: 'Τρέχων Μήνας', - monthNames: ['Ιανουάριος','Φεβρουάριος','Μάρτιος','Απρίλιος','Μάιος','Ιούνιος', - 'Ιούλιος','Αύγουστος','Σεπτέμβριος','Οκτώβριος','Νοέμβριος','Δεκέμβριος'], - monthNamesShort: ['Ιαν','Φεβ','Μαρ','Απρ','Μαι','Ιουν', - 'Ιουλ','Αυγ','Σεπ','Οκτ','Νοε','Δεκ'], - dayNames: ['Κυριακή','Δευτέρα','Τρίτη','Τετάρτη','Πέμπτη','Παρασκευή','Σάββατο'], - dayNamesShort: ['Κυρ','Δευ','Τρι','Τετ','Πεμ','Παρ','Σαβ'], - dayNamesMin: ['Κυ','Δε','Τρ','Τε','Πε','Πα','Σα'], - weekHeader: 'Εβδ', - dateFormat: 'dd/mm/yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['el']); -}); \ No newline at end of file diff --git a/htdocs/langs/en_AU/js/jquery.ui.datepicker.js b/htdocs/langs/en_AU/js/jquery.ui.datepicker.js deleted file mode 100644 index c1a1020a140..00000000000 --- a/htdocs/langs/en_AU/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* English/Australia initialisation for the jQuery UI date picker plugin. */ -/* Based on the en-GB initialisation. */ -jQuery(function($){ - $.datepicker.regional['en-AU'] = { - closeText: 'Done', - prevText: 'Prev', - nextText: 'Next', - currentText: 'Today', - monthNames: ['January','February','March','April','May','June', - 'July','August','September','October','November','December'], - monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', - 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], - dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], - dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], - dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'], - weekHeader: 'Wk', - dateFormat: 'dd/mm/yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['en-AU']); -}); diff --git a/htdocs/langs/en_GB/js/jquery.ui.datepicker.js b/htdocs/langs/en_GB/js/jquery.ui.datepicker.js deleted file mode 100644 index 16a096e758a..00000000000 --- a/htdocs/langs/en_GB/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* English/UK initialisation for the jQuery UI date picker plugin. */ -/* Written by Stuart. */ -jQuery(function($){ - $.datepicker.regional['en-GB'] = { - closeText: 'Done', - prevText: 'Prev', - nextText: 'Next', - currentText: 'Today', - monthNames: ['January','February','March','April','May','June', - 'July','August','September','October','November','December'], - monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', - 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], - dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], - dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], - dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'], - weekHeader: 'Wk', - dateFormat: 'dd/mm/yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['en-GB']); -}); diff --git a/htdocs/langs/en_NZ/js/jquery.ui.datepicker.js b/htdocs/langs/en_NZ/js/jquery.ui.datepicker.js deleted file mode 100644 index 7819df05286..00000000000 --- a/htdocs/langs/en_NZ/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* English/New Zealand initialisation for the jQuery UI date picker plugin. */ -/* Based on the en-GB initialisation. */ -jQuery(function($){ - $.datepicker.regional['en-NZ'] = { - closeText: 'Done', - prevText: 'Prev', - nextText: 'Next', - currentText: 'Today', - monthNames: ['January','February','March','April','May','June', - 'July','August','September','October','November','December'], - monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', - 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], - dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], - dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], - dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'], - weekHeader: 'Wk', - dateFormat: 'dd/mm/yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['en-NZ']); -}); diff --git a/htdocs/langs/es_ES/js/jquery.ui.datepicker.js b/htdocs/langs/es_ES/js/jquery.ui.datepicker.js deleted file mode 100644 index 5f90cb50640..00000000000 --- a/htdocs/langs/es_ES/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Inicialización en español para la extensión 'UI date picker' para jQuery. */ -/* Traducido por Vester (xvester@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['es'] = { - closeText: 'Cerrar', - prevText: '<Ant', - nextText: 'Sig>', - currentText: 'Hoy', - monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio', - 'Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'], - monthNamesShort: ['Ene','Feb','Mar','Abr','May','Jun', - 'Jul','Ago','Sep','Oct','Nov','Dic'], - dayNames: ['Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado'], - dayNamesShort: ['Dom','Lun','Mar','Mié','Juv','Vie','Sáb'], - dayNamesMin: ['Do','Lu','Ma','Mi','Ju','Vi','Sá'], - weekHeader: 'Sm', - dateFormat: 'dd/mm/yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['es']); -}); \ No newline at end of file diff --git a/htdocs/langs/fa_IR/js/jquery.ui.datepicker.js b/htdocs/langs/fa_IR/js/jquery.ui.datepicker.js deleted file mode 100644 index 1d7fbd23c74..00000000000 --- a/htdocs/langs/fa_IR/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Persian (Farsi) Translation for the jQuery UI date picker plugin. */ -/* Javad Mowlanezhad -- jmowla@gmail.com */ -/* Jalali calendar should supported soon! (Its implemented but I have to test it) */ -jQuery(function($) { - $.datepicker.regional['fa'] = { - closeText: 'بستن', - prevText: '<قبلي', - nextText: 'بعدي>', - currentText: 'امروز', - monthNames: ['فروردين','ارديبهشت','خرداد','تير','مرداد','شهريور', - 'مهر','آبان','آذر','دي','بهمن','اسفند'], - monthNamesShort: ['1','2','3','4','5','6','7','8','9','10','11','12'], - dayNames: ['يکشنبه','دوشنبه','سه‌شنبه','چهارشنبه','پنجشنبه','جمعه','شنبه'], - dayNamesShort: ['ي','د','س','چ','پ','ج', 'ش'], - dayNamesMin: ['ي','د','س','چ','پ','ج', 'ش'], - weekHeader: 'هف', - dateFormat: 'yy/mm/dd', - firstDay: 6, - isRTL: true, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['fa']); -}); \ No newline at end of file diff --git a/htdocs/langs/fi_FI/js/jquery.ui.datepicker.js b/htdocs/langs/fi_FI/js/jquery.ui.datepicker.js deleted file mode 100644 index ece04e3b254..00000000000 --- a/htdocs/langs/fi_FI/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Finnish initialisation for the jQuery UI date picker plugin. */ -/* Written by Harri Kilpi� (harrikilpio@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['fi'] = { - closeText: 'Sulje', - prevText: '«Edellinen', - nextText: 'Seuraava»', - currentText: 'Tänään', - monthNames: ['Tammikuu','Helmikuu','Maaliskuu','Huhtikuu','Toukokuu','Kesäkuu', - 'Heinäkuu','Elokuu','Syyskuu','Lokakuu','Marraskuu','Joulukuu'], - monthNamesShort: ['Tammi','Helmi','Maalis','Huhti','Touko','Kesä', - 'Heinä','Elo','Syys','Loka','Marras','Joulu'], - dayNamesShort: ['Su','Ma','Ti','Ke','To','Pe','Su'], - dayNames: ['Sunnuntai','Maanantai','Tiistai','Keskiviikko','Torstai','Perjantai','Lauantai'], - dayNamesMin: ['Su','Ma','Ti','Ke','To','Pe','La'], - weekHeader: 'Vk', - dateFormat: 'dd.mm.yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['fi']); -}); diff --git a/htdocs/langs/fr_CH/js/jquery.ui.datepicker.js b/htdocs/langs/fr_CH/js/jquery.ui.datepicker.js deleted file mode 100644 index fec03a042f2..00000000000 --- a/htdocs/langs/fr_CH/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Swiss-French initialisation for the jQuery UI date picker plugin. */ -/* Written Martin Voelkle (martin.voelkle@e-tc.ch). */ -jQuery(function($){ - $.datepicker.regional['fr-CH'] = { - closeText: 'Fermer', - prevText: '<Préc', - nextText: 'Suiv>', - currentText: 'Courant', - monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin', - 'Juillet','Août','Septembre','Octobre','Novembre','Décembre'], - monthNamesShort: ['Jan','Fév','Mar','Avr','Mai','Jun', - 'Jul','Aoû','Sep','Oct','Nov','Déc'], - dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'], - dayNamesShort: ['Dim','Lun','Mar','Mer','Jeu','Ven','Sam'], - dayNamesMin: ['Di','Lu','Ma','Me','Je','Ve','Sa'], - weekHeader: 'Sm', - dateFormat: 'dd.mm.yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['fr-CH']); -}); \ No newline at end of file diff --git a/htdocs/langs/fr_FR/js/jquery.ui.datepicker.js b/htdocs/langs/fr_FR/js/jquery.ui.datepicker.js deleted file mode 100644 index 7e793639f5f..00000000000 --- a/htdocs/langs/fr_FR/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,25 +0,0 @@ -/* French initialisation for the jQuery UI date picker plugin. */ -/* Written by Keith Wood (kbwood{at}iinet.com.au), - Stéphane Nahmani (sholby@sholby.net), - Stéphane Raimbault */ -jQuery(function($){ - $.datepicker.regional['fr'] = { - closeText: 'Fermer', - prevText: 'Précédent', - nextText: 'Suivant', - currentText: 'Aujourd\'hui', - monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin', - 'Juillet','Août','Septembre','Octobre','Novembre','Décembre'], - monthNamesShort: ['Janv.','Févr.','Mars','Avril','Mai','Juin', - 'Juil.','Août','Sept.','Oct.','Nov.','Déc.'], - dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'], - dayNamesShort: ['Dim.','Lun.','Mar.','Mer.','Jeu.','Ven.','Sam.'], - dayNamesMin: ['D','L','M','M','J','V','S'], - weekHeader: 'Sem.', - dateFormat: 'dd/mm/yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['fr']); -}); diff --git a/htdocs/langs/hu_HU/js/jquery.ui.datepicker.js b/htdocs/langs/hu_HU/js/jquery.ui.datepicker.js deleted file mode 100644 index b28c268c1c4..00000000000 --- a/htdocs/langs/hu_HU/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Hungarian initialisation for the jQuery UI date picker plugin. */ -/* Written by Istvan Karaszi (jquery@spam.raszi.hu). */ -jQuery(function($){ - $.datepicker.regional['hu'] = { - closeText: 'bezár', - prevText: 'vissza', - nextText: 'előre', - currentText: 'ma', - monthNames: ['Január', 'Február', 'Március', 'Április', 'Május', 'Június', - 'Július', 'Augusztus', 'Szeptember', 'Október', 'November', 'December'], - monthNamesShort: ['Jan', 'Feb', 'Már', 'Ápr', 'Máj', 'Jún', - 'Júl', 'Aug', 'Szep', 'Okt', 'Nov', 'Dec'], - dayNames: ['Vasárnap', 'Hétfő', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombat'], - dayNamesShort: ['Vas', 'Hét', 'Ked', 'Sze', 'Csü', 'Pén', 'Szo'], - dayNamesMin: ['V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'], - weekHeader: 'Hét', - dateFormat: 'yy.mm.dd.', - firstDay: 1, - isRTL: false, - showMonthAfterYear: true, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['hu']); -}); diff --git a/htdocs/langs/is_IS/js/jquery.ui.datepicker.js b/htdocs/langs/is_IS/js/jquery.ui.datepicker.js deleted file mode 100644 index b52959a0377..00000000000 --- a/htdocs/langs/is_IS/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Icelandic initialisation for the jQuery UI date picker plugin. */ -/* Written by Haukur H. Thorsson (haukur@eskill.is). */ -jQuery(function($){ - $.datepicker.regional['is'] = { - closeText: 'Loka', - prevText: '< Fyrri', - nextText: 'Næsti >', - currentText: 'Í dag', - monthNames: ['Janúar','Febrúar','Mars','Apríl','Maí','Júní', - 'Júlí','Ágúst','September','Október','Nóvember','Desember'], - monthNamesShort: ['Jan','Feb','Mar','Apr','Maí','Jún', - 'Júl','Ágú','Sep','Okt','Nóv','Des'], - dayNames: ['Sunnudagur','Mánudagur','Þriðjudagur','Miðvikudagur','Fimmtudagur','Föstudagur','Laugardagur'], - dayNamesShort: ['Sun','Mán','Þri','Mið','Fim','Fös','Lau'], - dayNamesMin: ['Su','Má','Þr','Mi','Fi','Fö','La'], - weekHeader: 'Vika', - dateFormat: 'dd/mm/yy', - firstDay: 0, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['is']); -}); \ No newline at end of file diff --git a/htdocs/langs/it_IT/js/jquery.ui.datepicker.js b/htdocs/langs/it_IT/js/jquery.ui.datepicker.js deleted file mode 100644 index ebca1663798..00000000000 --- a/htdocs/langs/it_IT/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Italian initialisation for the jQuery UI date picker plugin. */ -/* Written by Antonello Pasella (antonello.pasella@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['it'] = { - closeText: 'Chiudi', - prevText: '<Prec', - nextText: 'Succ>', - currentText: 'Oggi', - monthNames: ['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno', - 'Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'], - monthNamesShort: ['Gen','Feb','Mar','Apr','Mag','Giu', - 'Lug','Ago','Set','Ott','Nov','Dic'], - dayNames: ['Domenica','Lunedì','Martedì','Mercoledì','Giovedì','Venerdì','Sabato'], - dayNamesShort: ['Dom','Lun','Mar','Mer','Gio','Ven','Sab'], - dayNamesMin: ['Do','Lu','Ma','Me','Gi','Ve','Sa'], - weekHeader: 'Sm', - dateFormat: 'dd/mm/yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['it']); -}); diff --git a/htdocs/langs/ja_JP/js/jquery.ui.datepicker.js b/htdocs/langs/ja_JP/js/jquery.ui.datepicker.js deleted file mode 100644 index afd2983157d..00000000000 --- a/htdocs/langs/ja_JP/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Japanese initialisation for the jQuery UI date picker plugin. */ -/* Written by Kentaro SATO (kentaro@ranvis.com). */ -jQuery(function($){ - $.datepicker.regional['ja'] = { - closeText: '閉じる', - prevText: '<前', - nextText: '次>', - currentText: '今日', - monthNames: ['1月','2月','3月','4月','5月','6月', - '7月','8月','9月','10月','11月','12月'], - monthNamesShort: ['1月','2月','3月','4月','5月','6月', - '7月','8月','9月','10月','11月','12月'], - dayNames: ['日曜日','月曜日','火曜日','水曜日','木曜日','金曜日','土曜日'], - dayNamesShort: ['日','月','火','水','木','金','土'], - dayNamesMin: ['日','月','火','水','木','金','土'], - weekHeader: '週', - dateFormat: 'yy/mm/dd', - firstDay: 0, - isRTL: false, - showMonthAfterYear: true, - yearSuffix: '年'}; - $.datepicker.setDefaults($.datepicker.regional['ja']); -}); \ No newline at end of file diff --git a/htdocs/langs/nb_NO/js/jquery.ui.datepicker.js b/htdocs/langs/nb_NO/js/jquery.ui.datepicker.js deleted file mode 100644 index 9590592f8e8..00000000000 --- a/htdocs/langs/nb_NO/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Norwegian initialisation for the jQuery UI date picker plugin. */ -/* Written by Naimdjon Takhirov (naimdjon@gmail.com). */ - -jQuery(function($){ - $.datepicker.regional['no'] = { - closeText: 'Lukk', - prevText: '«Forrige', - nextText: 'Neste»', - currentText: 'I dag', - monthNames: ['januar','februar','mars','april','mai','juni','juli','august','september','oktober','november','desember'], - monthNamesShort: ['jan','feb','mar','apr','mai','jun','jul','aug','sep','okt','nov','des'], - dayNamesShort: ['søn','man','tir','ons','tor','fre','lør'], - dayNames: ['søndag','mandag','tirsdag','onsdag','torsdag','fredag','lørdag'], - dayNamesMin: ['sø','ma','ti','on','to','fr','lø'], - weekHeader: 'Uke', - dateFormat: 'dd.mm.yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: '' - }; - $.datepicker.setDefaults($.datepicker.regional['no']); -}); diff --git a/htdocs/langs/nl_NL/js/jquery.ui.datepicker.js b/htdocs/langs/nl_NL/js/jquery.ui.datepicker.js deleted file mode 100644 index 781fe619176..00000000000 --- a/htdocs/langs/nl_NL/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Dutch (UTF-8) initialisation for the jQuery UI date picker plugin. */ -/* Written by Mathias Bynens */ -jQuery(function($){ - $.datepicker.regional.nl = { - closeText: 'Sluiten', - prevText: '←', - nextText: '→', - currentText: 'Vandaag', - monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', - 'juli', 'augustus', 'september', 'oktober', 'november', 'december'], - monthNamesShort: ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun', - 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'], - dayNames: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'], - dayNamesShort: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'], - dayNamesMin: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], - weekHeader: 'Wk', - dateFormat: 'dd-mm-yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional.nl); -}); \ No newline at end of file diff --git a/htdocs/langs/pl_PL/js/jquery.ui.datepicker.js b/htdocs/langs/pl_PL/js/jquery.ui.datepicker.js deleted file mode 100644 index 0ffc515b95b..00000000000 --- a/htdocs/langs/pl_PL/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Polish initialisation for the jQuery UI date picker plugin. */ -/* Written by Jacek Wysocki (jacek.wysocki@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['pl'] = { - closeText: 'Zamknij', - prevText: '<Poprzedni', - nextText: 'Następny>', - currentText: 'Dziś', - monthNames: ['Styczeń','Luty','Marzec','Kwiecień','Maj','Czerwiec', - 'Lipiec','Sierpień','Wrzesień','Październik','Listopad','Grudzień'], - monthNamesShort: ['Sty','Lu','Mar','Kw','Maj','Cze', - 'Lip','Sie','Wrz','Pa','Lis','Gru'], - dayNames: ['Niedziela','Poniedziałek','Wtorek','Środa','Czwartek','Piątek','Sobota'], - dayNamesShort: ['Nie','Pn','Wt','Śr','Czw','Pt','So'], - dayNamesMin: ['N','Pn','Wt','Śr','Cz','Pt','So'], - weekHeader: 'Tydz', - dateFormat: 'dd.mm.yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['pl']); -}); diff --git a/htdocs/langs/pt_BR/js/jquery.ui.datepicker.js b/htdocs/langs/pt_BR/js/jquery.ui.datepicker.js deleted file mode 100644 index b2d61f62e76..00000000000 --- a/htdocs/langs/pt_BR/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Brazilian initialisation for the jQuery UI date picker plugin. */ -/* Written by Leonildo Costa Silva (leocsilva@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['pt-BR'] = { - closeText: 'Fechar', - prevText: '<Anterior', - nextText: 'Próximo>', - currentText: 'Hoje', - monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho', - 'Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'], - monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun', - 'Jul','Ago','Set','Out','Nov','Dez'], - dayNames: ['Domingo','Segunda-feira','Terça-feira','Quarta-feira','Quinta-feira','Sexta-feira','Sábado'], - dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'], - dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'], - weekHeader: 'Sm', - dateFormat: 'dd/mm/yy', - firstDay: 0, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['pt-BR']); -}); \ No newline at end of file diff --git a/htdocs/langs/pt_PT/js/jquery.ui.datepicker.js b/htdocs/langs/pt_PT/js/jquery.ui.datepicker.js deleted file mode 100644 index 9ec5a6228cb..00000000000 --- a/htdocs/langs/pt_PT/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,22 +0,0 @@ -/* Portuguese initialisation for the jQuery UI date picker plugin. */ -jQuery(function($){ - $.datepicker.regional['pt'] = { - closeText: 'Fechar', - prevText: '<Anterior', - nextText: 'Seguinte', - currentText: 'Hoje', - monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho', - 'Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'], - monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun', - 'Jul','Ago','Set','Out','Nov','Dez'], - dayNames: ['Domingo','Segunda-feira','Terça-feira','Quarta-feira','Quinta-feira','Sexta-feira','Sábado'], - dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'], - dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'], - weekHeader: 'Sem', - dateFormat: 'dd/mm/yy', - firstDay: 0, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['pt']); -}); \ No newline at end of file diff --git a/htdocs/langs/ro_RO/js/jquery.ui.datepicker.js b/htdocs/langs/ro_RO/js/jquery.ui.datepicker.js deleted file mode 100644 index a988270d750..00000000000 --- a/htdocs/langs/ro_RO/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,26 +0,0 @@ -/* Romanian initialisation for the jQuery UI date picker plugin. - * - * Written by Edmond L. (ll_edmond@walla.com) - * and Ionut G. Stan (ionut.g.stan@gmail.com) - */ -jQuery(function($){ - $.datepicker.regional['ro'] = { - closeText: 'Închide', - prevText: '« Luna precedentă', - nextText: 'Luna următoare »', - currentText: 'Azi', - monthNames: ['Ianuarie','Februarie','Martie','Aprilie','Mai','Iunie', - 'Iulie','August','Septembrie','Octombrie','Noiembrie','Decembrie'], - monthNamesShort: ['Ian', 'Feb', 'Mar', 'Apr', 'Mai', 'Iun', - 'Iul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], - dayNames: ['Duminică', 'Luni', 'Marţi', 'Miercuri', 'Joi', 'Vineri', 'Sâmbătă'], - dayNamesShort: ['Dum', 'Lun', 'Mar', 'Mie', 'Joi', 'Vin', 'Sâm'], - dayNamesMin: ['Du','Lu','Ma','Mi','Jo','Vi','Sâ'], - weekHeader: 'Săpt', - dateFormat: 'dd.mm.yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ro']); -}); diff --git a/htdocs/langs/ru_RU/js/jquery.ui.datepicker.js b/htdocs/langs/ru_RU/js/jquery.ui.datepicker.js deleted file mode 100644 index 2017e053787..00000000000 --- a/htdocs/langs/ru_RU/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Russian (UTF-8) initialisation for the jQuery UI date picker plugin. */ -/* Written by Andrew Stromnov (stromnov@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['ru'] = { - closeText: 'Закрыть', - prevText: '<Пред', - nextText: 'След>', - currentText: 'Сегодня', - monthNames: ['Январь','Февраль','Март','Апрель','Май','Июнь', - 'Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'], - monthNamesShort: ['Янв','Фев','Мар','Апр','Май','Июн', - 'Июл','Авг','Сен','Окт','Ноя','Дек'], - dayNames: ['воскресенье','понедельник','вторник','среда','четверг','пятница','суббота'], - dayNamesShort: ['вск','пнд','втр','срд','чтв','птн','сбт'], - dayNamesMin: ['Вс','Пн','Вт','Ср','Чт','Пт','Сб'], - weekHeader: 'Нед', - dateFormat: 'dd.mm.yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ru']); -}); \ No newline at end of file diff --git a/htdocs/langs/sl_SI/js/jquery.ui.datepicker.js b/htdocs/langs/sl_SI/js/jquery.ui.datepicker.js deleted file mode 100644 index e3d7f6d74d1..00000000000 --- a/htdocs/langs/sl_SI/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,24 +0,0 @@ -/* Slovenian initialisation for the jQuery UI date picker plugin. */ -/* Written by Jaka Jancar (jaka@kubje.org). */ -/* c = č, s = š z = ž C = Č S = Š Z = Ž */ -jQuery(function($){ - $.datepicker.regional['sl'] = { - closeText: 'Zapri', - prevText: '<Prejšnji', - nextText: 'Naslednji>', - currentText: 'Trenutni', - monthNames: ['Januar','Februar','Marec','April','Maj','Junij', - 'Julij','Avgust','September','Oktober','November','December'], - monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', - 'Jul','Avg','Sep','Okt','Nov','Dec'], - dayNames: ['Nedelja','Ponedeljek','Torek','Sreda','Četrtek','Petek','Sobota'], - dayNamesShort: ['Ned','Pon','Tor','Sre','Čet','Pet','Sob'], - dayNamesMin: ['Ne','Po','To','Sr','Če','Pe','So'], - weekHeader: 'Teden', - dateFormat: 'dd.mm.yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['sl']); -}); diff --git a/htdocs/langs/sv_SE/js/jquery.ui.datepicker.js b/htdocs/langs/sv_SE/js/jquery.ui.datepicker.js deleted file mode 100644 index 173689b2a96..00000000000 --- a/htdocs/langs/sv_SE/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Swedish initialisation for the jQuery UI date picker plugin. */ -/* Written by Anders Ekdahl ( anders@nomadiz.se). */ -jQuery(function($){ - $.datepicker.regional['sv'] = { - closeText: 'Stäng', - prevText: '«Förra', - nextText: 'Nästa»', - currentText: 'Idag', - monthNames: ['Januari','Februari','Mars','April','Maj','Juni', - 'Juli','Augusti','September','Oktober','November','December'], - monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', - 'Jul','Aug','Sep','Okt','Nov','Dec'], - dayNamesShort: ['Sön','Mån','Tis','Ons','Tor','Fre','Lör'], - dayNames: ['Söndag','Måndag','Tisdag','Onsdag','Torsdag','Fredag','Lördag'], - dayNamesMin: ['Sö','Må','Ti','On','To','Fr','Lö'], - weekHeader: 'Ve', - dateFormat: 'yy-mm-dd', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['sv']); -}); diff --git a/htdocs/langs/tr_TR/js/jquery.ui.datepicker.js b/htdocs/langs/tr_TR/js/jquery.ui.datepicker.js deleted file mode 100644 index 1b5cafc3954..00000000000 --- a/htdocs/langs/tr_TR/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Turkish initialisation for the jQuery UI date picker plugin. */ -/* Written by Izzet Emre Erkan (kara@karalamalar.net). */ -jQuery(function($){ - $.datepicker.regional['tr'] = { - closeText: 'kapat', - prevText: '<geri', - nextText: 'ileri>', - currentText: 'bugün', - monthNames: ['Ocak','Şubat','Mart','Nisan','Mayıs','Haziran', - 'Temmuz','Ağustos','Eylül','Ekim','Kasım','Aralık'], - monthNamesShort: ['Oca','Şub','Mar','Nis','May','Haz', - 'Tem','Ağu','Eyl','Eki','Kas','Ara'], - dayNames: ['Pazar','Pazartesi','Salı','Çarşamba','Perşembe','Cuma','Cumartesi'], - dayNamesShort: ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'], - dayNamesMin: ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'], - weekHeader: 'Hf', - dateFormat: 'dd.mm.yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['tr']); -}); \ No newline at end of file diff --git a/htdocs/langs/zh_CN/js/jquery.ui.datepicker.js b/htdocs/langs/zh_CN/js/jquery.ui.datepicker.js deleted file mode 100644 index fed386f5458..00000000000 --- a/htdocs/langs/zh_CN/js/jquery.ui.datepicker.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Chinese initialisation for the jQuery UI date picker plugin. */ -/* Written by Cloudream (cloudream@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['zh-CN'] = { - closeText: '关闭', - prevText: '<上月', - nextText: '下月>', - currentText: '今天', - monthNames: ['一月','二月','三月','四月','五月','六月', - '七月','八月','九月','十月','十一月','十二月'], - monthNamesShort: ['一','二','三','四','五','六', - '七','八','九','十','十一','十二'], - dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], - dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], - dayNamesMin: ['日','一','二','三','四','五','六'], - weekHeader: '周', - dateFormat: 'yy-mm-dd', - firstDay: 1, - isRTL: false, - showMonthAfterYear: true, - yearSuffix: '年'}; - $.datepicker.setDefaults($.datepicker.regional['zh-CN']); -}); diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 243a52b0f05..71a489bedb8 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1017,9 +1017,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs print ''."\n"; // Add datepicker default options - print ''."\n"; - // Add datepicker i18n for current language - print ''."\n"; + print ''."\n"; if (! empty($head)) print $head."\n"; if (! empty($conf->global->MAIN_HTML_HEADER)) print $conf->global->MAIN_HTML_HEADER."\n"; From 415c04e8274507cfa793956d67a81df107ccf5a5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 30 Oct 2011 18:34:36 +0100 Subject: [PATCH 27/35] Qual: Move init of vars for old datepicker into new js script file. --- htdocs/core/js/datepicker.js.php | 39 +++++++++++++++++++++++++++++--- htdocs/main.inc.php | 18 --------------- 2 files changed, 36 insertions(+), 21 deletions(-) diff --git a/htdocs/core/js/datepicker.js.php b/htdocs/core/js/datepicker.js.php index 634001eaf35..ca85278a1db 100644 --- a/htdocs/core/js/datepicker.js.php +++ b/htdocs/core/js/datepicker.js.php @@ -1,12 +1,24 @@ +/* Copyright (C) 2011 Regis Houssin + * Copyright (C) 2011 Laurent Destailleur * - * Script javascript that contains functions for datepicker default options + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ /** * \file htdocs/core/js/datepicker.js.php - * \brief File that include javascript functions for datepicker default options + * \brief File that include javascript functions for datepickers */ //if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); // Not disabled cause need to load personalized language @@ -23,9 +35,30 @@ if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1'); session_cache_limiter(FALSE); require_once("../../main.inc.php"); + +// Define tradMonths javascript array (we define this in datepicker AND in parent page to avoid errors with IE8) +$tradMonths=array( +$langs->trans("January"), +$langs->trans("February"), +$langs->trans("March"), +$langs->trans("April"), +$langs->trans("May"), +$langs->trans("June"), +$langs->trans("July"), +$langs->trans("August"), +$langs->trans("September"), +$langs->trans("October"), +$langs->trans("November"), +$langs->trans("December") +); ?> +// For eldy date picker +var tradMonths = ; + + +// For JQuery date picker $(document).ready(function() { $.datepicker.setDefaults({ altField: '#timeStamp', diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 71a489bedb8..3ac7ac0e349 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -998,24 +998,6 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs } } - // Define tradMonths javascript array (we define this in datepicker AND in parent page to avoid errors with IE8) - print ''."\n"; - // Add datepicker default options print ''."\n"; From ef0fac8000d948d18d06be7b1ba19265390e129a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 30 Oct 2011 18:48:40 +0100 Subject: [PATCH 28/35] Force type javascript --- htdocs/core/js/datepicker.js.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/htdocs/core/js/datepicker.js.php b/htdocs/core/js/datepicker.js.php index ca85278a1db..ca5c0fba8f8 100644 --- a/htdocs/core/js/datepicker.js.php +++ b/htdocs/core/js/datepicker.js.php @@ -36,6 +36,13 @@ session_cache_limiter(FALSE); require_once("../../main.inc.php"); +// Define javascript type +header('Content-type: text/javascript'); +// Important: Following code is to avoid page request by browser and PHP CPU at each Dolibarr page access. +if (empty($dolibarr_nocache)) header('Cache-Control: max-age=3600, public, must-revalidate'); +else header('Cache-Control: no-cache'); + + // Define tradMonths javascript array (we define this in datepicker AND in parent page to avoid errors with IE8) $tradMonths=array( $langs->trans("January"), From f69604ebfc0cf9e1ef521b976273c648492391d8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 30 Oct 2011 18:49:04 +0100 Subject: [PATCH 29/35] Qual: Removed duplicate include --- htdocs/theme/auguria/style.css.php | 1 - htdocs/theme/bureau2crea/style.css.php | 1 - htdocs/theme/cameleo/style.css.php | 1 - htdocs/theme/eldy/style.css.php | 1 - htdocs/theme/phones/smartphone/theme/default/default.css.php | 1 - 5 files changed, 5 deletions(-) diff --git a/htdocs/theme/auguria/style.css.php b/htdocs/theme/auguria/style.css.php index ad569b86238..5eb716f8ff5 100644 --- a/htdocs/theme/auguria/style.css.php +++ b/htdocs/theme/auguria/style.css.php @@ -36,7 +36,6 @@ if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1'); session_cache_limiter(FALSE); require_once("../../main.inc.php"); -require_once(DOL_DOCUMENT_ROOT."/core/lib/functions.lib.php"); // Define css type header('Content-type: text/css'); diff --git a/htdocs/theme/bureau2crea/style.css.php b/htdocs/theme/bureau2crea/style.css.php index 6861d3af98e..4abf98a414c 100644 --- a/htdocs/theme/bureau2crea/style.css.php +++ b/htdocs/theme/bureau2crea/style.css.php @@ -37,7 +37,6 @@ if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1'); require_once("../../main.inc.php"); -require_once(DOL_DOCUMENT_ROOT."/core/lib/functions.lib.php"); // Define css type header('Content-type: text/css'); diff --git a/htdocs/theme/cameleo/style.css.php b/htdocs/theme/cameleo/style.css.php index 4ffeeb8f2bf..d5f15d279b4 100644 --- a/htdocs/theme/cameleo/style.css.php +++ b/htdocs/theme/cameleo/style.css.php @@ -38,7 +38,6 @@ if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1'); session_cache_limiter(FALSE); require_once("../../main.inc.php"); -require_once(DOL_DOCUMENT_ROOT."/core/lib/functions.lib.php"); // Define css type header('Content-type: text/css'); diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index acdd43d25a6..66d6d5fbf92 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -37,7 +37,6 @@ if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1'); session_cache_limiter(FALSE); require_once("../../main.inc.php"); -require_once(DOL_DOCUMENT_ROOT."/core/lib/functions.lib.php"); // Define css type header('Content-type: text/css'); diff --git a/htdocs/theme/phones/smartphone/theme/default/default.css.php b/htdocs/theme/phones/smartphone/theme/default/default.css.php index 40738105168..b12da962a76 100644 --- a/htdocs/theme/phones/smartphone/theme/default/default.css.php +++ b/htdocs/theme/phones/smartphone/theme/default/default.css.php @@ -34,7 +34,6 @@ if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1'); session_cache_limiter(FALSE); require_once("../../../../../main.inc.php"); -require_once(DOL_DOCUMENT_ROOT."/core/lib/functions.lib.php"); // Define css type header('Content-type: text/css'); From 5f6b52a7e5b6de9bbf9af35346b8f537ca2ed395 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 30 Oct 2011 18:55:00 +0100 Subject: [PATCH 30/35] Force charset --- htdocs/core/js/datepicker.js.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/core/js/datepicker.js.php b/htdocs/core/js/datepicker.js.php index ca5c0fba8f8..044fddcd0ba 100644 --- a/htdocs/core/js/datepicker.js.php +++ b/htdocs/core/js/datepicker.js.php @@ -38,6 +38,7 @@ require_once("../../main.inc.php"); // Define javascript type header('Content-type: text/javascript'); +header("Content-type: text/html; charset=UTF-8"); // Important: Following code is to avoid page request by browser and PHP CPU at each Dolibarr page access. if (empty($dolibarr_nocache)) header('Cache-Control: max-age=3600, public, must-revalidate'); else header('Cache-Control: no-cache'); From 0c3e604de008dc7af11476c3a115a241d223686f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 30 Oct 2011 18:58:30 +0100 Subject: [PATCH 31/35] Fix: Missing closing db --- htdocs/core/js/datepicker.js.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/htdocs/core/js/datepicker.js.php b/htdocs/core/js/datepicker.js.php index 044fddcd0ba..f59cdfb6c3a 100644 --- a/htdocs/core/js/datepicker.js.php +++ b/htdocs/core/js/datepicker.js.php @@ -104,3 +104,8 @@ jQuery(function($){ yearSuffix: ''}; $.datepicker.setDefaults($.datepicker.regional['defaultlang ?>']); }); + + +close(); +?> \ No newline at end of file From 41f265d8be0832e6eed7c3eda3fae60dfe6d1fa9 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 30 Oct 2011 18:59:36 +0100 Subject: [PATCH 32/35] Add TODO for add specific parameters for country --- htdocs/core/js/datepicker.js.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/htdocs/core/js/datepicker.js.php b/htdocs/core/js/datepicker.js.php index 044fddcd0ba..f91f03ccd1c 100644 --- a/htdocs/core/js/datepicker.js.php +++ b/htdocs/core/js/datepicker.js.php @@ -98,9 +98,10 @@ jQuery(function($){ dayNamesMin: ['transnoentitiesnoconv("ShortSunday")) ?>','transnoentitiesnoconv("ShortMonday")) ?>','transnoentitiesnoconv("ShortTuesday")) ?>','transnoentitiesnoconv("ShortWednesday")) ?>','transnoentitiesnoconv("ShortThursday")) ?>','transnoentitiesnoconv("ShortFriday")) ?>','transnoentitiesnoconv("ShortSaturday")) ?>'], weekHeader: 'Sem.', dateFormat: 'transnoentitiesnoconv("FormatDateShortJQuery"); ?>', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; + firstDay: 1, // TODO add specific to country + isRTL: false, // TODO add specific to country + showMonthAfterYear: false, // TODO add specific to country + yearSuffix: '' // TODO add specific to country + }; $.datepicker.setDefaults($.datepicker.regional['defaultlang ?>']); }); From a20a83fce6307c5315787424a86ad98cac1e6b9b Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 30 Oct 2011 19:05:01 +0100 Subject: [PATCH 33/35] Fix: use another method --- htdocs/core/js/datepicker.js.php | 2 +- htdocs/includes/jquery/i18n/README | 10 -------- .../jquery/i18n/jquery.ui.datepicker-af.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-ar-DZ.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-ar.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-az.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-bg.js | 24 ------------------- .../jquery/i18n/jquery.ui.datepicker-bs.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-cs.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-eo.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-et.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-eu.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-fo.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-gl.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-he.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-hr.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-hy.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-id.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-ko.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-kz.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-lt.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-lv.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-ml.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-ms.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-rm.js | 21 ---------------- .../jquery/i18n/jquery.ui.datepicker-sk.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-sq.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-sr-SR.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-sr.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-ta.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-th.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-tj.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-uk.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-vi.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-zh-HK.js | 23 ------------------ .../jquery/i18n/jquery.ui.datepicker-zh-TW.js | 23 ------------------ 36 files changed, 1 insertion(+), 792 deletions(-) delete mode 100644 htdocs/includes/jquery/i18n/README delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-af.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-ar-DZ.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-ar.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-az.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-bg.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-bs.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-cs.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-eo.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-et.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-eu.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-fo.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-gl.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-he.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-hr.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-hy.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-id.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-ko.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-kz.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-lt.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-lv.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-ml.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-ms.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-rm.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-sk.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-sq.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-sr-SR.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-sr.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-ta.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-th.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-tj.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-uk.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-vi.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-zh-HK.js delete mode 100644 htdocs/includes/jquery/i18n/jquery.ui.datepicker-zh-TW.js diff --git a/htdocs/core/js/datepicker.js.php b/htdocs/core/js/datepicker.js.php index f91f03ccd1c..3ea401dfdbe 100644 --- a/htdocs/core/js/datepicker.js.php +++ b/htdocs/core/js/datepicker.js.php @@ -102,6 +102,6 @@ jQuery(function($){ isRTL: false, // TODO add specific to country showMonthAfterYear: false, // TODO add specific to country yearSuffix: '' // TODO add specific to country - }; + }; $.datepicker.setDefaults($.datepicker.regional['defaultlang ?>']); }); diff --git a/htdocs/includes/jquery/i18n/README b/htdocs/includes/jquery/i18n/README deleted file mode 100644 index 44fe75ed28e..00000000000 --- a/htdocs/includes/jquery/i18n/README +++ /dev/null @@ -1,10 +0,0 @@ -http://github.com/jquery/jquery-ui - -add "js" directory in language directory -eg: /langs/fr_FR/js/ - -move datepicker language file -eg: /langs/fr_FR/js/jquery.ui.datepicker-fr.js - -and rename the file -eg: /langs/fr_FR/js/jquery.ui.datepicker.js diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-af.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-af.js deleted file mode 100644 index 0922ef7a1c0..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-af.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Afrikaans initialisation for the jQuery UI date picker plugin. */ -/* Written by Renier Pretorius. */ -jQuery(function($){ - $.datepicker.regional['af'] = { - closeText: 'Selekteer', - prevText: 'Vorige', - nextText: 'Volgende', - currentText: 'Vandag', - monthNames: ['Januarie','Februarie','Maart','April','Mei','Junie', - 'Julie','Augustus','September','Oktober','November','Desember'], - monthNamesShort: ['Jan', 'Feb', 'Mrt', 'Apr', 'Mei', 'Jun', - 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'], - dayNames: ['Sondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrydag', 'Saterdag'], - dayNamesShort: ['Son', 'Maa', 'Din', 'Woe', 'Don', 'Vry', 'Sat'], - dayNamesMin: ['So','Ma','Di','Wo','Do','Vr','Sa'], - weekHeader: 'Wk', - dateFormat: 'dd/mm/yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['af']); -}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ar-DZ.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ar-DZ.js deleted file mode 100644 index 7b175af40ea..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ar-DZ.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Algerian Arabic Translation for jQuery UI date picker plugin. (can be used for Tunisia)*/ -/* Mohamed Cherif BOUCHELAGHEM -- cherifbouchelaghem@yahoo.fr */ - -jQuery(function($){ - $.datepicker.regional['ar-DZ'] = { - closeText: 'إغلاق', - prevText: '<السابق', - nextText: 'التالي>', - currentText: 'اليوم', - monthNames: ['جانفي', 'فيفري', 'مارس', 'أفريل', 'ماي', 'جوان', - 'جويلية', 'أوت', 'سبتمبر','أكتوبر', 'نوفمبر', 'ديسمبر'], - monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], - dayNames: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - dayNamesShort: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - dayNamesMin: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - weekHeader: 'أسبوع', - dateFormat: 'dd/mm/yy', - firstDay: 6, - isRTL: true, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ar-DZ']); -}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ar.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ar.js deleted file mode 100644 index f24b3ff5a1c..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ar.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Arabic Translation for jQuery UI date picker plugin. */ -/* Khaled Alhourani -- me@khaledalhourani.com */ -/* NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */ -jQuery(function($){ - $.datepicker.regional['ar'] = { - closeText: 'إغلاق', - prevText: '<السابق', - nextText: 'التالي>', - currentText: 'اليوم', - monthNames: ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'مايو', 'حزيران', - 'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'], - monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], - dayNames: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - dayNamesShort: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - dayNamesMin: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], - weekHeader: 'أسبوع', - dateFormat: 'dd/mm/yy', - firstDay: 6, - isRTL: true, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ar']); -}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-az.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-az.js deleted file mode 100644 index 1101c8b91b2..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-az.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Azerbaijani (UTF-8) initialisation for the jQuery UI date picker plugin. */ -/* Written by Jamil Najafov (necefov33@gmail.com). */ -jQuery(function($) { - $.datepicker.regional['az'] = { - closeText: 'Bağla', - prevText: '<Geri', - nextText: 'İrəli>', - currentText: 'Bugün', - monthNames: ['Yanvar','Fevral','Mart','Aprel','May','İyun', - 'İyul','Avqust','Sentyabr','Oktyabr','Noyabr','Dekabr'], - monthNamesShort: ['Yan','Fev','Mar','Apr','May','İyun', - 'İyul','Avq','Sen','Okt','Noy','Dek'], - dayNames: ['Bazar','Bazar ertəsi','Çərşənbə axşamı','Çərşənbə','Cümə axşamı','Cümə','Şənbə'], - dayNamesShort: ['B','Be','Ça','Ç','Ca','C','Ş'], - dayNamesMin: ['B','B','Ç','С','Ç','C','Ş'], - weekHeader: 'Hf', - dateFormat: 'dd.mm.yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['az']); -}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-bg.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-bg.js deleted file mode 100644 index 4e0ee2f509f..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-bg.js +++ /dev/null @@ -1,24 +0,0 @@ -/* Bulgarian initialisation for the jQuery UI date picker plugin. */ -/* Written by Stoyan Kyosev (http://svest.org). */ -jQuery(function($){ - $.datepicker.regional['bg'] = { - closeText: 'затвори', - prevText: '<назад', - nextText: 'напред>', - nextBigText: '>>', - currentText: 'днес', - monthNames: ['Януари','Февруари','Март','Април','Май','Юни', - 'Юли','Август','Септември','Октомври','Ноември','Декември'], - monthNamesShort: ['Яну','Фев','Мар','Апр','Май','Юни', - 'Юли','Авг','Сеп','Окт','Нов','Дек'], - dayNames: ['Неделя','Понеделник','Вторник','Сряда','Четвъртък','Петък','Събота'], - dayNamesShort: ['Нед','Пон','Вто','Сря','Чет','Пет','Съб'], - dayNamesMin: ['Не','По','Вт','Ср','Че','Пе','Съ'], - weekHeader: 'Wk', - dateFormat: 'dd.mm.yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['bg']); -}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-bs.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-bs.js deleted file mode 100644 index d6457375544..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-bs.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Bosnian i18n for the jQuery UI date picker plugin. */ -/* Written by Kenan Konjo. */ -jQuery(function($){ - $.datepicker.regional['bs'] = { - closeText: 'Zatvori', - prevText: '<', - nextText: '>', - currentText: 'Danas', - monthNames: ['Januar','Februar','Mart','April','Maj','Juni', - 'Juli','August','Septembar','Oktobar','Novembar','Decembar'], - monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', - 'Jul','Aug','Sep','Okt','Nov','Dec'], - dayNames: ['Nedelja','Ponedeljak','Utorak','Srijeda','Četvrtak','Petak','Subota'], - dayNamesShort: ['Ned','Pon','Uto','Sri','Čet','Pet','Sub'], - dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'], - weekHeader: 'Wk', - dateFormat: 'dd.mm.yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['bs']); -}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-cs.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-cs.js deleted file mode 100644 index bf56baf01ef..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-cs.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Czech initialisation for the jQuery UI date picker plugin. */ -/* Written by Tomas Muller (tomas@tomas-muller.net). */ -jQuery(function($){ - $.datepicker.regional['cs'] = { - closeText: 'Zavřít', - prevText: '<Dříve', - nextText: 'Později>', - currentText: 'Nyní', - monthNames: ['leden','únor','březen','duben','květen','červen', - 'červenec','srpen','září','říjen','listopad','prosinec'], - monthNamesShort: ['led','úno','bře','dub','kvě','čer', - 'čvc','srp','zář','říj','lis','pro'], - dayNames: ['neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota'], - dayNamesShort: ['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'], - dayNamesMin: ['ne','po','út','st','čt','pá','so'], - weekHeader: 'Týd', - dateFormat: 'dd.mm.yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['cs']); -}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-eo.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-eo.js deleted file mode 100644 index 39e44fc57c1..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-eo.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Esperanto initialisation for the jQuery UI date picker plugin. */ -/* Written by Olivier M. (olivierweb@ifrance.com). */ -jQuery(function($){ - $.datepicker.regional['eo'] = { - closeText: 'Fermi', - prevText: '<Anta', - nextText: 'Sekv>', - currentText: 'Nuna', - monthNames: ['Januaro','Februaro','Marto','Aprilo','Majo','Junio', - 'Julio','Aŭgusto','Septembro','Oktobro','Novembro','Decembro'], - monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', - 'Jul','Aŭg','Sep','Okt','Nov','Dec'], - dayNames: ['Dimanĉo','Lundo','Mardo','Merkredo','Ĵaŭdo','Vendredo','Sabato'], - dayNamesShort: ['Dim','Lun','Mar','Mer','Ĵaŭ','Ven','Sab'], - dayNamesMin: ['Di','Lu','Ma','Me','Ĵa','Ve','Sa'], - weekHeader: 'Sb', - dateFormat: 'dd/mm/yy', - firstDay: 0, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['eo']); -}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-et.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-et.js deleted file mode 100644 index 92f81f63786..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-et.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Estonian initialisation for the jQuery UI date picker plugin. */ -/* Written by Mart Sõmermaa (mrts.pydev at gmail com). */ -jQuery(function($){ - $.datepicker.regional['et'] = { - closeText: 'Sulge', - prevText: 'Eelnev', - nextText: 'Järgnev', - currentText: 'Täna', - monthNames: ['Jaanuar','Veebruar','Märts','Aprill','Mai','Juuni', - 'Juuli','August','September','Oktoober','November','Detsember'], - monthNamesShort: ['Jaan', 'Veebr', 'Märts', 'Apr', 'Mai', 'Juuni', - 'Juuli', 'Aug', 'Sept', 'Okt', 'Nov', 'Dets'], - dayNames: ['Pühapäev', 'Esmaspäev', 'Teisipäev', 'Kolmapäev', 'Neljapäev', 'Reede', 'Laupäev'], - dayNamesShort: ['Pühap', 'Esmasp', 'Teisip', 'Kolmap', 'Neljap', 'Reede', 'Laup'], - dayNamesMin: ['P','E','T','K','N','R','L'], - weekHeader: 'Sm', - dateFormat: 'dd.mm.yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['et']); -}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-eu.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-eu.js deleted file mode 100644 index 4c40eebec67..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-eu.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Euskarako oinarria 'UI date picker' jquery-ko extentsioarentzat */ -/* Karrikas-ek itzulia (karrikas@karrikas.com) */ -jQuery(function($){ - $.datepicker.regional['eu'] = { - closeText: 'Egina', - prevText: '<Aur', - nextText: 'Hur>', - currentText: 'Gaur', - monthNames: ['Urtarrila','Otsaila','Martxoa','Apirila','Maiatza','Ekaina', - 'Uztaila','Abuztua','Iraila','Urria','Azaroa','Abendua'], - monthNamesShort: ['Urt','Ots','Mar','Api','Mai','Eka', - 'Uzt','Abu','Ira','Urr','Aza','Abe'], - dayNames: ['Igandea','Astelehena','Asteartea','Asteazkena','Osteguna','Ostirala','Larunbata'], - dayNamesShort: ['Iga','Ast','Ast','Ast','Ost','Ost','Lar'], - dayNamesMin: ['Ig','As','As','As','Os','Os','La'], - weekHeader: 'Wk', - dateFormat: 'yy/mm/dd', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['eu']); -}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fo.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fo.js deleted file mode 100644 index 9c848a04be2..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-fo.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Faroese initialisation for the jQuery UI date picker plugin */ -/* Written by Sverri Mohr Olsen, sverrimo@gmail.com */ -jQuery(function($){ - $.datepicker.regional['fo'] = { - closeText: 'Lat aftur', - prevText: '<Fyrra', - nextText: 'Næsta>', - currentText: 'Í dag', - monthNames: ['Januar','Februar','Mars','Apríl','Mei','Juni', - 'Juli','August','September','Oktober','November','Desember'], - monthNamesShort: ['Jan','Feb','Mar','Apr','Mei','Jun', - 'Jul','Aug','Sep','Okt','Nov','Des'], - dayNames: ['Sunnudagur','Mánadagur','Týsdagur','Mikudagur','Hósdagur','Fríggjadagur','Leyardagur'], - dayNamesShort: ['Sun','Mán','Týs','Mik','Hós','Frí','Ley'], - dayNamesMin: ['Su','Má','Tý','Mi','Hó','Fr','Le'], - weekHeader: 'Vk', - dateFormat: 'dd-mm-yy', - firstDay: 0, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['fo']); -}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-gl.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-gl.js deleted file mode 100644 index 3e24312a4d6..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-gl.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Galician localization for 'UI date picker' jQuery extension. */ -/* Translated by Jorge Barreiro . */ -jQuery(function($){ - $.datepicker.regional['gl'] = { - closeText: 'Pechar', - prevText: '<Ant', - nextText: 'Seg>', - currentText: 'Hoxe', - monthNames: ['Xaneiro','Febreiro','Marzo','Abril','Maio','Xuño', - 'Xullo','Agosto','Setembro','Outubro','Novembro','Decembro'], - monthNamesShort: ['Xan','Feb','Mar','Abr','Mai','Xuñ', - 'Xul','Ago','Set','Out','Nov','Dec'], - dayNames: ['Domingo','Luns','Martes','Mércores','Xoves','Venres','Sábado'], - dayNamesShort: ['Dom','Lun','Mar','Mér','Xov','Ven','Sáb'], - dayNamesMin: ['Do','Lu','Ma','Mé','Xo','Ve','Sá'], - weekHeader: 'Sm', - dateFormat: 'dd/mm/yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['gl']); -}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-he.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-he.js deleted file mode 100644 index 58ea8c6d8d6..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-he.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Hebrew initialisation for the UI Datepicker extension. */ -/* Written by Amir Hardon (ahardon at gmail dot com). */ -jQuery(function($){ - $.datepicker.regional['he'] = { - closeText: 'סגור', - prevText: '<הקודם', - nextText: 'הבא>', - currentText: 'היום', - monthNames: ['ינואר','פברואר','מרץ','אפריל','מאי','יוני', - 'יולי','אוגוסט','ספטמבר','אוקטובר','נובמבר','דצמבר'], - monthNamesShort: ['1','2','3','4','5','6', - '7','8','9','10','11','12'], - dayNames: ['ראשון','שני','שלישי','רביעי','חמישי','שישי','שבת'], - dayNamesShort: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'], - dayNamesMin: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'], - weekHeader: 'Wk', - dateFormat: 'dd/mm/yy', - firstDay: 0, - isRTL: true, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['he']); -}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-hr.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-hr.js deleted file mode 100644 index 6bc5aade129..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-hr.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Croatian i18n for the jQuery UI date picker plugin. */ -/* Written by Vjekoslav Nesek. */ -jQuery(function($){ - $.datepicker.regional['hr'] = { - closeText: 'Zatvori', - prevText: '<', - nextText: '>', - currentText: 'Danas', - monthNames: ['Siječanj','Veljača','Ožujak','Travanj','Svibanj','Lipanj', - 'Srpanj','Kolovoz','Rujan','Listopad','Studeni','Prosinac'], - monthNamesShort: ['Sij','Velj','Ožu','Tra','Svi','Lip', - 'Srp','Kol','Ruj','Lis','Stu','Pro'], - dayNames: ['Nedjelja','Ponedjeljak','Utorak','Srijeda','Četvrtak','Petak','Subota'], - dayNamesShort: ['Ned','Pon','Uto','Sri','Čet','Pet','Sub'], - dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'], - weekHeader: 'Tje', - dateFormat: 'dd.mm.yy.', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['hr']); -}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-hy.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-hy.js deleted file mode 100644 index b4285159613..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-hy.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Armenian(UTF-8) initialisation for the jQuery UI date picker plugin. */ -/* Written by Levon Zakaryan (levon.zakaryan@gmail.com)*/ -jQuery(function($){ - $.datepicker.regional['hy'] = { - closeText: 'Փակել', - prevText: '<Նախ.', - nextText: 'Հաջ.>', - currentText: 'Այսօր', - monthNames: ['Հունվար','Փետրվար','Մարտ','Ապրիլ','Մայիս','Հունիս', - 'Հուլիս','Օգոստոս','Սեպտեմբեր','Հոկտեմբեր','Նոյեմբեր','Դեկտեմբեր'], - monthNamesShort: ['Հունվ','Փետր','Մարտ','Ապր','Մայիս','Հունիս', - 'Հուլ','Օգս','Սեպ','Հոկ','Նոյ','Դեկ'], - dayNames: ['կիրակի','եկուշաբթի','երեքշաբթի','չորեքշաբթի','հինգշաբթի','ուրբաթ','շաբաթ'], - dayNamesShort: ['կիր','երկ','երք','չրք','հնգ','ուրբ','շբթ'], - dayNamesMin: ['կիր','երկ','երք','չրք','հնգ','ուրբ','շբթ'], - weekHeader: 'ՇԲՏ', - dateFormat: 'dd.mm.yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['hy']); -}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-id.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-id.js deleted file mode 100644 index 4ad46f64083..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-id.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Indonesian initialisation for the jQuery UI date picker plugin. */ -/* Written by Deden Fathurahman (dedenf@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['id'] = { - closeText: 'Tutup', - prevText: '<mundur', - nextText: 'maju>', - currentText: 'hari ini', - monthNames: ['Januari','Februari','Maret','April','Mei','Juni', - 'Juli','Agustus','September','Oktober','Nopember','Desember'], - monthNamesShort: ['Jan','Feb','Mar','Apr','Mei','Jun', - 'Jul','Agus','Sep','Okt','Nop','Des'], - dayNames: ['Minggu','Senin','Selasa','Rabu','Kamis','Jumat','Sabtu'], - dayNamesShort: ['Min','Sen','Sel','Rab','kam','Jum','Sab'], - dayNamesMin: ['Mg','Sn','Sl','Rb','Km','jm','Sb'], - weekHeader: 'Mg', - dateFormat: 'dd/mm/yy', - firstDay: 0, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['id']); -}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ko.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ko.js deleted file mode 100644 index 5b3531652d9..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ko.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Korean initialisation for the jQuery calendar extension. */ -/* Written by DaeKwon Kang (ncrash.dk@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['ko'] = { - closeText: '닫기', - prevText: '이전달', - nextText: '다음달', - currentText: '오늘', - monthNames: ['1월(JAN)','2월(FEB)','3월(MAR)','4월(APR)','5월(MAY)','6월(JUN)', - '7월(JUL)','8월(AUG)','9월(SEP)','10월(OCT)','11월(NOV)','12월(DEC)'], - monthNamesShort: ['1월(JAN)','2월(FEB)','3월(MAR)','4월(APR)','5월(MAY)','6월(JUN)', - '7월(JUL)','8월(AUG)','9월(SEP)','10월(OCT)','11월(NOV)','12월(DEC)'], - dayNames: ['일','월','화','수','목','금','토'], - dayNamesShort: ['일','월','화','수','목','금','토'], - dayNamesMin: ['일','월','화','수','목','금','토'], - weekHeader: 'Wk', - dateFormat: 'yy-mm-dd', - firstDay: 0, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: '년'}; - $.datepicker.setDefaults($.datepicker.regional['ko']); -}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-kz.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-kz.js deleted file mode 100644 index 658c21275d2..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-kz.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Kazakh (UTF-8) initialisation for the jQuery UI date picker plugin. */ -/* Written by Dmitriy Karasyov (dmitriy.karasyov@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['kz'] = { - closeText: 'Жабу', - prevText: '<Алдыңғы', - nextText: 'Келесі>', - currentText: 'Бүгін', - monthNames: ['Қаңтар','Ақпан','Наурыз','Сәуір','Мамыр','Маусым', - 'Шілде','Тамыз','Қыркүйек','Қазан','Қараша','Желтоқсан'], - monthNamesShort: ['Қаң','Ақп','Нау','Сәу','Мам','Мау', - 'Шіл','Там','Қыр','Қаз','Қар','Жел'], - dayNames: ['Жексенбі','Дүйсенбі','Сейсенбі','Сәрсенбі','Бейсенбі','Жұма','Сенбі'], - dayNamesShort: ['жкс','дсн','ссн','срс','бсн','жма','снб'], - dayNamesMin: ['Жк','Дс','Сс','Ср','Бс','Жм','Сн'], - weekHeader: 'Не', - dateFormat: 'dd.mm.yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['kz']); -}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-lt.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-lt.js deleted file mode 100644 index 2970f8f37c2..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-lt.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Lithuanian (UTF-8) initialisation for the jQuery UI date picker plugin. */ -/* @author Arturas Paleicikas */ -jQuery(function($){ - $.datepicker.regional['lt'] = { - closeText: 'Uždaryti', - prevText: '<Atgal', - nextText: 'Pirmyn>', - currentText: 'Šiandien', - monthNames: ['Sausis','Vasaris','Kovas','Balandis','Gegužė','Birželis', - 'Liepa','Rugpjūtis','Rugsėjis','Spalis','Lapkritis','Gruodis'], - monthNamesShort: ['Sau','Vas','Kov','Bal','Geg','Bir', - 'Lie','Rugp','Rugs','Spa','Lap','Gru'], - dayNames: ['sekmadienis','pirmadienis','antradienis','trečiadienis','ketvirtadienis','penktadienis','šeštadienis'], - dayNamesShort: ['sek','pir','ant','tre','ket','pen','šeš'], - dayNamesMin: ['Se','Pr','An','Tr','Ke','Pe','Še'], - weekHeader: 'Wk', - dateFormat: 'yy-mm-dd', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['lt']); -}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-lv.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-lv.js deleted file mode 100644 index 003934e7212..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-lv.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Latvian (UTF-8) initialisation for the jQuery UI date picker plugin. */ -/* @author Arturas Paleicikas */ -jQuery(function($){ - $.datepicker.regional['lv'] = { - closeText: 'Aizvērt', - prevText: 'Iepr', - nextText: 'Nāka', - currentText: 'Šodien', - monthNames: ['Janvāris','Februāris','Marts','Aprīlis','Maijs','Jūnijs', - 'Jūlijs','Augusts','Septembris','Oktobris','Novembris','Decembris'], - monthNamesShort: ['Jan','Feb','Mar','Apr','Mai','Jūn', - 'Jūl','Aug','Sep','Okt','Nov','Dec'], - dayNames: ['svētdiena','pirmdiena','otrdiena','trešdiena','ceturtdiena','piektdiena','sestdiena'], - dayNamesShort: ['svt','prm','otr','tre','ctr','pkt','sst'], - dayNamesMin: ['Sv','Pr','Ot','Tr','Ct','Pk','Ss'], - weekHeader: 'Nav', - dateFormat: 'dd-mm-yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['lv']); -}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ml.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ml.js deleted file mode 100644 index 1e3432c0a8f..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ml.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Malayalam (UTF-8) initialisation for the jQuery UI date picker plugin. */ -/* Written by Saji Nediyanchath (saji89@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['ml'] = { - closeText: 'ശരി', - prevText: 'മുന്നത്തെ', - nextText: 'അടുത്തത് ', - currentText: 'ഇന്ന്', - monthNames: ['ജനുവരി','ഫെബ്രുവരി','മാര്‍ച്ച്','ഏപ്രില്‍','മേയ്','ജൂണ്‍', - 'ജൂലൈ','ആഗസ്റ്റ്','സെപ്റ്റംബര്‍','ഒക്ടോബര്‍','നവംബര്‍','ഡിസംബര്‍'], - monthNamesShort: ['ജനു', 'ഫെബ്', 'മാര്‍', 'ഏപ്രി', 'മേയ്', 'ജൂണ്‍', - 'ജൂലാ', 'ആഗ', 'സെപ്', 'ഒക്ടോ', 'നവം', 'ഡിസ'], - dayNames: ['ഞായര്‍', 'തിങ്കള്‍', 'ചൊവ്വ', 'ബുധന്‍', 'വ്യാഴം', 'വെള്ളി', 'ശനി'], - dayNamesShort: ['ഞായ', 'തിങ്ക', 'ചൊവ്വ', 'ബുധ', 'വ്യാഴം', 'വെള്ളി', 'ശനി'], - dayNamesMin: ['ഞാ','തി','ചൊ','ബു','വ്യാ','വെ','ശ'], - weekHeader: 'ആ', - dateFormat: 'dd/mm/yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ml']); -}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ms.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ms.js deleted file mode 100644 index c290af10a57..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ms.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Malaysian initialisation for the jQuery UI date picker plugin. */ -/* Written by Mohd Nawawi Mohamad Jamili (nawawi@ronggeng.net). */ -jQuery(function($){ - $.datepicker.regional['ms'] = { - closeText: 'Tutup', - prevText: '<Sebelum', - nextText: 'Selepas>', - currentText: 'hari ini', - monthNames: ['Januari','Februari','Mac','April','Mei','Jun', - 'Julai','Ogos','September','Oktober','November','Disember'], - monthNamesShort: ['Jan','Feb','Mac','Apr','Mei','Jun', - 'Jul','Ogo','Sep','Okt','Nov','Dis'], - dayNames: ['Ahad','Isnin','Selasa','Rabu','Khamis','Jumaat','Sabtu'], - dayNamesShort: ['Aha','Isn','Sel','Rab','kha','Jum','Sab'], - dayNamesMin: ['Ah','Is','Se','Ra','Kh','Ju','Sa'], - weekHeader: 'Mg', - dateFormat: 'dd/mm/yy', - firstDay: 0, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ms']); -}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-rm.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-rm.js deleted file mode 100644 index 22ed21685dd..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-rm.js +++ /dev/null @@ -1,21 +0,0 @@ -/* Romansh initialisation for the jQuery UI date picker plugin. */ -/* Written by Yvonne Gienal (yvonne.gienal@educa.ch). */ -jQuery(function($){ - $.datepicker.regional['rm'] = { - closeText: 'Serrar', - prevText: '<Suandant', - nextText: 'Precedent>', - currentText: 'Actual', - monthNames: ['Schaner','Favrer','Mars','Avrigl','Matg','Zercladur', 'Fanadur','Avust','Settember','October','November','December'], - monthNamesShort: ['Scha','Fev','Mar','Avr','Matg','Zer', 'Fan','Avu','Sett','Oct','Nov','Dec'], - dayNames: ['Dumengia','Glindesdi','Mardi','Mesemna','Gievgia','Venderdi','Sonda'], - dayNamesShort: ['Dum','Gli','Mar','Mes','Gie','Ven','Som'], - dayNamesMin: ['Du','Gl','Ma','Me','Gi','Ve','So'], - weekHeader: 'emna', - dateFormat: 'dd/mm/yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['rm']); -}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sk.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sk.js deleted file mode 100644 index 83ae8e811f1..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sk.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Slovak initialisation for the jQuery UI date picker plugin. */ -/* Written by Vojtech Rinik (vojto@hmm.sk). */ -jQuery(function($){ - $.datepicker.regional['sk'] = { - closeText: 'Zavrieť', - prevText: '<Predchádzajúci', - nextText: 'Nasledujúci>', - currentText: 'Dnes', - monthNames: ['Január','Február','Marec','Apríl','Máj','Jún', - 'Júl','August','September','Október','November','December'], - monthNamesShort: ['Jan','Feb','Mar','Apr','Máj','Jún', - 'Júl','Aug','Sep','Okt','Nov','Dec'], - dayNames: ['Nedeľa','Pondelok','Utorok','Streda','Štvrtok','Piatok','Sobota'], - dayNamesShort: ['Ned','Pon','Uto','Str','Štv','Pia','Sob'], - dayNamesMin: ['Ne','Po','Ut','St','Št','Pia','So'], - weekHeader: 'Ty', - dateFormat: 'dd.mm.yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['sk']); -}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sq.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sq.js deleted file mode 100644 index d6086a78960..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sq.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Albanian initialisation for the jQuery UI date picker plugin. */ -/* Written by Flakron Bytyqi (flakron@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['sq'] = { - closeText: 'mbylle', - prevText: '<mbrapa', - nextText: 'Përpara>', - currentText: 'sot', - monthNames: ['Janar','Shkurt','Mars','Prill','Maj','Qershor', - 'Korrik','Gusht','Shtator','Tetor','Nëntor','Dhjetor'], - monthNamesShort: ['Jan','Shk','Mar','Pri','Maj','Qer', - 'Kor','Gus','Sht','Tet','Nën','Dhj'], - dayNames: ['E Diel','E Hënë','E Martë','E Mërkurë','E Enjte','E Premte','E Shtune'], - dayNamesShort: ['Di','Hë','Ma','Më','En','Pr','Sh'], - dayNamesMin: ['Di','Hë','Ma','Më','En','Pr','Sh'], - weekHeader: 'Ja', - dateFormat: 'dd.mm.yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['sq']); -}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sr-SR.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sr-SR.js deleted file mode 100644 index 6d5d042110e..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sr-SR.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Serbian i18n for the jQuery UI date picker plugin. */ -/* Written by Dejan Dimić. */ -jQuery(function($){ - $.datepicker.regional['sr-SR'] = { - closeText: 'Zatvori', - prevText: '<', - nextText: '>', - currentText: 'Danas', - monthNames: ['Januar','Februar','Mart','April','Maj','Jun', - 'Jul','Avgust','Septembar','Oktobar','Novembar','Decembar'], - monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', - 'Jul','Avg','Sep','Okt','Nov','Dec'], - dayNames: ['Nedelja','Ponedeljak','Utorak','Sreda','Četvrtak','Petak','Subota'], - dayNamesShort: ['Ned','Pon','Uto','Sre','Čet','Pet','Sub'], - dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'], - weekHeader: 'Sed', - dateFormat: 'dd/mm/yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['sr-SR']); -}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sr.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sr.js deleted file mode 100644 index d4e1d9af09a..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-sr.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Serbian i18n for the jQuery UI date picker plugin. */ -/* Written by Dejan Dimić. */ -jQuery(function($){ - $.datepicker.regional['sr'] = { - closeText: 'Затвори', - prevText: '<', - nextText: '>', - currentText: 'Данас', - monthNames: ['Јануар','Фебруар','Март','Април','Мај','Јун', - 'Јул','Август','Септембар','Октобар','Новембар','Децембар'], - monthNamesShort: ['Јан','Феб','Мар','Апр','Мај','Јун', - 'Јул','Авг','Сеп','Окт','Нов','Дец'], - dayNames: ['Недеља','Понедељак','Уторак','Среда','Четвртак','Петак','Субота'], - dayNamesShort: ['Нед','Пон','Уто','Сре','Чет','Пет','Суб'], - dayNamesMin: ['Не','По','Ут','Ср','Че','Пе','Су'], - weekHeader: 'Сед', - dateFormat: 'dd/mm/yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['sr']); -}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ta.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ta.js deleted file mode 100644 index 40431ed8ec7..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-ta.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Tamil (UTF-8) initialisation for the jQuery UI date picker plugin. */ -/* Written by S A Sureshkumar (saskumar@live.com). */ -jQuery(function($){ - $.datepicker.regional['ta'] = { - closeText: 'மூடு', - prevText: 'முன்னையது', - nextText: 'அடுத்தது', - currentText: 'இன்று', - monthNames: ['தை','மாசி','பங்குனி','சித்திரை','வைகாசி','ஆனி', - 'ஆடி','ஆவணி','புரட்டாசி','ஐப்பசி','கார்த்திகை','மார்கழி'], - monthNamesShort: ['தை','மாசி','பங்','சித்','வைகா','ஆனி', - 'ஆடி','ஆவ','புர','ஐப்','கார்','மார்'], - dayNames: ['ஞாயிற்றுக்கிழமை','திங்கட்கிழமை','செவ்வாய்க்கிழமை','புதன்கிழமை','வியாழக்கிழமை','வெள்ளிக்கிழமை','சனிக்கிழமை'], - dayNamesShort: ['ஞாயிறு','திங்கள்','செவ்வாய்','புதன்','வியாழன்','வெள்ளி','சனி'], - dayNamesMin: ['ஞா','தி','செ','பு','வி','வெ','ச'], - weekHeader: 'Не', - dateFormat: 'dd/mm/yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ta']); -}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-th.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-th.js deleted file mode 100644 index d57541f640f..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-th.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Thai initialisation for the jQuery UI date picker plugin. */ -/* Written by pipo (pipo@sixhead.com). */ -jQuery(function($){ - $.datepicker.regional['th'] = { - closeText: 'ปิด', - prevText: '« ย้อน', - nextText: 'ถัดไป »', - currentText: 'วันนี้', - monthNames: ['มกราคม','กุมภาพันธ์','มีนาคม','เมษายน','พฤษภาคม','มิถุนายน', - 'กรกฎาคม','สิงหาคม','กันยายน','ตุลาคม','พฤศจิกายน','ธันวาคม'], - monthNamesShort: ['ม.ค.','ก.พ.','มี.ค.','เม.ย.','พ.ค.','มิ.ย.', - 'ก.ค.','ส.ค.','ก.ย.','ต.ค.','พ.ย.','ธ.ค.'], - dayNames: ['อาทิตย์','จันทร์','อังคาร','พุธ','พฤหัสบดี','ศุกร์','เสาร์'], - dayNamesShort: ['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'], - dayNamesMin: ['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'], - weekHeader: 'Wk', - dateFormat: 'dd/mm/yy', - firstDay: 0, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['th']); -}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-tj.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-tj.js deleted file mode 100644 index ed662392c53..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-tj.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Tajiki (UTF-8) initialisation for the jQuery UI date picker plugin. */ -/* Written by Abdurahmon Saidov (saidovab@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['tj'] = { - closeText: 'Идома', - prevText: '<Қафо', - nextText: 'Пеш>', - currentText: 'Имрӯз', - monthNames: ['Январ','Феврал','Март','Апрел','Май','Июн', - 'Июл','Август','Сентябр','Октябр','Ноябр','Декабр'], - monthNamesShort: ['Янв','Фев','Мар','Апр','Май','Июн', - 'Июл','Авг','Сен','Окт','Ноя','Дек'], - dayNames: ['якшанбе','душанбе','сешанбе','чоршанбе','панҷшанбе','ҷумъа','шанбе'], - dayNamesShort: ['якш','душ','сеш','чор','пан','ҷум','шан'], - dayNamesMin: ['Як','Дш','Сш','Чш','Пш','Ҷм','Шн'], - weekHeader: 'Хф', - dateFormat: 'dd.mm.yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['tj']); -}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-uk.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-uk.js deleted file mode 100644 index 07ce206b9ec..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-uk.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Ukrainian (UTF-8) initialisation for the jQuery UI date picker plugin. */ -/* Written by Maxim Drogobitskiy (maxdao@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['uk'] = { - closeText: 'Закрити', - prevText: '<', - nextText: '>', - currentText: 'Сьогодні', - monthNames: ['Січень','Лютий','Березень','Квітень','Травень','Червень', - 'Липень','Серпень','Вересень','Жовтень','Листопад','Грудень'], - monthNamesShort: ['Січ','Лют','Бер','Кві','Тра','Чер', - 'Лип','Сер','Вер','Жов','Лис','Гру'], - dayNames: ['неділя','понеділок','вівторок','середа','четвер','п’ятниця','субота'], - dayNamesShort: ['нед','пнд','вів','срд','чтв','птн','сбт'], - dayNamesMin: ['Нд','Пн','Вт','Ср','Чт','Пт','Сб'], - weekHeader: 'Не', - dateFormat: 'dd/mm/yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['uk']); -}); \ No newline at end of file diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-vi.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-vi.js deleted file mode 100644 index b49e7eb130e..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-vi.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Vietnamese initialisation for the jQuery UI date picker plugin. */ -/* Translated by Le Thanh Huy (lthanhhuy@cit.ctu.edu.vn). */ -jQuery(function($){ - $.datepicker.regional['vi'] = { - closeText: 'Đóng', - prevText: '<Trước', - nextText: 'Tiếp>', - currentText: 'Hôm nay', - monthNames: ['Tháng Một', 'Tháng Hai', 'Tháng Ba', 'Tháng Tư', 'Tháng Năm', 'Tháng Sáu', - 'Tháng Bảy', 'Tháng Tám', 'Tháng Chín', 'Tháng Mười', 'Tháng Mười Một', 'Tháng Mười Hai'], - monthNamesShort: ['Tháng 1', 'Tháng 2', 'Tháng 3', 'Tháng 4', 'Tháng 5', 'Tháng 6', - 'Tháng 7', 'Tháng 8', 'Tháng 9', 'Tháng 10', 'Tháng 11', 'Tháng 12'], - dayNames: ['Chủ Nhật', 'Thứ Hai', 'Thứ Ba', 'Thứ Tư', 'Thứ Năm', 'Thứ Sáu', 'Thứ Bảy'], - dayNamesShort: ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'], - dayNamesMin: ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'], - weekHeader: 'Tu', - dateFormat: 'dd/mm/yy', - firstDay: 0, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['vi']); -}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-zh-HK.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-zh-HK.js deleted file mode 100644 index 3c26d0ec224..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-zh-HK.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Chinese initialisation for the jQuery UI date picker plugin. */ -/* Written by SCCY (samuelcychan@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['zh-HK'] = { - closeText: '關閉', - prevText: '<上月', - nextText: '下月>', - currentText: '今天', - monthNames: ['一月','二月','三月','四月','五月','六月', - '七月','八月','九月','十月','十一月','十二月'], - monthNamesShort: ['一','二','三','四','五','六', - '七','八','九','十','十一','十二'], - dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], - dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], - dayNamesMin: ['日','一','二','三','四','五','六'], - weekHeader: '周', - dateFormat: 'dd-mm-yy', - firstDay: 0, - isRTL: false, - showMonthAfterYear: true, - yearSuffix: '年'}; - $.datepicker.setDefaults($.datepicker.regional['zh-HK']); -}); diff --git a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-zh-TW.js b/htdocs/includes/jquery/i18n/jquery.ui.datepicker-zh-TW.js deleted file mode 100644 index 19702a65c92..00000000000 --- a/htdocs/includes/jquery/i18n/jquery.ui.datepicker-zh-TW.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Chinese initialisation for the jQuery UI date picker plugin. */ -/* Written by Ressol (ressol@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['zh-TW'] = { - closeText: '關閉', - prevText: '<上月', - nextText: '下月>', - currentText: '今天', - monthNames: ['一月','二月','三月','四月','五月','六月', - '七月','八月','九月','十月','十一月','十二月'], - monthNamesShort: ['一','二','三','四','五','六', - '七','八','九','十','十一','十二'], - dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], - dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], - dayNamesMin: ['日','一','二','三','四','五','六'], - weekHeader: '周', - dateFormat: 'yy/mm/dd', - firstDay: 1, - isRTL: false, - showMonthAfterYear: true, - yearSuffix: '年'}; - $.datepicker.setDefaults($.datepicker.regional['zh-TW']); -}); From 64f3401658330536f39345bc42a8ecaeb135f91f Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 30 Oct 2011 19:29:11 +0100 Subject: [PATCH 34/35] Fix: translation Fix: remove translation treatment --- htdocs/core/js/datepicker.js.php | 73 ++++++++++++++++++++++---------- 1 file changed, 51 insertions(+), 22 deletions(-) diff --git a/htdocs/core/js/datepicker.js.php b/htdocs/core/js/datepicker.js.php index 3ea401dfdbe..ae21d7c5077 100644 --- a/htdocs/core/js/datepicker.js.php +++ b/htdocs/core/js/datepicker.js.php @@ -76,28 +76,57 @@ $(document).ready(function() { jQuery(function($){ $.datepicker.regional['defaultlang ?>'] = { - closeText: 'transnoentitiesnoconv("Close")) ?>', - prevText: 'transnoentitiesnoconv("Previous")) ?>', - nextText: 'transnoentitiesnoconv("Next")) ?>', - currentText: 'transnoentitiesnoconv("January")) ?>', - monthNames: [transnoentitiesnoconv("January")."',". - "'".$langs->transnoentitiesnoconv("February")."',". - "'".$langs->transnoentitiesnoconv("March")."',". - "'".$langs->transnoentitiesnoconv("April")."',". - "'".$langs->transnoentitiesnoconv("May")."',". - "'".$langs->transnoentitiesnoconv("June")."',". - "'".$langs->transnoentitiesnoconv("July")."',". - "'".$langs->transnoentitiesnoconv("August")."',". - "'".$langs->transnoentitiesnoconv("September")."',". - "'".$langs->transnoentitiesnoconv("October")."',". - "'".$langs->transnoentitiesnoconv("November")."',". - "'".$langs->transnoentitiesnoconv("December")."'" ?>], - monthNamesShort: ['Janv.','Févr.','Mars','Avril','Mai','Juin','Juil.','Août','Sept.','Oct.','Nov.','Déc.'], - dayNames: ['transnoentitiesnoconv("Sunday")) ?>','transnoentitiesnoconv("Monday")) ?>','transnoentitiesnoconv("Tuesday")) ?>','transnoentitiesnoconv("Wednesday")) ?>','transnoentitiesnoconv("Thursday")) ?>','transnoentitiesnoconv("Friday")) ?>','transnoentitiesnoconv("Saturday")) ?>'], - dayNamesShort: ['transnoentitiesnoconv("SundayMin")) ?>','transnoentitiesnoconv("MondayMin")) ?>','transnoentitiesnoconv("TuesdayMin")) ?>','transnoentitiesnoconv("WednesdayMin")) ?>','transnoentitiesnoconv("ThursdayMin")) ?>','transnoentitiesnoconv("FridayMin")) ?>','transnoentitiesnoconv("SaturdayMin")) ?>'], - dayNamesMin: ['transnoentitiesnoconv("ShortSunday")) ?>','transnoentitiesnoconv("ShortMonday")) ?>','transnoentitiesnoconv("ShortTuesday")) ?>','transnoentitiesnoconv("ShortWednesday")) ?>','transnoentitiesnoconv("ShortThursday")) ?>','transnoentitiesnoconv("ShortFriday")) ?>','transnoentitiesnoconv("ShortSaturday")) ?>'], - weekHeader: 'Sem.', - dateFormat: 'transnoentitiesnoconv("FormatDateShortJQuery"); ?>', + closeText: 'trans("Close") ?>', + prevText: 'trans("Previous") ?>', + nextText: 'trans("Next") ?>', + currentText: 'trans("Now") ?>', + monthNames: [trans("January")."',". + "'".$langs->trans("February")."',". + "'".$langs->trans("March")."',". + "'".$langs->trans("April")."',". + "'".$langs->trans("May")."',". + "'".$langs->trans("June")."',". + "'".$langs->trans("July")."',". + "'".$langs->trans("August")."',". + "'".$langs->trans("September")."',". + "'".$langs->trans("October")."',". + "'".$langs->trans("November")."',". + "'".$langs->trans("December")."'" ?>], + monthNamesShort: [trans("JanuaryMin")."',". + "'".$langs->trans("FebruaryMin")."',". + "'".$langs->trans("MarchMin")."',". + "'".$langs->trans("AprilMin")."',". + "'".$langs->trans("MayMin")."',". + "'".$langs->trans("JuneMin")."',". + "'".$langs->trans("JulyMin")."',". + "'".$langs->trans("AugustMin")."',". + "'".$langs->trans("SeptemberMin")."',". + "'".$langs->trans("OctoberMin")."',". + "'".$langs->trans("NovemberMin")."',". + "'".$langs->trans("DecemberMin")."'" ?>], + dayNames: [trans("Sunday")."',". + "'".$langs->trans("Monday")."',". + "'".$langs->trans("Tuesday")."',". + "'".$langs->trans("Wednesday")."',". + "'".$langs->trans("Thursday")."',". + "'".$langs->trans("Friday")."',". + "'".$langs->trans("Saturday")."'" ?>], + dayNamesShort: [trans("SundayMin")."',". + "'".$langs->trans("MondayMin")."',". + "'".$langs->trans("TuesdayMin")."',". + "'".$langs->trans("WednesdayMin")."',". + "'".$langs->trans("ThursdayMin")."',". + "'".$langs->trans("FridayMin")."',". + "'".$langs->trans("SaturdayMin")."'" ?>], + dayNamesMin: [trans("ShortSunday")."',". + "'".$langs->trans("ShortMonday")."',". + "'".$langs->trans("ShortTuesday")."',". + "'".$langs->trans("ShortWednesday")."',". + "'".$langs->trans("ShortThursday")."',". + "'".$langs->trans("ShortFriday")."',". + "'".$langs->trans("ShortSaturday")."'" ?>], + weekHeader: 'Sem.', // TODO add specific to country + dateFormat: 'trans("FormatDateShortJQuery"); ?>', firstDay: 1, // TODO add specific to country isRTL: false, // TODO add specific to country showMonthAfterYear: false, // TODO add specific to country From a508d1869338213ea808cbfb3b2ab32085dafbf5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 30 Oct 2011 19:38:01 +0100 Subject: [PATCH 35/35] Set other locales. --- htdocs/core/js/datepicker.js.php | 43 ++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/htdocs/core/js/datepicker.js.php b/htdocs/core/js/datepicker.js.php index f59cdfb6c3a..bf868991942 100644 --- a/htdocs/core/js/datepicker.js.php +++ b/htdocs/core/js/datepicker.js.php @@ -46,18 +46,18 @@ else header('Cache-Control: no-cache'); // Define tradMonths javascript array (we define this in datepicker AND in parent page to avoid errors with IE8) $tradMonths=array( -$langs->trans("January"), -$langs->trans("February"), -$langs->trans("March"), -$langs->trans("April"), -$langs->trans("May"), -$langs->trans("June"), -$langs->trans("July"), -$langs->trans("August"), -$langs->trans("September"), -$langs->trans("October"), -$langs->trans("November"), -$langs->trans("December") +dol_escape_js($langs->transnoentitiesnoconv("January")), +dol_escape_js($langs->transnoentitiesnoconv("February")), +dol_escape_js($langs->transnoentitiesnoconv("March")), +dol_escape_js($langs->transnoentitiesnoconv("April")), +dol_escape_js($langs->transnoentitiesnoconv("May")), +dol_escape_js($langs->transnoentitiesnoconv("June")), +dol_escape_js($langs->transnoentitiesnoconv("July")), +dol_escape_js($langs->transnoentitiesnoconv("August")), +dol_escape_js($langs->transnoentitiesnoconv("September")), +dol_escape_js($langs->transnoentitiesnoconv("October")), +dol_escape_js($langs->transnoentitiesnoconv("November")), +dol_escape_js($langs->transnoentitiesnoconv("December")) ); ?> @@ -92,14 +92,25 @@ jQuery(function($){ "'".$langs->transnoentitiesnoconv("October")."',". "'".$langs->transnoentitiesnoconv("November")."',". "'".$langs->transnoentitiesnoconv("December")."'" ?>], - monthNamesShort: ['Janv.','Févr.','Mars','Avril','Mai','Juin','Juil.','Août','Sept.','Oct.','Nov.','Déc.'], + monthNamesShort: [transnoentitiesnoconv("JanuaryMin")."',". + "'".$langs->transnoentitiesnoconv("FebruaryMin")."',". + "'".$langs->transnoentitiesnoconv("MarchMin")."',". + "'".$langs->transnoentitiesnoconv("AprilMin")."',". + "'".$langs->transnoentitiesnoconv("MayMin")."',". + "'".$langs->transnoentitiesnoconv("JuneMin")."',". + "'".$langs->transnoentitiesnoconv("JulyMin")."',". + "'".$langs->transnoentitiesnoconv("AugustMin")."',". + "'".$langs->transnoentitiesnoconv("SeptemberMin")."',". + "'".$langs->transnoentitiesnoconv("OctoberMin")."',". + "'".$langs->transnoentitiesnoconv("NovemberMin")."',". + "'".$langs->transnoentitiesnoconv("DecemberMin")."'" ?>], dayNames: ['transnoentitiesnoconv("Sunday")) ?>','transnoentitiesnoconv("Monday")) ?>','transnoentitiesnoconv("Tuesday")) ?>','transnoentitiesnoconv("Wednesday")) ?>','transnoentitiesnoconv("Thursday")) ?>','transnoentitiesnoconv("Friday")) ?>','transnoentitiesnoconv("Saturday")) ?>'], dayNamesShort: ['transnoentitiesnoconv("SundayMin")) ?>','transnoentitiesnoconv("MondayMin")) ?>','transnoentitiesnoconv("TuesdayMin")) ?>','transnoentitiesnoconv("WednesdayMin")) ?>','transnoentitiesnoconv("ThursdayMin")) ?>','transnoentitiesnoconv("FridayMin")) ?>','transnoentitiesnoconv("SaturdayMin")) ?>'], dayNamesMin: ['transnoentitiesnoconv("ShortSunday")) ?>','transnoentitiesnoconv("ShortMonday")) ?>','transnoentitiesnoconv("ShortTuesday")) ?>','transnoentitiesnoconv("ShortWednesday")) ?>','transnoentitiesnoconv("ShortThursday")) ?>','transnoentitiesnoconv("ShortFriday")) ?>','transnoentitiesnoconv("ShortSaturday")) ?>'], - weekHeader: 'Sem.', + weekHeader: 'transnoentitiesnoconv("Week")) ?>', dateFormat: 'transnoentitiesnoconv("FormatDateShortJQuery"); ?>', - firstDay: 1, - isRTL: false, + firstDay: global->MAIN_START_WEEK; ?>, + isRTL: trans("DIRECTION")=='rtl'?'true':'false'); ?>, showMonthAfterYear: false, yearSuffix: ''}; $.datepicker.setDefaults($.datepicker.regional['defaultlang ?>']);
'.$langs->trans("Ref").''; + print '
'.$langs->trans("Ref").''; print $form->showrefnav($object,'id','',1,'rowid','ref',''); print '
'.$langs->trans("Type").''.$langs->trans($object->type).'
'.$langs->trans("Type").''; + print $form->editInPlace($langs->trans($object->type), 'type', $user->rights->deplacement->creer, 'select'); + //print $langs->trans($object->type); + print '
'.$langs->trans("Person").''; diff --git a/htdocs/compta/deplacement/index.php b/htdocs/compta/deplacement/index.php index 995ae8966c4..e4ebbfe2021 100644 --- a/htdocs/compta/deplacement/index.php +++ b/htdocs/compta/deplacement/index.php @@ -102,9 +102,9 @@ print ''.$langs->trans("Statistics").'