Fixed bugs
This commit is contained in:
parent
6935dae724
commit
d19f66c7aa
|
|
@ -14,10 +14,19 @@ def setup_locale():
|
|||
source_frappe = os.path.join(app_path, "az.po")
|
||||
source_erpnext = os.path.join(app_path, "az_erpnext.po")
|
||||
|
||||
# Копируем файл для Frappe
|
||||
# Проверяем существование папки и файлов
|
||||
if not os.path.exists(app_path):
|
||||
print("❌ Ошибка: Папка локализации не найдена!")
|
||||
return
|
||||
|
||||
if os.path.exists(source_frappe):
|
||||
shutil.copy(source_frappe, frappe_locale_path)
|
||||
print("✅ Файл az.po скопирован в frappe/locale!")
|
||||
else:
|
||||
print("⚠️ Файл az.po не найден!")
|
||||
|
||||
# Копируем файл для ERPNext
|
||||
if os.path.exists(source_erpnext):
|
||||
shutil.copy(source_erpnext, erpnext_locale_path)
|
||||
print("✅ Файл az_erpnext.po скопирован в erpnext/locale!")
|
||||
else:
|
||||
print("⚠️ Файл az_erpnext.po не найден!")
|
||||
|
|
|
|||
Loading…
Reference in New Issue