|
|
@ -19,10 +19,9 @@ def edit_translation(translation, parent, cluster_idx, num_clusters, cls):
|
|
|
|
|
|
|
|
|
|
|
|
# first line: transalation itself
|
|
|
|
# first line: transalation itself
|
|
|
|
content.extend([
|
|
|
|
content.extend([
|
|
|
|
split_line2("Prevedek:",
|
|
|
|
split_line2("Prevedek:", h("textarea#etv", {"props": {"value": translation.translation}}, ""))])
|
|
|
|
h("textarea#etv", {"props": {"value": translation.translation}}, "")),
|
|
|
|
|
|
|
|
split_line2("Razlaga:",
|
|
|
|
content.extend(generic_list_editor("Razlage:", lambda: translation.explanationList))
|
|
|
|
h("textarea#ete", {"props": {"value": translation.explanation}}, ""))])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# cluster number
|
|
|
|
# cluster number
|
|
|
|
options = [h("option", {"props": {"selected": idx == cluster_idx}}, str(idx + 1)) for idx in range(num_clusters + 1)]
|
|
|
|
options = [h("option", {"props": {"selected": idx == cluster_idx}}, str(idx + 1)) for idx in range(num_clusters + 1)]
|
|
|
|