Commit 0199cd9d authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

mise à jour language.json

parent b07909ce
......@@ -97,12 +97,12 @@ var langJson = {
},
"sp_infoWiki": {
"fr": "WikiColor est un coloriseur automatique de texte basé sur les transcriptions phonétiques du Wiktionnaire, du <a href='https://repository.ortolang.fr/api/content/morphalou/2/LISEZ_MOI.html' target='_blank'>lexique Morphalou3.1</a> et de la collaboration de nombreux utilisateurs. Vous pouvez consulter et participer à l'amélioration du dictionnaire en cliquant sur le bouton ci-dessous. L'alignement phono-graphémique reste encore expérimental, toute suggestion de votre part est bienvenue ! N'hésitez pas à visiter <a href='https://alem.hypotheses.org/outils-alem-app/wikicolor'>notre site</a>, et participez aux discussions sur <a href='https://groups.google.com/forum/#!forum/alem-app'>le forum</a>.",
"en": "WikiColor is an automatic text coloriser based on Wiktionary's phonetic transcriptions, <a href='http://www.speech.cs.cmu.edu/cgi-bin/cmudict/?in=pronunciation&stress=-s' target='_blank'>CMU Pronouncing Dictionary</a>, <a href='https://github.com/JoseLlarena/Britfone' target='_blank'>Britfone Pronunciation Dictionary</a> and collaboration of our users community. Please consider to add words and spellings to our word base! Phono-graphemic alignment still is experimental, especially for English, any suggestion from you will be welcome! We are still working on the phonological representation of English, which is a big challenge. Please let us know your suggestions in <a href='https://groups.google.com/forum/#!forum/alem-app'>our Forum</a>. We also have <a href='https://alem.hypotheses.org/outils-alem-app/wikicolor'>a website</a> (English content will come soon!).",
"zh": "WikiColor is an automatic text coloriser based on <a href='https://cc-cedict.org/wiki/' target='_blank'>the CC-CEdict Dictionnary</a>, the Python phonetiser <a href='https://pypi.org/project/pinyin/' target='_blank'>Pinyin0.4.0</a> and collaboration of our users community. Please consider to add words and spellings to our word base! Please let us know your suggestions in <a href='https://groups.google.com/forum/#!forum/alem-app'>our Forum</a>. We also have <a href='https://alem.hypotheses.org/outils-alem-app/wikicolor'>a website</a> (English content will come soon!)."
"en": "WikiColor is an automatic text coloriser based on Wiktionary's phonetic transcriptions, <a href='http://www.speech.cs.cmu.edu/cgi-bin/cmudict/?in=pronunciation&stress=-s' target='_blank'>CMU Pronouncing Dictionary</a>, <a href='https://github.com/JoseLlarena/Britfone' target='_blank'>Britfone Pronunciation Dictionary</a> and collaboration of our users community. Please consider to add words and phonetic transcriptions to our word base! Phono-graphemic alignment still is experimental, especially for English, any suggestion from you will be welcome! We are still working on the phonological representation of English, which is a big challenge. Please let us know your suggestions in <a href='https://groups.google.com/forum/#!forum/alem-app'>our Forum</a>. We also have <a href='https://alem.hypotheses.org/outils-alem-app/wikicolor'>a website</a> (English content will come soon!).",
"zh": "WikiColor is an automatic text coloriser based on <a href='https://cc-cedict.org/wiki/' target='_blank'>the CC-CEdict Dictionnary</a>, the Python phonetiser <a href='https://pypi.org/project/pinyin/' target='_blank'>Pinyin0.4.0</a> and collaboration of our users community. Please consider to add words and phonetic transcriptions to our word base! Please let us know your suggestions in <a href='https://groups.google.com/forum/#!forum/alem-app'>our Forum</a>. We also have <a href='https://alem.hypotheses.org/outils-alem-app/wikicolor'>a website</a> (English content will come soon!)."
},
"sp_btnEditDico": {
"fr": "Consulter/éditer le dictionnaire",
"en": "Search/edit WikiColor's dictionary",
"fr": "Consulter/éditer les dictionnaires",
"en": "Search/edit WikiColor's dictionaries",
"zh": "查询/编辑辞典"
},
"sp_footDic": {
......@@ -119,5 +119,96 @@ var langJson = {
"fr": "Accéder aux tutoriels WikiColor",
"en": "Access WikiColor's tutorials",
"zh": "访问教程"
},
"sp_copypasteH2": {
"fr": "Copier/coller le résultat",
"en": "Copy/Paste the output",
"zh": "Copy/Paste the output"
},
"sp_copypasteP": {
"fr": "Copier/coller le texte ci-dessous dans LibreOffice, Word ou dans un e-mail, par exemple.",
"en": "Copy/Paste the texte below to LibreOffice, Word or to an e-mail, for example.",
"zh": "Copy/Paste the texte below to LibreOffice, Word or to an e-mail, for example."
},
"myTooltip": {
"fr": "Copier",
"en": "Copy",
"zh": "Copy"
},
"sp_copypasteCopier": {
"fr": "Copier",
"en": "Copy",
"zh": "Copy"
},
"sp_copypasteCodeSource": {
"fr": "Code Source",
"en": "Source Code",
"zh": "Source Code"
},
"myTooltipWhite": {
"fr": "Copier",
"en": "Copy",
"zh": "Copy"
},
"sp_copypasteCopierWhite": {
"fr": "Copier",
"en": "Copy",
"zh": "Copy"
},
"sp_copypasteCodeSourceWhite": {
"fr": "Code Source",
"en": "Source Code",
"zh": "Source Code"
},
"sp_popAddwHead": {
"fr": "Ajouter ce mot au dictionnaire de WikiColor",
"en": "Add this word to WikiColor's dictionary",
"zh": "Add this word to WikiColor's dictionary"
},
"sp_popAddwWord": {
"fr": "Mot :",
"en": "Word:",
"zh": "Word:"
},
"sp_popAddwTrans": {
"fr": "Transcription phonétique (API) :",
"en": "Phonetic transcription (IPA):",
"zh": "Phonetic transcription (Pinyin, ex. ni2 hao3):"
},
"sp_popAddwInfo": {
"fr": "(Vous pouvez saisir plusieurs transcriptions différentes en les séparant par une virgule)",
"en": "(You can write different possible phonetic transcriptions between commas)",
"zh": "(You can write different possible phonetic transcriptions between commas)"
},
"sp_popAddwAdd": {
"fr": "Ajouter",
"en": "Add",
"zh": "Add"
},
"alert_addAtLeastOneTrans": {
"fr": "Ajoutez au moins une transcription phonétique pour pouvoir enregistrer la nouvelle entrée dans le dictionnaire.",
"en": "Add at least one transcription!",
"zh": "Add at least one transcription!"
},
"ti_bugMark": {
"fr": "Le Fidel utilisé ne permet pas l'alignement de",
"en": "The Fidel used doesn't allow the alignment of",
"zh": "The Fidel used doesn't allow the alignment of"
},
"sp_LookUpDicos": {
"fr": "Consulter/éditer les dictionnaires WikiColor",
"en": "Search/edit WikiColor's dictionaries",
"zh": "Search/edit WikiColor's dictionaries"
},
"sp_LookUpDicosInfo": {
"fr": "WikiColor se base sur des dictionnaires phonétiques pour coloriser les mots. Ces dictionnaires sont assemblés à partir de différentes sources, et nous vous invitons à les enrichir ! Merci d'avance pour votre collaboration.",
"en": "WikiColor uses pronunciation dictionaries to colorise words. Those dictionaries are made from different sources, and we invite you to improve them! Thank you for your collaboration.",
"zh": "WikiColor uses pronunciation dictionaries to colorise words. Those dictionaries are made from different sources, and we invite you to improve them! Thank you for your collaboration."
},
"sp_LookUpDicosRetour": {
"fr": "Retour au coloriseur",
"en": "Back to the coloriser",
"zh": "Back to the coloriser"
}
}
\ No newline at end of file
......@@ -26,7 +26,6 @@ async function getColorisation() {
// ENVOI
const response = await fetch('/colorize/', options)
console.log('En attente de réponse...');
const data = await response.json();
console.log(data);
......@@ -247,7 +246,7 @@ function unknownMark() {
function dicoAddPop(mot) {
document.getElementById('popAddwMot').innerHTML = "« "+mot+" »";
document.getElementById('popAddwTrans').value = '';
document.getElementById('popAddwInputSpan').innerHTML = '<input id="popAddwTrans" class="popAddwTrans api-kb" type="text" value=""/>';
var modalpopAddw = document.getElementById('popAddw');
modalpopAddw.style.display = "block";
getAPIkeyboard(thisPageLang);
......@@ -264,7 +263,7 @@ function dicoAddPopBtnAjouter() {
if (trans.length > 0) {
validEntry(mot, trans);
} else {
window.alert("Ajoutez au moins une transcription phonétique pour pouvoir enregistrer la nouvelle entrée dans le dictionnaire.");
window.alert(langJson['alert_addAtLeastOneTrans']);
}
}
......@@ -312,7 +311,7 @@ function bugMark() {
var thisMotId = bugs[i].parentNode.id;
console.log(thisMotId);
var infoMot = dicoTok[thisMotId][dicoId[thisMotId]];
newMark.title = 'Le Fidel utilisé ne permet pas l\'alignement de /' + infoMot[2] + '/: ' + infoMot[3];
newMark.title = langJson['ti_bugMark'] + ' /' + infoMot[2] + '/: ' + infoMot[3];
bugs[i].parentNode.insertBefore(newMark,bugs[i].nextSibling);
};
}
......
......@@ -169,27 +169,27 @@
<div class="modal-content">
<div class="modal-header">
<span class="close">&times;</span>
<h2>Copier/coller le résultat</h2>
<h2><span id="sp_copypasteH2" class="langspan"></span></h2>
</div>
<div class="modal-body">
<p>Copier/coller le texte ci-dessous dans LibreOffice, Word ou dans un e-mail, par exemple.</p>
<p><span id="sp_copypasteP" class="langspan"></span></p>
<div id="pLienDiv" contenteditable="true" class="pLienDiv" style="background-color: #000000;"></div>
<textarea id="pLienDivCode" style="display: none; font-family: 'Courier New', Courier, monospace; font-size: small; width:100%; height:100px"></textarea>
<div class="copyButton">
<button onclick="toClipBoard('pLienDiv','myTooltip')" onmouseout="outFunc('myTooltip')"><span class="copyButtonText" id="myTooltip">Copier</span>Copier</button>
<button onclick="toClipBoard('pLienDiv','myTooltip')" onmouseout="outFunc('myTooltip')"><span class="copyButtonText langspan" id="myTooltip"></span><span id="sp_copypasteCopier" class="langspan"></span></button>
</div>
<div class="copyButton">
<button onclick="document.getElementById('pLienDivCode').style.display = 'block';">Code Source</button>
<button onclick="document.getElementById('pLienDivCode').style.display = 'block';"><span id="sp_copypasteCodeSource" class="langspan"></span></button>
</div>
<div id="pLienDivWhite" contenteditable="true" class="pLienDiv" style="-webkit-text-stroke-width: 0.5px;-webkit-text-stroke-color: #000000;"></div>
<textarea id="pLienDivWhiteCode" style="display: none; font-family: 'Courier New', Courier, monospace; font-size: small; width:100%; height:100px"></textarea>
<div class="copyButton">
<button onclick="toClipBoard('pLienDivWhite', 'myTooltipWhite')" onmouseout="outFunc('myTooltipWhite')"><span class="copyButtonText" id="myTooltipWhite">Copier</span>Copier</button>
<button onclick="toClipBoard('pLienDivWhite', 'myTooltipWhite')" onmouseout="outFunc('myTooltipWhite')"><span class="copyButtonText langspan" id="myTooltipWhite"></span><span id="sp_copypasteCopierWhite" class="langspan"></span></button>
</div>
<div class="copyButton">
<button onclick="document.getElementById('pLienDivWhiteCode').style.display = 'block';">Code Source</button>
<button onclick="document.getElementById('pLienDivWhiteCode').style.display = 'block';"><span id="sp_copypasteCodeSourceWhite" class="langspan"></span></button>
</div>
</div>
......@@ -203,13 +203,13 @@
<div id="popAddw" class="modal">
<div class="popAddw-content">
<div class="popAddw-header">
Ajouter un mot au dictionnaire
<span id="sp_popAddwHead" class="langspan"></span>
</div>
<div class="popAddw-body">
<b>Mot : </b><span id="popAddwMot"></span><br/>
<b>Transcription (API) : </b><input id="popAddwTrans" class="popAddwTrans api-kb" type="text" value=""/>
<p><i>(Vous pouvez saisir plusieurs transcriptions différentes en les séparant par une virgule)</i></p>
<button onclick="dicoAddPopBtnAjouter()" id="popAddwValid" style="margin: 5px;">Ajouter</button>
<b><span id="sp_popAddwWord" class="langspan"></span></b> <span id="popAddwMot"></span><br/>
<b><span id="sp_popAddwTrans" class="langspan"></span></b> <span id="popAddwInputSpan"></span>
<p><i><span id="sp_popAddwInfo" class="langspan"></span></i></p>
<button onclick="dicoAddPopBtnAjouter()" id="popAddwValid" style="margin: 5px;"><span id="sp_popAddwAdd" class="langspan"></span></button>
</div>
</div>
</div>
......
......@@ -4,12 +4,12 @@
{% block content %}
<div class="editDico p-4">
<h2>Consulter les dictionnaires WikiColor</h2>
<h2><span id="sp_LookUpDicos" class="langspan"></span></h2>
<div class="divInfoWiki">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-info-circle-fill" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412l-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM8 5.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"/>
</svg>
<span>WikiColor se base sur des dictionnaires phonétiques pour coloriser les mots. Ces dictionnaires sont assemblés à partir de différentes sources, et nous vous invitons à les enrichir ! Merci d'avance pour votre collaboration.</span>
<span id="sp_LookUpDicosInfo" class="langspan"></span>
</div>
<p class="m-3" style="text-align: left;font-style: italic;"></p>
<div class="listDico my-4 d-flex justify-content-evenly align-self-start">
......@@ -21,20 +21,21 @@
<p>1 450 000+ entrées.</p>
<p>Issu de :</p>
<ul>
<li>Wiktionnaire français</li>
<li>Wiktionnaire français (dump du 01/03/2020)</li>
<li>Morphalou3.1</li>
<li>Votre collaboration :)</li>
</ul>
</div>
</div>
<div class="card cardDico border-dark" onclick="location.href='en';">
<div class="card-header"><h4>Anglais</h4></div>
<div class="card-header"><h4>English</h4></div>
<div class="card-body" style="text-align: left;">
<!-- <p>{{ data.nbMotsEn|intcomma }} entrées.</p> -->
<p>155 000+ entrées.</p>
<p>Issu de :</p>
<p>155.000+ entries.</p>
<p>From:</p>
<ul>
<li>English Wiktionary</li>
<li>English Wiktionary (dump of 2020/07/04)</li>
<li>CMU Pronuncing Dictionary</li>
<li>Britfone</li>
<li>Help from you guys :)</li>
......@@ -43,11 +44,11 @@
</div>
<div class="card cardDico border-dark" onclick="location.href='zh';">
<div class="card-header"><h4>Mandarin</h4></div>
<div class="card-header"><h4>中文(普通話)</h4></div>
<div class="card-body" style="text-align: left;">
<!-- <p>{{ data.nbMotsZh|intcomma }} entrées.</p> -->
<p>188 000+ entrées.</p>
<p>Issu de :</p>
<p>188.000+</p>
<p>起源:</p>
<ul>
<li>CC-CEDICT</li>
<li>你們的幫助:)</li>
......@@ -59,7 +60,7 @@
</div>
<div>
<form action="/app/" method="POST">{% csrf_token %}
<button formaction="/app/">Retour au coloriseur</button>
<button formaction="/app/"><span id="sp_LookUpDicosRetour" class="langspan"></span></button>
</form>
</div>
{% endblock %}
......
Supports Markdown
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