better syntax and code structure for treeview node text translation