Browse Source

updated sense label

pull/10/head
Luka Kavčič 11 months ago
parent
commit
a571a9ceb1
  1. 6
      src/model/tags.py
  2. 1
      src/view/modal_templates.py

6
src/model/tags.py

@ -8,7 +8,8 @@ TAGS = {
"latinsko": [],
"razmerje": ["približek", "sinonim", "antonim"],
"semantično": [],
"English-full": []
"Polno angleško": [],
"Blagovna znamka": []
}
SLO2ENG_TAGS = {
@ -22,7 +23,8 @@ SLO2ENG_TAGS = {
"latinsko": "latin",
"razmerje": "relation",
"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() }

1
src/view/modal_templates.py

@ -104,6 +104,7 @@ def label_list_editor(current_labels, add_label_message_class):
center = h("select.label-value", {}, options)
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",
{"props": {"type": "text", "value": right_value, "placeholder": "drugo"}},
[])

Loading…
Cancel
Save