noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 08/39: #1798 French calendar


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 08/39: #1798 French calendar
Date: Sat, 11 Jul 2020 13:20:37 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit dcede7bfbcb1583795ac7d1059514c23298e3224
Author: Dany De Bontridder <danydb@noalyss.eu>
AuthorDate: Sun May 24 21:54:06 2020 +0200

    #1798 French calendar
---
 html/js/lang/calendar-fr.js | 18 +++++++++---------
 include/lib/ac_common.php   | 14 ++++++++++++--
 2 files changed, 21 insertions(+), 11 deletions(-)

diff --git a/html/js/lang/calendar-fr.js b/html/js/lang/calendar-fr.js
index 2a9e0b2..1bfdc94 100644
--- a/html/js/lang/calendar-fr.js
+++ b/html/js/lang/calendar-fr.js
@@ -48,17 +48,17 @@ Calendar._SDN = new Array
 // full month names
 Calendar._MN = new Array
 ("Janvier",
- "F�vrier",
+ "Février",
  "Mars",
  "Avril",
  "Mai",
  "Juin",
  "Juillet",
- "Ao�t",
+ "Août",
  "Septembre",
  "Octobre",
  "Novembre",
- "D�cembre");
+ "Décembre");
 
 // short month names
 Calendar._SMN = new Array
@@ -83,7 +83,7 @@ Calendar._TT["ABOUT"] =
 "DHTML Date/Heure Selecteur\n" +
 "(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this 
this ;-)
 "Pour la derniere version visitez : 
http://www.dynarch.com/projects/calendar/\n"; +
-"Distribu� par GNU LGPL.  Voir http://gnu.org/licenses/lgpl.html pour les 
details." +
+"Distribué par GNU LGPL.  Voir http://gnu.org/licenses/lgpl.html pour les 
details." +
 "\n\n" +
 "Selection de la date :\n" +
 "- Utiliser les bouttons \xab, \xbb  pour selectionner l\'annee\n" +
@@ -95,13 +95,13 @@ Calendar._TT["ABOUT_TIME"] = "\n\n" +
 "- ou Maj-clic pour decrementer\n" +
 "- ou clic et glisser-deplacer pour une selection plus rapide";
 
-Calendar._TT["PREV_YEAR"] = "Ann�e pr�c. (maintenir pour menu)";
-Calendar._TT["PREV_MONTH"] = "Mois pr�c. (maintenir pour menu)";
+Calendar._TT["PREV_YEAR"] = "Année préc. (maintenir pour menu)";
+Calendar._TT["PREV_MONTH"] = "Mois préc. (maintenir pour menu)";
 Calendar._TT["GO_TODAY"] = "Atteindre la date du jour";
 Calendar._TT["NEXT_MONTH"] = "Mois suiv. (maintenir pour menu)";
-Calendar._TT["NEXT_YEAR"] = "Ann�e suiv. (maintenir pour menu)";
-Calendar._TT["SEL_DATE"] = "S�lectionner une date";
-Calendar._TT["DRAG_TO_MOVE"] = "D�placer";
+Calendar._TT["NEXT_YEAR"] = "Année suiv. (maintenir pour menu)";
+Calendar._TT["SEL_DATE"] = "Sélectionner une date";
+Calendar._TT["DRAG_TO_MOVE"] = "Déplacer";
 Calendar._TT["PART_TODAY"] = " (Aujourd'hui)";
 
 // the following is to inform that "%s" is to be the first day of week
diff --git a/include/lib/ac_common.php b/include/lib/ac_common.php
index df4ae72..39c65de 100644
--- a/include/lib/ac_common.php
+++ b/include/lib/ac_common.php
@@ -342,7 +342,17 @@ function html_page_start($p_theme="", $p_script="", 
$p_script2="")
     $p_script2 . "
     ";
     echo '<script language="javascript" src="js/calendar.js"></script>
-    <script type="text/javascript" src="js/lang/calendar-en.js"></script>
+    <script type="text/javascript" src="js/lang/calendar-en.js"></script>';
+
+    if (isset($_SESSION['g_lang']) && $_SESSION['g_lang']=='fr_FR.utf8' )
+    {
+       echo '<script type="text/javascript" 
src="js/lang/calendar-fr.js"></script>';
+    }
+    if (isset($_SESSION['g_lang']) && $_SESSION['g_lang']=='nl_NL.utf8' )
+    {
+       echo '<script type="text/javascript" 
src="js/lang/calendar-nl.js"></script>';
+    }
+    echo '
     <script language="javascript" src="js/calendar-setup.js"></script>
     <LINK REL="stylesheet" type="text/css" href="calendar-blue.css" 
media="screen">
     ';
@@ -1365,4 +1375,4 @@ function convert_to_rtf($p_string)
         }
     }
     return $result;
-}
\ No newline at end of file
+}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]