locale_editor: upgraded method add_var()