def Language(self): 'Sets the language.' ids = 15, 16, 7 words = mpos_utility.lang(ids) self.pos_add_title.SetLabel(words[0]) self.qt_label.SetLabel(words[1]) self.pr_label.SetLabel(words[2] + ' ('+unicode(self.c_symbol, 'utf8')+')')
def Language(self): 'Sets the language.' objects1 = [self.title, self.search_label, self.receipt_label, self.static_box, self.subtotal_label, self.tax_label, self.total_label, self.complete_btn, self.cancel_btn] ids1 = 1, 33, 36, 37, 38, 40, 39, 41, 42 words = mpos_utility.lang(ids1) for object, word in zip(objects1, words): object.SetLabel(word) ids2 = 43, 8, 45, 44, 41, 47, 46, 40 words = mpos_utility.lang(ids2) self.m1, self.t1, self.m2, self.t2 = words[:4] self.btn_l1, self.btn_l2 = words[4:6] self.r_label, self.t_label = words[6:]
def Language(self): 'Sets the language' ids = (1, 2, 3, 28, 4) words = mpos_utility.lang(ids) self.tab1 = words[0] self.tab2 = words[1] self.tab3 = words[2] self.dlg_l1 = words[3] self.dlg_l2 = words[4]
def Language(self): 'Sets the Language' objects = [self.title, self.lang_label, self.sym_label, self.dec_label, self.tSep_check, self.sTax_check, self.sTax_label] ids = 26, 63, 64, 65, 66, 40, 67 words = mpos_utility.lang(ids) for object, word in zip(objects, words): object.SetLabel(word) self.sTax_label.SetLabel(words[-1]+' (%)')
def Language(self): 'Sets the Language.' ids = (25, 5, 26, 27, 28, 29, 30, 31, 82, 83) words = mpos_utility.lang(ids) self.f2 = words[0] self.e1, self.e2, self.e3 = words[1:4] self.h1 = words[4] self.m1, self.m2, self.m3 = words[5:-2] self.f1 = words[-2] self.f3 = words[-1]
def Language(self): 'Sets the language.' id_list = (6, 7, 9, 13, 14, 81) words = mpos_utility.lang(id_list) self.edit_label.SetLabel(words[3]) self.item_label.SetLabel(words[0]) self.price_label.SetLabel(words[1] + ' ('+unicode(self.c_symbol, 'utf8')+')') self.m1 = words[2] self.t1 = words[4] self.bulk.SetLabel(words[5])
def Language(self): 'Sets the correct language.' id_list = (10, 11, 12) words = mpos_utility.lang(id_list) self.date.SetLabel(words[0]) self.m1 = words[1] self.t1 = words[2]
def Language(self): 'Sets the language.' objects = [self.sales_label, self.sales_box, self.sale_items_box, self.edit_receipt_btn, self.sales_period_label, self.st_date_btn, self.end_date_btn, self.summary_sbox, self.subtotal_label, self.sTax_label, self.total_label, self.product_sbox, self.search_label] ids = 2, 48, 49, 47, 50, 55, 56, 37, 38, 40, 39, 57, 33 words = mpos_utility.lang(ids) for object, word in zip(objects, words): object.SetLabel(word) self.sTax_label.SetLabel(words[9] + ' (%)')
def Language(self): 'Sets the config lang to the object.' # Create the word id list id_list = (5, 6, 7, 8, 9, 81) words = mpos_utility.lang(id_list) # Set Objects self.add_label.SetLabel(words[0]) self.item_label.SetLabel(words[1]) self.price_label.SetLabel(words[2] + ' ('+unicode(self.c_symbol, 'utf8')+')') self.t1 = words[3] self.m1 = words[4] self.bulk.SetLabel(words[5])
def Language(self): 'Sets the language' ids = 32, 33, 34, 17, 18, 7, 35, 5, 13, 81 words = mpos_utility.lang(ids) self.title.SetLabel(words[0]) self.search_label.SetLabel(words[1]) self.details_box.SetLabel(words[2]) self.id_label.SetLabel(words[3]) self.item_label.SetLabel(words[4]) self.price_label.SetLabel(words[5]) self.options_box.SetLabel(words[6]) self.add_product_btn.SetLabel(words[7]) self.edit_product_btn.SetLabel(words[8]) self.dlg_l1, self.dlg_l2 = words[-3:-1] self.bulk_label.SetLabel(words[-1])
def Language2(self): 'Sets the language.' ids = 51, 52, 53, 54, 58, 62, 59, 60, 61 words = mpos_utility.lang(ids) self.day, self.week, self.month, self.year = words[:4] self.d1, self.d2, self.w1, self.m1, self.t1 = words[4:]
def LangConfig(self): 'Sets up the language.' id_list = [28] word = mpos_utility.lang(id_list) self.title.SetLabel(word[0]+' miniPOS')
def Language(self): 'Sets the Language.' ids = 19, 18, 7, 20, 21 words = mpos_utility.lang(ids) self.w1, self.w2, self.w3, self.w4, self.w5 = words
def Language(self): 'Sets the Language.' ids = 17, 18, 7 words = mpos_utility.lang(ids) self.w1, self.w2, self.w4 = words
def Language(self): 'Sets the Language.' ids = 22, 23, 24 words = mpos_utility.lang(ids) self.w1, self.w2, self.w3 = words