From 1126665dfcebb404ec20137cad6f377906bd63c0 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Tue, 1 Sep 2020 09:17:44 -0700 Subject: [PATCH] Fixed translation titles for RBAC labels in shop info BOD-320 --- bodyshop_translations.babel | 836 ++++++++++++++++++ .../courtesy-car-contract-list.component.jsx | 6 +- .../jobs-list-paginated.component.jsx | 2 +- .../shop-info/shop-info.rbac.component.jsx | 72 +- client/src/translations/en_us/common.json | 68 ++ client/src/translations/es/common.json | 68 ++ client/src/translations/fr/common.json | 68 ++ 7 files changed, 1080 insertions(+), 40 deletions(-) diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index 3404bf856..a2f67296b 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -1631,6 +1631,842 @@ + + rbac + + + accounting + + + payables + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + payments + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + receivables + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + + + contracts + + + create + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + detail + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + list + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + + + courtesycar + + + create + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + detail + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + list + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + + + csi + + + export + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + page + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + + + employees + + + page + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + + + invoices + + + enter + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + list + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + view + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + + + jobs + + + available-list + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + close + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + create + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + detail + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + intake + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + list-active + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + list-all + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + + + owners + + + detail + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + list + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + + + payments + + + enter + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + list + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + + + production + + + board + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + list + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + + + schedule + + + view + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + + + scoreboard + + + view + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + + + shiftclock + + + view + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + + + shop + + + rbac + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + templates + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + vendors + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + + + timetickets + + + enter + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + list + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + + + responsibilitycenter false diff --git a/client/src/components/courtesy-car-contract-list/courtesy-car-contract-list.component.jsx b/client/src/components/courtesy-car-contract-list/courtesy-car-contract-list.component.jsx index 718c1d0ad..e18829509 100644 --- a/client/src/components/courtesy-car-contract-list/courtesy-car-contract-list.component.jsx +++ b/client/src/components/courtesy-car-contract-list/courtesy-car-contract-list.component.jsx @@ -1,10 +1,10 @@ import { Table } from "antd"; -import React, { useState } from "react"; +import queryString from "query-string"; +import React from "react"; import { useTranslation } from "react-i18next"; import { Link, useHistory, useLocation } from "react-router-dom"; -import { alphaSort } from "../../utils/sorters"; import { DateFormatter } from "../../utils/DateFormatter"; -import queryString from "query-string"; +import { alphaSort } from "../../utils/sorters"; export default function CourtesyCarContractListComponent({ contracts, diff --git a/client/src/components/jobs-list-paginated/jobs-list-paginated.component.jsx b/client/src/components/jobs-list-paginated/jobs-list-paginated.component.jsx index 538150f62..3297c40a7 100644 --- a/client/src/components/jobs-list-paginated/jobs-list-paginated.component.jsx +++ b/client/src/components/jobs-list-paginated/jobs-list-paginated.component.jsx @@ -1,7 +1,7 @@ import { SyncOutlined } from "@ant-design/icons"; import { Button, Input, Table } from "antd"; import queryString from "query-string"; -import React, { useState } from "react"; +import React from "react"; import { useTranslation } from "react-i18next"; import { Link, useHistory, useLocation } from "react-router-dom"; import CurrencyFormatter from "../../utils/CurrencyFormatter"; diff --git a/client/src/components/shop-info/shop-info.rbac.component.jsx b/client/src/components/shop-info/shop-info.rbac.component.jsx index aec837af2..e4d9b401e 100644 --- a/client/src/components/shop-info/shop-info.rbac.component.jsx +++ b/client/src/components/shop-info/shop-info.rbac.component.jsx @@ -10,7 +10,7 @@ export default function ShopInfoRbacComponent({ form }) {
Payables", + "payments": "Accounting -> Payments", + "receivables": "Accounting -> Receivables" + }, + "contracts": { + "create": "Contracts -> Create", + "detail": "Contracts -> Detail", + "list": "Contracts -> List" + }, + "courtesycar": { + "create": "Courtesy Car -> Create", + "detail": "Courtesy Car -> Detail", + "list": "Courtesy Car -> List" + }, + "csi": { + "export": "CSI -> Export", + "page": "CSI -> Page" + }, + "employees": { + "page": "Employees -> List" + }, + "invoices": { + "enter": "Invoices -> Enter", + "list": "Invoices -> List", + "view": "Invoices -> View" + }, + "jobs": { + "available-list": "Jobs -> Available List", + "close": "Jobs -> Close", + "create": "Jobs -> Create", + "detail": "Jobs -> Detail", + "intake": "Jobs -> Intake", + "list-active": "Jobs -> List Active", + "list-all": "Jobs -> List All" + }, + "owners": { + "detail": "Owners -> Detail", + "list": "Owners -> List" + }, + "payments": { + "enter": "Payments -> Enter", + "list": "Payments -> List" + }, + "production": { + "board": "Production -> Board", + "list": "Production -> List" + }, + "schedule": { + "view": "Schedule -> View" + }, + "scoreboard": { + "view": "Scoreboard -> View" + }, + "shiftclock": { + "view": "Shift Clock -> View" + }, + "shop": { + "rbac": "Shop -> RBAC", + "templates": "Shop -> Templates", + "vendors": "Shop -> Vendors" + }, + "timetickets": { + "enter": "Time Tickets -> Enter", + "list": "Time Tickets -> List" + } + }, "responsibilitycenter": "Responsibility Center", "responsibilitycenter_accountdesc": "Account Description", "responsibilitycenter_accountitem": "Item", diff --git a/client/src/translations/es/common.json b/client/src/translations/es/common.json index d25d42057..90c6c0280 100644 --- a/client/src/translations/es/common.json +++ b/client/src/translations/es/common.json @@ -112,6 +112,74 @@ "notestext": "", "partslocation": "", "prodtargethrs": "", + "rbac": { + "accounting": { + "payables": "", + "payments": "", + "receivables": "" + }, + "contracts": { + "create": "", + "detail": "", + "list": "" + }, + "courtesycar": { + "create": "", + "detail": "", + "list": "" + }, + "csi": { + "export": "", + "page": "" + }, + "employees": { + "page": "" + }, + "invoices": { + "enter": "", + "list": "", + "view": "" + }, + "jobs": { + "available-list": "", + "close": "", + "create": "", + "detail": "", + "intake": "", + "list-active": "", + "list-all": "" + }, + "owners": { + "detail": "", + "list": "" + }, + "payments": { + "enter": "", + "list": "" + }, + "production": { + "board": "", + "list": "" + }, + "schedule": { + "view": "" + }, + "scoreboard": { + "view": "" + }, + "shiftclock": { + "view": "" + }, + "shop": { + "rbac": "", + "templates": "", + "vendors": "" + }, + "timetickets": { + "enter": "", + "list": "" + } + }, "responsibilitycenter": "", "responsibilitycenter_accountdesc": "", "responsibilitycenter_accountitem": "", diff --git a/client/src/translations/fr/common.json b/client/src/translations/fr/common.json index 33258fb5a..e5b84f8be 100644 --- a/client/src/translations/fr/common.json +++ b/client/src/translations/fr/common.json @@ -112,6 +112,74 @@ "notestext": "", "partslocation": "", "prodtargethrs": "", + "rbac": { + "accounting": { + "payables": "", + "payments": "", + "receivables": "" + }, + "contracts": { + "create": "", + "detail": "", + "list": "" + }, + "courtesycar": { + "create": "", + "detail": "", + "list": "" + }, + "csi": { + "export": "", + "page": "" + }, + "employees": { + "page": "" + }, + "invoices": { + "enter": "", + "list": "", + "view": "" + }, + "jobs": { + "available-list": "", + "close": "", + "create": "", + "detail": "", + "intake": "", + "list-active": "", + "list-all": "" + }, + "owners": { + "detail": "", + "list": "" + }, + "payments": { + "enter": "", + "list": "" + }, + "production": { + "board": "", + "list": "" + }, + "schedule": { + "view": "" + }, + "scoreboard": { + "view": "" + }, + "shiftclock": { + "view": "" + }, + "shop": { + "rbac": "", + "templates": "", + "vendors": "" + }, + "timetickets": { + "enter": "", + "list": "" + } + }, "responsibilitycenter": "", "responsibilitycenter_accountdesc": "", "responsibilitycenter_accountitem": "",