Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
wikicolor
Commits
334bc519
Commit
334bc519
authored
Jul 15, 2020
by
Sylvain Coulange
Browse files
debug editDico.html language interface
parent
3965b0a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
static/scripts/editDico.js
View file @
334bc519
// 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
();
...
...
templates/editDico.html
View file @
334bc519
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment