Skip to content

Commit

Permalink
trans
Browse files Browse the repository at this point in the history
  • Loading branch information
fproldan committed Aug 14, 2023
1 parent 822783a commit f5cddf9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
11 changes: 6 additions & 5 deletions erpnext/hr/doctype/department_approver/department_approver.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ def get_approvers(doctype, txt, searchfield, start, page_len, filters):

if filters.get("doctype") == "Leave Application":
parentfield = "leave_approvers"
field_name = "Leave Approver"
field_name = _("Leave Approver")
elif filters.get("doctype") == "Expense Claim":
parentfield = "expense_approvers"
field_name = "Expense Approver"
field_name = _("Expense Approver")
elif filters.get("doctype") == "Shift Request":
parentfield = "shift_request_approver"
field_name = "Shift Request Approver"
field_name = _("Shift Request Approver")
if department_list:
for d in department_list:
approvers += frappe.db.sql("""select user.name, user.first_name, user.last_name from
Expand All @@ -63,7 +63,8 @@ def get_approvers(doctype, txt, searchfield, start, page_len, filters):
if len(approvers) == 0:
error_msg = _("Please set {0} for the Employee: {1}").format(field_name, frappe.bold(employee.employee_name))
if department_list:
error_msg += _(" or for Department: {0}").format(frappe.bold(employee_department))
frappe.throw(error_msg, title=_(field_name + " Missing"))
error_msg += " " + _("or for Department: {0}").format(frappe.bold(employee_department))
frappe.throw(error_msg, title=_("{0} Missing").format(field_name))


return set(tuple(approver) for approver in approvers)
8 changes: 5 additions & 3 deletions erpnext/translations/es.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3280,7 +3280,7 @@ Expense,Gastos,
Expense / Difference account ({0}) must be a 'Profit or Loss' account,"La cuenta de Gastos/Diferencia ({0}) debe ser una cuenta de 'utilidad o pérdida """,
Expense Account,Cuenta de gastos,
Expense Account Missing,Falta la cuenta de gastos,
Expense Approver,Supervisor de gastos,
Expense Approver,Aprobador de Gastos,
Expense Approver Mandatory In Expense Claim,Aprobador de Gastos obligatorio en la Reclamación de Gastos,
Expense Claim,Reembolso de gastos,
Expense Claim Account,Cuenta de Gastos,
Expand Down Expand Up @@ -6730,7 +6730,7 @@ Please set valid GSTIN No. in Company Address {} for company {},Please set valid
Please set {0},Please set {0},customer
"Please set {0} for Batched Item {1}, which is used to set {2} on Submit.","Configure {0} para el artículo por lotes {1}, que se utiliza para configurar {2} en Enviar.",
Please set {0} for address {1},Establezca {0} para la dirección {1},
Please set {0} for the Employee: {1},Please set {0} for the Employee: {1},
Please set {0} for the Employee: {1},Por favor establezca {0} para el empleado: {1},
Please setup Employee Naming System in Human Resource > HR Settings,Configure el Sistema de nombres de empleados en Recursos humanos> Configuración de recursos humanos,
Please setup Instructor Naming System in Education > Education Settings,Configure el Sistema de nombres de instructores en Educación> Configuración de educación,
Please setup Razorpay Plan ID,Configure el ID del plan de Razorpay,
Expand Down Expand Up @@ -10922,4 +10922,6 @@ Avg Resolution Time,Tiempo medio de resolución,
Avg User Resolution Time,Tiempo medio de resolución del usuario,
Total Issues,Total de tickets,
No Leave has been allocated.,No se ha asignado ningúna licencia.,
Repay Unclaimed Amount from Salary,Pago anticipo de salario,
Repay Unclaimed Amount from Salary,Pago anticipo de salario,
{0} Missing,Falta {0},
or for Department: {0},o para el departamento: {0},

0 comments on commit f5cddf9

Please sign in to comment.