take language from system|
Signed-off-by: Jakub Delicat <jakub.delicat@pwr.edu.pl>
This commit is contained in:
parent
42dee5c2c5
commit
e1107b8bb3
@ -24,20 +24,15 @@ class QtWrapper:
|
|||||||
def __init__(self, widget):
|
def __init__(self, widget):
|
||||||
self.widget = widget
|
self.widget = widget
|
||||||
self.displayed_robots_id_list = []
|
self.displayed_robots_id_list = []
|
||||||
|
|
||||||
|
lang = os.getenv("LANG")
|
||||||
|
|
||||||
# lang = rospy.get_param('lang')
|
if lang[:2] == "pl":
|
||||||
lang = "pol"
|
|
||||||
|
|
||||||
if lang == "eng":
|
|
||||||
self.language = ET
|
|
||||||
self.log_info("Started english version of plugin NEW")
|
|
||||||
elif lang == "pol":
|
|
||||||
self.language = PT
|
self.language = PT
|
||||||
self.log_info("Polska wersja pluginu uruchomiona")
|
self.log_info("Polska wersja pluginu uruchomiona")
|
||||||
else:
|
else:
|
||||||
raise ValueError(
|
self.language = ET
|
||||||
'language parameter has value different than "eng" or "pol"'
|
self.log_info("Started english version of plugin NEW")
|
||||||
)
|
|
||||||
|
|
||||||
self.clear_robot_info()
|
self.clear_robot_info()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user