custom_lang=frappe.db.sql("""SELECT lang_code FROM %s.`tabCustom Languages` where lang_code <> "en" order by lang_name"""%(current_db_name),as_list=True)
custom_lang=frappe.db.sql(
"""SELECT lang_code FROM `tabCustom Languages` where lang_code <> "en" order by lang_name;""",as_list=1)
queryAppendLang=""
fordincustom_lang:
q=", (CASE WHEN tabLang.languageCode = '%s' THEN %s.tabTranslation.translated_text ELSE null END) as %s"%(d[0],current_db_name,d[0])
q=", (CASE WHEN tabLang.languageCode = '%s' THEN tabTranslation.translated_text ELSE null END) as %s"%(
custom_lang=frappe.db.sql("""SELECT lang_code,lang_name,active_status FROM %s.`tabCustom Languages` where lang_code <> "en" order by lang_name"""%(current_db_name),as_dict=1)
custom_lang=frappe.db.sql("""SELECT lang_code,lang_name,active_status FROM `tabCustom Languages` where lang_code <> "en"
custom_lang=frappe.db.sql("""SELECT lang_code,lang_name,active_status FROM {}.`tabCustom Languages` where lang_code <> "en" order by lang_name """.format(current_db_name),as_dict=1)
custom_lang=frappe.db.sql("""SELECT lang_code,lang_name,active_status FROM `tabCustom Languages` where lang_code <> "en"
custom_lang=frappe.db.sql("""SELECT lang_code FROM {}.`tabCustom Languages` where lang_code <> "en" order by lang_name""".format(current_db_name),as_list=True)
custom_lang=frappe.db.sql(
"""SELECT lang_code FROM `tabCustom Languages` where lang_code <> "en" order by lang_name;""",as_list=1)
queryAppendLang=""
fordincustom_lang:
q=", (CASE WHEN tabLang.languageCode = '%s' THEN %s.tabTranslation.translated_text ELSE null END) as %s"%(d[0],current_db_name,d[0])
q=", (CASE WHEN tabLang.languageCode = '%s' THEN tabTranslation.translated_text ELSE null END) as %s"%(
custom_lang=frappe.db.sql("""SELECT lang_code,lang_name,active_status FROM {0}.`tabCustom Languages` where lang_code <> "en" order by lang_name""".format(current_db_name),as_dict=1)
custom_lang=frappe.db.sql(
"""SELECT lang_code,lang_name,active_status FROM `tabCustom Languages`
custom_lang=frappe.db.sql("""SELECT lang_code FROM %s.`tabCustom Languages` where lang_code <> "en" order by lang_name"""%(current_db_name),as_list=True)
custom_lang=frappe.db.sql("""SELECT lang_code FROM `tabCustom Languages` where lang_code <> "en"
orderbylang_name;""", as_list=1)
queryAppendLang=""
fordincustom_lang:
q=", (CASE WHEN tabLang.languageCode = '%s' THEN %s.tabTranslation.translated_text ELSE null END) as %s"%(d[0],current_db_name,d[0])
q=", (CASE WHEN tabLang.languageCode = '%s' THEN tabTranslation.translated_text ELSE null END) as %s"%(
custom_lang=frappe.db.sql("""SELECT lang_code,lang_name,active_status FROM %s.`tabCustom Languages` where lang_code <> "en" order by lang_name"""%(current_db_name),as_dict=1)
custom_lang=frappe.db.sql("""SELECT lang_code,lang_name,active_status FROM `tabCustom Languages` where lang_code <> "en"
custom_lang=frappe.db.sql("""SELECT lang_code FROM %s.`tabCustom Languages` where lang_code <> "en" order by lang_name"""%(current_db_name),as_list=True)
custom_lang=frappe.db.sql(
"""SELECT lang_code FROM `tabCustom Languages` where lang_code <> "en" order by lang_name;""",as_list=True)
queryAppendLang=""
fordincustom_lang:
q=", (CASE WHEN tabLang.languageCode = '%s' THEN %s.tabTranslation.translated_text ELSE null END) as %s"%(d[0],current_db_name,d[0])
q=", (CASE WHEN tabLang.languageCode = '%s' THEN tabTranslation.translated_text ELSE null END) as %s"%(
custom_lang=frappe.db.sql("""SELECT lang_code,lang_name,active_status FROM %s.`tabCustom Languages` where lang_code <> "en" order by lang_name"""%(current_db_name),as_dict=1)
custom_lang=frappe.db.sql("""SELECT lang_code,lang_name,active_status FROM `tabCustom Languages` where lang_code <> "en"
custom_lang=frappe.db.sql("""SELECT lang_code,lang_name,active_status FROM %s.`tabCustom Languages` where lang_code <> "en" order by lang_name"""%(current_db_name),as_dict=1)
custom_lang=frappe.db.sql(
"""SELECT lang_code,lang_name,active_status FROM `tabCustom Languages` where lang_code <> "en"
custom_lang=frappe.db.sql("""SELECT lang_code FROM %s.`tabCustom Languages` where lang_code <> "en" order by lang_name"""%(current_db_name),as_list=True)
defget_data():
try:
custom_lang=frappe.db.sql(
"""SELECT lang_code FROM `tabCustom Languages` where lang_code <> "en" order by lang_name;""",as_list=True)
queryAppendLang=""
fordincustom_lang:
q=", (CASE WHEN tabLang.languageCode = '%s' THEN %s.tabTranslation.translated_text ELSE null END) as %s"%(d[0],current_db_name,d[0])
q=", (CASE WHEN tabLang.languageCode = '%s' THEN tabTranslation.translated_text ELSE null END) as %s"%(
custom_lang=frappe.db.sql("""SELECT lang_code,lang_name,active_status FROM %s.`tabCustom Languages` where lang_code <> "en" order by lang_name"""%(current_db_name),as_dict=1)
custom_lang=frappe.db.sql(
"""SELECT lang_code,lang_name,active_status FROM `tabCustom Languages` where lang_code <> "en"
custom_lang=frappe.db.sql("""SELECT lang_code FROM %s.`tabCustom Languages` where lang_code <> "en" order by lang_name"""%(current_db_name),as_list=True)
custom_lang=frappe.db.sql(
"""SELECT lang_code FROM `tabCustom Languages` where lang_code <> "en" order by lang_name;""",as_list=1)
queryAppendLang=""
fordincustom_lang:
q=", (CASE WHEN tabLang.languageCode = '%s' THEN %s.tabTranslation.translated_text ELSE null END) as %s"%(d[0],current_db_name,d[0])
q=", (CASE WHEN tabLang.languageCode = '%s' THEN tabTranslation.translated_text ELSE null END) as %s"%(
custom_lang=frappe.db.sql("""SELECT lang_code,lang_name,active_status FROM %s.`tabCustom Languages` where lang_code <> "en" order by lang_name"""%(current_db_name),as_dict=1)
custom_lang=frappe.db.sql(
"""SELECT lang_code,lang_name,active_status FROM `tabCustom Languages` where lang_code <> "en"