|
|
@@ -1,4 +1,4 @@
|
|
|
-function term_edit_dlg_init(title = "Trem") {
|
|
|
+function term_edit_dlg_init(title = gLocal.gui.dict_terms) {
|
|
|
$("body").append('<div id="term_edit_dlg" title="' + title + '"><div id="term_edit_dlg_content"></div></div>');
|
|
|
|
|
|
$("#term_edit_dlg").dialog({
|
|
|
@@ -6,14 +6,14 @@ function term_edit_dlg_init(title = "Trem") {
|
|
|
width: 550,
|
|
|
buttons: [
|
|
|
{
|
|
|
- text: "Save",
|
|
|
+ text: gLocal.gui.save,
|
|
|
click: function () {
|
|
|
term_edit_dlg_save();
|
|
|
$(this).dialog("close");
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- text: "Cancel",
|
|
|
+ text: gLocal.gui.cancel,
|
|
|
click: function () {
|
|
|
$(this).dialog("close");
|
|
|
},
|
|
|
@@ -49,38 +49,73 @@ function term_edit_dlg_render(word = "") {
|
|
|
output += "<form action='##' id='form_term'>";
|
|
|
output += "<input type='hidden' id='term_edit_form_id' name='id' value='" + word.guid + "'>";
|
|
|
output += "<fieldset>";
|
|
|
- output += "<legend>Spell</legend>";
|
|
|
- output += "<input type='input' id='term_edit_form_word' name='word' value='" + word.word + "'>";
|
|
|
+ output += "<legend>" + gLocal.gui.spell + "</legend>";
|
|
|
+ output +=
|
|
|
+ "<input type='input' id='term_edit_form_word' name='word' value='" +
|
|
|
+ word.word +
|
|
|
+ "'placeholder=" +
|
|
|
+ gLocal.gui.required +
|
|
|
+ ">";
|
|
|
output += "</fieldset>";
|
|
|
|
|
|
output += "<fieldset>";
|
|
|
- output += "<legend>Meaning</legend>";
|
|
|
- output += "<input type='input' id='term_edit_form_meaning' name='mean' value='" + word.meaning + "'>";
|
|
|
+ output += "<legend>" + gLocal.gui.first_choice_word + "</legend>";
|
|
|
+ output +=
|
|
|
+ "<input type='input' id='term_edit_form_meaning' name='mean' value='" +
|
|
|
+ word.meaning +
|
|
|
+ "' placeholder=" +
|
|
|
+ gLocal.gui.required +
|
|
|
+ ">";
|
|
|
output += "</fieldset>";
|
|
|
|
|
|
output += "<fieldset>";
|
|
|
- output += "<legend>Meaning</legend>";
|
|
|
- output += "<input type='input' id='term_edit_form_othermeaning name='mean2' value='" + word.other_meaning + "'>";
|
|
|
+ output += "<legend>" + gLocal.gui.other_meaning + "</legend>";
|
|
|
+ output +=
|
|
|
+ "<input type='input' id='term_edit_form_othermeaning name='mean2' value='" +
|
|
|
+ word.other_meaning +
|
|
|
+ "' placeholder=" +
|
|
|
+ gLocal.gui.optional +
|
|
|
+ ">";
|
|
|
output += "</fieldset>";
|
|
|
|
|
|
output += "<fieldset>";
|
|
|
- output += "<legend>Tag</legend>";
|
|
|
- output += "<input type='input' id='term_edit_form_tag name='tag' value='" + word.tag + "'>";
|
|
|
+ output += "<legend>" + gLocal.gui.tag + "</legend>";
|
|
|
+ output +=
|
|
|
+ "<input type='input' id='term_edit_form_tag name='tag' name='tag' value='" +
|
|
|
+ word.tag +
|
|
|
+ "' placeholder=" +
|
|
|
+ gLocal.gui.optional +
|
|
|
+ " >";
|
|
|
output += "</fieldset>";
|
|
|
|
|
|
output += "<fieldset>";
|
|
|
- output += "<legend>Language</legend>";
|
|
|
- output += "<input type='input' id='term_edit_form_language' name='language' value='" + word.language + "'>";
|
|
|
+ output += "<legend>" + gLocal.gui.language + "</legend>";
|
|
|
+ output +=
|
|
|
+ "<input type='input' id='term_edit_form_language' name='language' value='" +
|
|
|
+ word.language +
|
|
|
+ "' placeholder=" +
|
|
|
+ gLocal.gui.required +
|
|
|
+ " >";
|
|
|
output += "</fieldset>";
|
|
|
|
|
|
output += "<fieldset>";
|
|
|
- output += "<legend>Channal</legend>";
|
|
|
- output += "<input type='input' id='term_edit_form_channal' name='channal' value='" + word.channal + "'>";
|
|
|
+ output += "<legend>" + gLocal.gui.channel + "</legend>";
|
|
|
+ output +=
|
|
|
+ "<input type='input' id='term_edit_form_channal' name='channal' value='" +
|
|
|
+ word.channal +
|
|
|
+ "' placeholder=" +
|
|
|
+ gLocal.gui.optional +
|
|
|
+ ">";
|
|
|
output += "</fieldset>";
|
|
|
|
|
|
output += "<fieldset>";
|
|
|
- output += "<legend>Note</legend>";
|
|
|
- output += "<textarea id='term_edit_form_note' name='note'>" + word.note + "</textarea>";
|
|
|
+ output += "<legend>" + gLocal.gui.encyclopedia + "</legend>";
|
|
|
+ output +=
|
|
|
+ "<textarea id='term_edit_form_note' name='note' placeholder=" +
|
|
|
+ gLocal.gui.optional +
|
|
|
+ ">" +
|
|
|
+ word.note +
|
|
|
+ "</textarea>";
|
|
|
output += "</fieldset>";
|
|
|
|
|
|
output += "</form>";
|