updated sense label

This commit is contained in:
Luka Kavčič 2020-10-16 16:50:50 +02:00
parent a8b84c4b37
commit a571a9ceb1
2 changed files with 5 additions and 2 deletions

View File

@ -8,7 +8,8 @@ TAGS = {
"latinsko": [], "latinsko": [],
"razmerje": ["približek", "sinonim", "antonim"], "razmerje": ["približek", "sinonim", "antonim"],
"semantično": [], "semantično": [],
"English-full": [] "Polno angleško": [],
"Blagovna znamka": []
} }
SLO2ENG_TAGS = { SLO2ENG_TAGS = {
@ -22,7 +23,8 @@ SLO2ENG_TAGS = {
"latinsko": "latin", "latinsko": "latin",
"razmerje": "relation", "razmerje": "relation",
"semantično": "semantic", "semantično": "semantic",
"English-full": "Polno angleško" "Polno angleško": "English-full",
"Blagovna znamka": "trademark"
} }
ENG2SLO_TAGS = { value: key for key, value in SLO2ENG_TAGS.items() } ENG2SLO_TAGS = { value: key for key, value in SLO2ENG_TAGS.items() }

View File

@ -104,6 +104,7 @@ def label_list_editor(current_labels, add_label_message_class):
center = h("select.label-value", {}, options) center = h("select.label-value", {}, options)
right_value = label if label not in TAGS[label_type] else "" right_value = label if label not in TAGS[label_type] else ""
right_value = "blagovna znamka" if label_type == 'Blagovna znamka' else right_value
right = h("input.label-value-other", right = h("input.label-value-other",
{"props": {"type": "text", "value": right_value, "placeholder": "drugo"}}, {"props": {"type": "text", "value": right_value, "placeholder": "drugo"}},
[]) [])