From 9fd89697c453f465bba966867eb704f962072430 Mon Sep 17 00:00:00 2001 From: satish-conflux Date: Thu, 9 Jun 2016 18:14:53 +0530 Subject: [PATCH] Support localization of report names in Community App and Mentioned features should get translated with respect to selected language --- app/global-translations/locale-en.json | 88 ++++++++++++++++++- app/global-translations/locale-es.json | 87 +++++++++++++++++- app/global-translations/locale-zh_CN.json | 3 +- .../organization/EditWorkingDaysController.js | 16 ++-- .../reports/ViewReportsController.js | 13 +++ app/views/accounting/createglaccounting.html | 12 +-- app/views/accounting/editglaccounting.html | 12 +-- app/views/accounting/viewglaccounting.html | 4 +- app/views/organization/workingdays.html | 7 +- app/views/reports/run_reports.html | 16 ++-- app/views/reports/view_reports.html | 7 +- 11 files changed, 227 insertions(+), 38 deletions(-) diff --git a/app/global-translations/locale-en.json b/app/global-translations/locale-en.json index fbd92ce2..ce4ecd57 100755 --- a/app/global-translations/locale-en.json +++ b/app/global-translations/locale-en.json @@ -3936,5 +3936,91 @@ "label.heading.escheatLiability":"Escheat Liability", "label.input.escheatLiability":"Escheat Liability", "label.tooltip.escheatLiability":"Liability Account where escheated funds are maintained", - "label.heading.lastActive":"Last Active" + "label.heading.lastActive":"Last Active", + + "#Report Name localization" : "", + "Loan Transaction Receipt":"Loan Transaction Receipt", + "Savings Transaction Receipt":"Savings Transaction Receipt", + "Staff Assignment History":"Staff Assignment History", + "Balance Sheet":"Balance Sheet", + "GeneralLedgerReport":"GeneralLedgerReport", + "Income Statement":"Income Statement", + "Progress Report":"Progress Report", + "Trial Balance":"Trial Balance", + "BranchOverView":"BranchOverView", + "Client Listing":"Client Listing", + "Client Listing(Pentaho)":"Client Listing(Pentaho)", + "Client Loans Listing":"Client Loans Listing", + "Client Loans Listing(Pentaho)":"Client Loans Listing(Pentaho)", + "Funds Disbursed Between Dates Summary":"Funds Disbursed Between Dates Summary", + "Funds Disbursed Between Dates Summary by Office":"Funds Disbursed Between Dates Summary by Office", + "Funds Disbursed Between Dates Summary by Office(Pentaho)":"Funds Disbursed Between Dates Summary by Office(Pentaho)", + "Funds Disbursed Between Dates Summary(Pentaho)":"Funds Disbursed Between Dates Summary(Pentaho)", + "Active Loans - Details":"Active Loans - Details", + "Active Loans - Details(Pentaho)":"Active Loans - Details(Pentaho)", + "Active Loans - Summary":"Active Loans - Summary", + "Active Loans - Summary(Pentaho)":"Active Loans - Summary(Pentaho)", + "Active Loans by Disbursal Period":"Active Loans by Disbursal Period", + "Active Loans by Disbursal Period(Pentaho)":"Active Loans by Disbursal Period(Pentaho)", + "Active Loans in last installment":"Active Loans in last installment", + "Active Loans in last installment Summary":"Active Loans in last installment Summary", + "Active Loans in last installment Summary(Pentaho)":"Active Loans in last installment Summary(Pentaho)", + "Active Loans in last installment(Pentaho)":"Active Loans in last installment(Pentaho)", + "Active Loans Passed Final Maturity":"Active Loans Passed Final Maturity", + "Active Loans Passed Final Maturity Summary":"Active Loans Passed Final Maturity Summary", + "Active Loans Passed Final Maturity Summary(Pentaho)":"Active Loans Passed Final Maturity Summary(Pentaho)", + "Active Loans Passed Final Maturity(Pentaho)":"Active Loans Passed Final Maturity(Pentaho)", + "Aging Detail":"Aging Detail", + "Aging Detail(Pentaho)":"Aging Detail(Pentaho)", + "Aging Summary (Arrears in Months)":"Aging Summary (Arrears in Months)", + "Aging Summary (Arrears in Months)(Pentaho)":"Aging Summary (Arrears in Months)(Pentaho)", + "Aging Summary (Arrears in Weeks)":"Aging Summary (Arrears in Weeks)", + "Aging Summary (Arrears in Weeks)(Pentaho)":"Aging Summary (Arrears in Weeks)(Pentaho)", + "Branch Expected Cash Flow":"Branch Expected Cash Flow", + "Branchwise Loan Summary":"Branchwise Loan Summary", + "Daily Loan Officer Wise Loan Summary":"Daily Loan Officer Wise Loan Summary", + "Expected Payments By Date - Basic":"Expected Payments By Date - Basic", + "Expected Payments By Date - Basic(Pentaho)":"Expected Payments By Date - Basic(Pentaho)", + "Expected Payments By Date - Formatted":"Expected Payments By Date - Formatted", + "Loan Aging Report By Periods":"Loan Aging Report By Periods", + "LoanPortfolio":"LoanPortfolio", + "Loans Awaiting Disbursal":"Loans Awaiting Disbursal", + "Loans Awaiting Disbursal Summary":"Loans Awaiting Disbursal Summary", + "Loans Awaiting Disbursal Summary by Month":"Loans Awaiting Disbursal Summary by Month", + "Loans Awaiting Disbursal Summary by Month(Pentaho)":"Loans Awaiting Disbursal Summary by Month(Pentaho)", + "Loans Awaiting Disbursal Summary(Pentaho)":"Loans Awaiting Disbursal Summary(Pentaho)", + "Loans Awaiting Disbursal(Pentaho)":"Loans Awaiting Disbursal(Pentaho)", + "Loans Pending Approval":"Loans Pending Approval", + "Loans Pending Approval(Pentaho)":"Loans Pending Approval(Pentaho)", + "Obligation Met Loans Details":"Obligation Met Loans Details", + "Obligation Met Loans Details(Pentaho)":"Obligation Met Loans Details(Pentaho)", + "Obligation Met Loans Summary":"Obligation Met Loans Summary", + "Obligation Met Loans Summary(Pentaho)":"Obligation Met Loans Summary(Pentaho)", + "Portfolio at Risk":"Portfolio at Risk", + "Portfolio at Risk by Branch":"Portfolio at Risk by Branch", + "Portfolio at Risk by Branch(Pentaho)":"Portfolio at Risk by Branch(Pentaho)", + "Portfolio at Risk(Pentaho)":"Portfolio at Risk(Pentaho)", + "Rescheduled Loans":"Rescheduled Loans", + "Rescheduled Loans(Pentaho)":"Rescheduled Loans(Pentaho)", + "Written-Off Loans":"Written-Off Loans", + "Written-Off Loans(Pentaho)":"Written-Off Loans(Pentaho)", + "Active Loan Summary per Branch":"Active Loan Summary per Branch", + "Balance Outstanding":"Balance Outstanding", + "Collection Report":"Collection Report", + "Disbursal Report":"Disbursal Report", + "Client Savings Summary":"Client Savings Summary", + "Savings Transactions":"Savings Transactions", + "TxnRunningBalances(Pentaho)":"TxnRunningBalances(Pentaho)", + + "day.monday" : "Monday", + "day.tuesday" : "Tuesday", + "day.wednesday" : "Wednesday", + "day.thursday" : "Thursday", + "day.friday" : "Friday", + "day.saturday" : "Saturday", + "day.sunday" : "Sunday", + "RepaymentRescheduleType.same.day":"same day", + "RepaymentRescheduleType.move.to.next.working.day":"move to next working day", + "RepaymentRescheduleType.move.to.next.repayment.meeting.day":"move to next repayment meeting day", + "RepaymentRescheduleType.move.to.previous.working.day":"move to previous working day" } diff --git a/app/global-translations/locale-es.json b/app/global-translations/locale-es.json index 17c7aa74..1843946c 100644 --- a/app/global-translations/locale-es.json +++ b/app/global-translations/locale-es.json @@ -3437,5 +3437,90 @@ "label.heading.Survey": "Encuesta", "label.anchor.survey": "Encuesta", "label.surveyName": "Nombre de la encuesta", - "label.selectsurvey": "Selecciona una encuesta" + "label.selectsurvey": "Selecciona una encuesta", + + "#Nombre del informe de localización" : "", + "aged receivables" : "Cobrar edad", + "Client statement" : "La declaración de cliente", + "ClientSummary " : "ClientSummary", + "demoreport3" : "Demoreport3", + "GroupOffice" : "GroupOffice", + "Loan Transaction Receipt" : "Recibo de Transacción de Préstamo", + "Savings Transaction Receipt" : "Recibo de Transacción de Ahorro", + "Savings Transactions" : "Las transacciones de ahorro", + "Staff Assignment History" : "La historia de asignación de personal", + "test sql" : "Sql prueba", + "Testing new reort" : "El ensayo de nuevos Reort", + "Balance Sheet" : "Hoja de balance", + "GeneralLedgerReport" : "GeneralLedgerReport", + "Income Statement" : "Cuenta de resultados", + "List CoA" : "Lista CoA", + "Trail balance by currency" : "Equilibrio Trail por moneda", + "Trial Balance" : "Balance de comprobación", + "Client Listing" : "Listado de cliente", + "Client Listing(Pentaho)" : "Lista de clientes (Pentaho)", + "Client Loans Listing" : "Préstamos de venta del cliente", + "Client Loans Listing(Pentaho)" : "Préstamos lista de clientes (Pentaho)", + "demoreport4" : "Demoreport4", + "Funds Disbursed Between Dates Summary" : "Los fondos desembolsados ​​entre fechas Resumen", + "Funds Disbursed Between Dates Summary by Office" : "Los fondos desembolsados ​​entre fechas Resumen de la Oficina", + "Funds Disbursed Between Dates Summary by Office(Pentaho)" : "Los fondos desembolsados ​​entre fechas Resumen de la Oficina (Pentaho)", + "Funds Disbursed Between Dates Summary(Pentaho)" : "Los fondos desembolsados ​​entre fechas Resumen (Pentaho)", + "Active Loans - Details" : "Préstamos activos - detalles", + "Active Loans - Details(Pentaho)" : "Préstamos Activos - Detalles (Pentaho)", + "Active Loans - Summary" : "Préstamos activos - Resumen", + "Active Loans - Summary(Pentaho)" : "Préstamos activos - Resumen (Pentaho)", + "Active Loans by Disbursal Period" : "Préstamos activos por período de desembolso", + "Active Loans by Disbursal Period(Pentaho)" : "Préstamos activos por desembolso Período (Pentaho)", + "Active Loans in last installment" : "Préstamos activos en la última entrega", + "Active Loans in last installment Summary" : "Préstamos activos en la última entrega Resumen", + "Active Loans in last installment Summary(Pentaho)" : "Préstamos activos en la última Resumen tramo (Pentaho)", + "Active Loans in last installment(Pentaho)" : "Préstamos activos en la última entrega (Pentaho)", + "Active Loans Passed Final Maturity" : "Préstamos activo transferido a la Fecha de Vencimiento", + "Active Loans Passed Final Maturity Summary" : "Préstamos activo transferido a la final Resumen de madurez", + "Active Loans Passed Final Maturity Summary(Pentaho)" : "Préstamos activo transferido Resumen de Vencimiento Final (Pentaho)", + "Active Loans Passed Final Maturity(Pentaho)" : "Préstamos activo transferido a la Fecha de Vencimiento (Pentaho)", + "Aging Detail" : "El envejecimiento Detalle", + "Aging Detail(Pentaho)" : "El envejecimiento Detalle (Pentaho)", + "Aging Summary (Arrears in Months)" : "El envejecimiento (atrasos en meses)", + "Aging Summary (Arrears in Months)(Pentaho)" : "El envejecimiento (atrasos en meses) (Pentaho)", + "Aging Summary (Arrears in Weeks)" : "El envejecimiento (atrasos en semanas)", + "Aging Summary (Arrears in Weeks)(Pentaho)" : "El envejecimiento (atrasos en semanas) (Pentaho)", + "Branch Expected Cash Flow" : "Rama espera que el flujo de efectivo", + "Demand_Vs_Collection" : "Demand_Vs_Collection", + "Expected Payments By Date - Basic" : "Los pagos por Lanzamiento - Básico", + "Expected Payments By Date - Basic(Pentaho)" : "Los pagos por Lanzamiento - Básico (Pentaho)", + "Expected Payments By Date - Formatted" : "Los pagos por Lanzamiento - con formato", + "Loan Account Schedule" : "Préstamo Cuenta Lista", + "Loans Awaiting Disbursal" : "En espera de desembolso Préstamos", + "Loans Awaiting Disbursal Summary" : "Hasta el momento no Préstamos desembolso Resumen", + "Loans Awaiting Disbursal Summary by Month" : "En espera de desembolso Préstamos Resumen por mes", + "Loans Awaiting Disbursal Summary by Month(Pentaho)" : "Hasta el momento no Préstamos desembolso Resumen por Mes (Pentaho)", + "Loans Awaiting Disbursal Summary(Pentaho)" : "Hasta el momento no Préstamos Resumen desembolso (Pentaho)", + "Loans Awaiting Disbursal(Pentaho)" : "En espera de desembolso Préstamos (Pentaho)", + "Loans Pending Approval" : "Aprobación Préstamos pendiente", + "Loans Pending Approval(Pentaho)" : "Los préstamos pendiente de aprobación (Pentaho)", + "Obligation Met Loans Details" : "Obligación Met Préstamos detalles", + "Obligation Met Loans Details(Pentaho)" : "Obligación Met Préstamos detalles (Pentaho)", + "Obligation Met Loans Summary" : "Obligación Met Préstamos Resumen", + "Obligation Met Loans Summary(Pentaho)" : "Obligación Met Préstamos de sumario (Pentaho)", + "Portfolio at Risk" : "Cartera en Riesgo", + "Portfolio at Risk by Branch" : "La cartera en riesgo por sucursal", + "Portfolio at Risk by Branch(Pentaho)" : "La cartera en riesgo por sucursal (Pentaho)", + "Portfolio at Risk(Pentaho)" : "Cartera en Riesgo (Pentaho)", + "Rescheduled Loans" : "préstamos reprogramados", + "Rescheduled Loans(Pentaho)" : "préstamos reprogramados (Pentaho)", + "Written-Off Loans" : "Los préstamos dados de baja", + "Written-Off Loans(Pentaho)" : "créditos castigados (Pentaho)", + "Active Loan Summary per Branch" : "Préstamo Resumen activa por rama", + "Balance Outstanding" : "Saldo pendiente", + "Client Loan Account Schedule" : "Cliente Préstamo Cuenta Lista", + "Collection Report" : "Colección de informes", + "Collection Report by Disbursement Date" : "Colección de informes por Fecha de Desembolso", + "Disbursal Report" : "Informe desembolso", + "Client Savings Summary" : "Resumen ahorros de los clientes", + "FieldAgentStats" : "FieldAgentStats", + "Client Saving Transactions" : "Las transacciones de ahorro de cliente", + "Savings Accounts Dormancy Report" : "Informe de Ahorros Cuentas de latencia", + "TxnRunningBalances(Pentaho)" : "TxnRunningBalances (Pentaho)" } diff --git a/app/global-translations/locale-zh_CN.json b/app/global-translations/locale-zh_CN.json index 26510cd7..f0ca2958 100644 --- a/app/global-translations/locale-zh_CN.json +++ b/app/global-translations/locale-zh_CN.json @@ -2129,5 +2129,6 @@ "label.selectsurvey": "选择调查", "label.heading.escheatLiability": "归还财产责任", "label.input.escheatLiability": "归还财产责任", - "label.heading.lastActive": "最近活跃" + "label.heading.lastActive": "最近活跃", + "Client Savings Summary":"客戶節約摘要" } diff --git a/app/scripts/controllers/organization/EditWorkingDaysController.js b/app/scripts/controllers/organization/EditWorkingDaysController.js index dd2fddaf..491da4ce 100644 --- a/app/scripts/controllers/organization/EditWorkingDaysController.js +++ b/app/scripts/controllers/organization/EditWorkingDaysController.js @@ -4,13 +4,13 @@ scope.workingDays = []; scope.selectedRepaymentType = ""; scope.compareWith = [ - {name: "MO", value: "Monday"}, - {name: "TU", value: "Tuesday"}, - {name: "WE", value: "Wednesday"}, - {name: "TH", value: "Thursday"}, - {name: "FR", value: "Friday"}, - {name: "SA", value: "Saturday"}, - {name: "SU", value: "Sunday"} + {name: "MO", value: "Monday", code: "day.monday"}, + {name: "TU", value: "Tuesday", code: "day.tuesday"}, + {name: "WE", value: "Wednesday", code: "day.wednesday"}, + {name: "TH", value: "Thursday", code: "day.thursday"}, + {name: "FR", value: "Friday", code: "day.friday"}, + {name: "SA", value: "Saturday", code: "day.saturday"}, + {name: "SU", value: "Sunday", code: "day.sunday"} ]; resourceFactory.workingDaysResource.get(function(data){ @@ -28,12 +28,14 @@ if(days.indexOf(scope.compareWith[i].name.toString()) > -1){ scope.workingDays.push({ day : scope.compareWith[i].value, + code : scope.compareWith[i].code, value : true }); } else{ scope.workingDays.push({ day : scope.compareWith[i].value, + code : scope.compareWith[i].code, value : false }); } diff --git a/app/scripts/controllers/reports/ViewReportsController.js b/app/scripts/controllers/reports/ViewReportsController.js index bed9796e..04430f12 100644 --- a/app/scripts/controllers/reports/ViewReportsController.js +++ b/app/scripts/controllers/reports/ViewReportsController.js @@ -17,6 +17,19 @@ } scope.filterText = scope.searchCriteria.reports; + scope.addLocaleReportName = function (){ + if(document.getElementsByName("locale_name") != undefined && scope.reports){ + if(scope.reports[0].report_locale_name == undefined){ + var result = document.getElementsByName("locale_name"); + for(var i=0; i{{'label.input.accounttype' | translate}}
- + +
@@ -51,9 +51,9 @@
- +
diff --git a/app/views/accounting/editglaccounting.html b/app/views/accounting/editglaccounting.html index c24db177..9d98cb82 100644 --- a/app/views/accounting/editglaccounting.html +++ b/app/views/accounting/editglaccounting.html @@ -15,9 +15,9 @@
- + +
@@ -52,9 +52,9 @@
- +
diff --git a/app/views/accounting/viewglaccounting.html b/app/views/accounting/viewglaccounting.html index aa7edccd..a69450dc 100644 --- a/app/views/accounting/viewglaccounting.html +++ b/app/views/accounting/viewglaccounting.html @@ -42,7 +42,7 @@ {{ 'label.heading.acctype' | translate }} - {{glaccount.type.value}} + {{glaccount.type.code | translate}} {{ 'label.heading.parentaccountname' | translate }} @@ -54,7 +54,7 @@ {{ 'label.heading.accountusage' | translate }} - {{glaccount.usage.value}} + {{glaccount.usage.code | translate}} diff --git a/app/views/organization/workingdays.html b/app/views/organization/workingdays.html index fa2dba66..0010b846 100644 --- a/app/views/organization/workingdays.html +++ b/app/views/organization/workingdays.html @@ -13,7 +13,7 @@ - +
@@ -21,9 +21,8 @@
- +
diff --git a/app/views/reports/run_reports.html b/app/views/reports/run_reports.html index c45f2daa..2efcedd6 100644 --- a/app/views/reports/run_reports.html +++ b/app/views/reports/run_reports.html @@ -7,7 +7,7 @@
- {{reportName}} + {{''+reportName+'' | translate}}

- +
@@ -38,7 +38,7 @@
- +
@@ -46,7 +46,7 @@
- +
- +
@@ -79,7 +79,7 @@
- +   {{ 'label.button.runreport' | translate }}
@@ -129,7 +129,7 @@
- +
\ No newline at end of file