def reload_gui_text(self, language): myVars.i18n = I18N(language) self.welcome_win.title(myVars.i18n.welcome) self.button_login.configure(text=myVars.i18n.login) self.button_signup.configure(text=myVars.i18n.signup) self.welcome_label.configure(text=myVars.i18n.elipor) self.language_label.configure(text=myVars.i18n.lang_select_note)
def reload_gui_text(self, language): myVars.i18n = I18N(language) self.country = myVars.i18n.countryList self.number = (myVars.i18n.select, 1, 2, 3, 4, 5) self.options_window.title(myVars.i18n.options_main) self.country_label.configure(text=myVars.i18n.country) self.city_label.configure(text=myVars.i18n.city) self.peopleNo_label.configure(text=myVars.i18n.people) self.roomNo_label.configure(text=myVars.i18n.room) self.room_type_label.configure(text=myVars.i18n.room_type) self.options_label.configure(text=myVars.i18n.options) self.rd1c.configure(text=myVars.i18n.city_view) self.rd2s.configure(text=myVars.i18n.sea_view) self.rd3n.configure(text=myVars.i18n.nature_view) self.rd4n.configure(text=myVars.i18n.notspecified) self.ch1.configure(text=myVars.i18n.breakfast) self.ch2.configure(text=myVars.i18n.ac) self.ch3.configure(text=myVars.i18n.rs) self.cal1_label.configure(text=myVars.i18n.start_day) self.cal2_label.configure(text=myVars.i18n.finish_day) self.back_button.configure(text=myVars.i18n.back) self.complete_reservation.configure(text=myVars.i18n.complete) self.country_entered.configure(values=list(myVars.i18n.countryList.keys())) self.country_entered.current(0) self.number_of_room_chosen.configure(values=self.number) self.number_of_room_chosen.current(0) self.number_of_people_chosen.configure(values=self.number) self.number_of_people_chosen.current(0) self.getUpdateData(None) self.price_label.configure(text=myVars.i18n.price_label)
def reload_gui_text(self, language): myVars.i18n = I18N(language) self.login_window.title(myVars.i18n.login) self.username_label.configure(text=myVars.i18n.username) self.password_label.configure(text=myVars.i18n.password) self.login_button.configure(text=myVars.i18n.login) self.back_button.configure(text=myVars.i18n.back)
def reload_gui_text(self, language): myVars.i18n = I18N(language) self.thanks_window.title(myVars.i18n.thanks) self.successful_label.configure(text=myVars.i18n.successful) self.information_label.configure(text=myVars.i18n.informations) self.resNo_label.configure(text=myVars.i18n.reservationid) self.exit_button.configure(text=myVars.i18n.signout) self.return_homepage_button.configure(text=myVars.i18n.return_homepage)
def reload_gui_text(self, language): myVars.i18n = I18N(language) self.homepage_window.title(myVars.i18n.homepage) self.menu_bar.entryconfigure(1, label=myVars.i18n.reservation) self.file_menu.entryconfigure(0, label=myVars.i18n.new_reservation) self.file_menu.entryconfigure(2, label=myVars.i18n.reservation_history) self.exit_button.configure(text=myVars.i18n.signout) self.hotel_label.configure(text=myVars.i18n.home_elipor) self.info_label1.configure(text=myVars.i18n.info1) self.info_label2.configure(text=myVars.i18n.info2) self.info_label3.configure(text=myVars.i18n.info3)
def reload_gui_text(self, language): myVars.i18n = I18N(language) self.signup_window.title(myVars.i18n.signup) self.name_label.configure(text=myVars.i18n.name) self.surname_label.configure(text=myVars.i18n.surname) self.pNo_label.configure(text=myVars.i18n.pno) self.username_label.configure(text=myVars.i18n.username) self.password_label.configure(text=myVars.i18n.password) self.rPassword_label.configure(text=myVars.i18n.rpassword) self.signup_button.configure(text=myVars.i18n.signup) self.back_button.configure(text=myVars.i18n.back)
def reload_gui_text(self, language): myVars.i18n = I18N(language) self.tv.heading(0, text=myVars.i18n.reservationid_heading) self.tv.heading(1, text=myVars.i18n.username_heading) self.tv.heading(2, text=myVars.i18n.country_heading) self.tv.heading(3, text=myVars.i18n.city_heading) self.tv.heading(4, text=myVars.i18n.numberofpeople_heading) self.tv.heading(5, text=myVars.i18n.numberofroom_heading) self.tv.heading(6, text=myVars.i18n.view_heading) self.tv.heading(7, text=myVars.i18n.breakfast_heading) self.tv.heading(8, text=myVars.i18n.ac_heading) self.tv.heading(9, text=myVars.i18n.rs_heading) self.tv.heading(10, text=myVars.i18n.reservationdate_heading) self.tv.heading(11, text=myVars.i18n.start_day_heading) self.tv.heading(12, text=myVars.i18n.finish_day_heading) self.history_window.title(myVars.i18n.history) self.back_button.configure(text=myVars.i18n.return_homepage) self.delete.configure(text=myVars.i18n.delete)
def __init__(self): self.usernameLogin = "" self.i18n = I18N("en")