take language from system|

Signed-off-by: Jakub Delicat <jakub.delicat@pwr.edu.pl>
This commit is contained in:
Jakub Delicat 2023-10-03 19:03:43 +02:00
parent 42dee5c2c5
commit e1107b8bb3

View File

@ -25,19 +25,14 @@ class QtWrapper:
self.widget = widget
self.displayed_robots_id_list = []
# lang = rospy.get_param('lang')
lang = "pol"
lang = os.getenv("LANG")
if lang == "eng":
self.language = ET
self.log_info("Started english version of plugin NEW")
elif lang == "pol":
if lang[:2] == "pl":
self.language = PT
self.log_info("Polska wersja pluginu uruchomiona")
else:
raise ValueError(
'language parameter has value different than "eng" or "pol"'
)
self.language = ET
self.log_info("Started english version of plugin NEW")
self.clear_robot_info()