Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 334bc519 authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

debug editDico.html language interface

parent 3965b0a0
// SET DEFAULT FRENCH TEMPORARY
interface("fr"); // default, temporary
function interface(lang) {
console.log("Langue d'interface:",lang);
thisPageLang = lang;
var langspanList = document.getElementsByClassName("langspan");
if (lang == "en") {
for (i=0; i<langspanList.length; i++) {
span = langspanList[i];
span.innerHTML = langJson[span.id]["en"];
}
} else { // "fr" par défaut
for (i=0; i<langspanList.length; i++) {
span = langspanList[i];
span.innerHTML = langJson[span.id]["fr"];
}
}
}
// Récupération de la liste des modifications du dictionnaire
var logDic = {};
getLogFile();
......
......@@ -18,7 +18,7 @@
</head>
<body>
{% include 'header.html' %}
<div class="header"><span id="sp_header" class="langspan"></span></div>
<div class="editDico">
<h2>Rechercher une entrée du dictionnaire</h2>
......@@ -106,6 +106,7 @@
{% include 'footer.html' %}
<script type="text/javascript" src="{% static 'languages/languages.js' %}"></script>
<script src="{% static 'scripts/editDico.js' %}"></script>
<script src="{% static 'scripts/keyboard.js' %}"></script>
</body>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment