(refactor) LocationEditForm: renaming localization string names
This commit is contained in:
@@ -80,8 +80,8 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset className="fieldset bg-base-200 border-base-300 rounded-box w-xs border p-4 pb-2 mt-4">
|
||||
<legend className="fieldset-legend font-semibold uppercase">{t("tenant-2d-code-legend")}</legend>
|
||||
<InfoBox className="p-1 mb-1">{t("tenant-2d-code-info")}</InfoBox>
|
||||
<legend className="fieldset-legend font-semibold uppercase">{t("tenant-payment-instructions-legend")}</legend>
|
||||
<InfoBox className="p-1 mb-1">{t("tenant-payment-instructions-code-info")}</InfoBox>
|
||||
|
||||
<fieldset className="fieldset">
|
||||
<label className="label cursor-pointer justify-start gap-3">
|
||||
@@ -92,7 +92,7 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
|
||||
checked={generateTenantCode}
|
||||
onChange={(e) => setGenerateTenantCode(e.target.checked)}
|
||||
/>
|
||||
<legend className="fieldset-legend">{t("tenant-2d-code-toggle-label")}</legend>
|
||||
<legend className="fieldset-legend">{t("tenant-payment-instructions-toggle-label")}</legend>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -100,14 +100,14 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
|
||||
<>
|
||||
<div className="form-control w-full">
|
||||
<label className="label">
|
||||
<span className="label-text">{t("tenant-name-label")}</span>
|
||||
<span className="label-text">{t("iban-payment--tenant-name-label")}</span>
|
||||
</label>
|
||||
<input
|
||||
id="tenantName"
|
||||
name="tenantName"
|
||||
type="text"
|
||||
maxLength={30}
|
||||
placeholder={t("tenant-name-placeholder")}
|
||||
placeholder={t("iban-payment--tenant-name-placeholder")}
|
||||
className="input input-bordered w-full placeholder:text-gray-600"
|
||||
defaultValue={location?.tenantName ?? ""}
|
||||
onChange={(e) => handleTenantFieldChange("tenantName", e.target.value)}
|
||||
@@ -124,14 +124,14 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
|
||||
|
||||
<div className="form-control w-full">
|
||||
<label className="label">
|
||||
<span className="label-text">{t("tenant-street-label")}</span>
|
||||
<span className="label-text">{t("iban-payment--tenant-street-label")}</span>
|
||||
</label>
|
||||
<input
|
||||
id="tenantStreet"
|
||||
name="tenantStreet"
|
||||
type="text"
|
||||
maxLength={27}
|
||||
placeholder={t("tenant-street-placeholder")}
|
||||
placeholder={t("iban-payment--tenant-street-placeholder")}
|
||||
className="input input-bordered w-full placeholder:text-gray-600"
|
||||
defaultValue={location?.tenantStreet ?? ""}
|
||||
onChange={(e) => handleTenantFieldChange("tenantStreet", e.target.value)}
|
||||
@@ -148,14 +148,14 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
|
||||
|
||||
<div className="form-control w-full mb-4">
|
||||
<label className="label">
|
||||
<span className="label-text">{t("tenant-town-label")}</span>
|
||||
<span className="label-text">{t("iban-payment--tenant-town-label")}</span>
|
||||
</label>
|
||||
<input
|
||||
id="tenantTown"
|
||||
name="tenantTown"
|
||||
type="text"
|
||||
maxLength={27}
|
||||
placeholder={t("tenant-town-placeholder")}
|
||||
placeholder={t("iban-payment--tenant-town-placeholder")}
|
||||
className="input input-bordered w-full placeholder:text-gray-600"
|
||||
defaultValue={location?.tenantTown ?? ""}
|
||||
onChange={(e) => handleTenantFieldChange("tenantTown", e.target.value)}
|
||||
@@ -169,7 +169,7 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
<InfoBox className="p-1 mb-1">{t("tenant-2d-code-note")}</InfoBox>
|
||||
<InfoBox className="p-1 mb-1">{t("tenant--payment-instructions-note")}</InfoBox>
|
||||
</>
|
||||
)}
|
||||
</fieldset>
|
||||
|
||||
@@ -141,16 +141,19 @@
|
||||
"location-name-legend": "Realestate name",
|
||||
"location-name-placeholder": "enter realestate name",
|
||||
"notes-placeholder": "notes",
|
||||
"tenant-2d-code-legend": "PAYMENT INSTRUCTIONS",
|
||||
"tenant-2d-code-info": "When the tenant opens the link to the statement for the given month, the application can show payment instructions for utility costs to your IBAN, as well as a 2D code they can scan.",
|
||||
"tenant-2d-code-toggle-label": "show payment instructions to the tenant",
|
||||
"tenant-2d-code-note": "IMPORTANT: for this to work you will also need to go into app settings and enter your name and IBAN.",
|
||||
"tenant-name-label": "Tenant First and Last Name",
|
||||
"tenant-name-placeholder": "enter tenant's first and last name",
|
||||
"tenant-street-label": "Tenant Street and House Number",
|
||||
"tenant-street-placeholder": "enter tenant's street",
|
||||
"tenant-town-label": "Tenant Postal Code and Town",
|
||||
"tenant-town-placeholder": "enter tenant's town",
|
||||
|
||||
"tenant-payment-instructions-legend": "PAYMENT INSTRUCTIONS",
|
||||
"tenant-payment-instructions-code-info": "When the tenant opens the link to the statement for the given month, the application can show payment instructions for utility costs to your IBAN, as well as a 2D code they can scan.",
|
||||
"tenant-payment-instructions-toggle-label": "show payment instructions to the tenant",
|
||||
"tenant--payment-instructions-note": "IMPORTANT: for this to work you will also need to go into app settings and enter your name and IBAN.",
|
||||
|
||||
"iban-payment--tenant-name-label": "Tenant First and Last Name",
|
||||
"iban-payment--tenant-name-placeholder": "enter tenant's first and last name",
|
||||
"iban-payment--tenant-street-label": "Tenant Street and House Number",
|
||||
"iban-payment--tenant-street-placeholder": "enter tenant's street",
|
||||
"iban-payment--tenant-town-label": "Tenant Postal Code and Town",
|
||||
"iban-payment--tenant-town-placeholder": "enter tenant's town",
|
||||
|
||||
"auto-utility-bill-forwarding-legend": "AUTOMATIC UTILITY BILL FORWARDING",
|
||||
"auto-utility-bill-forwarding-info": "This option enables automatic forwarding of utility bills to the tenant via email according to the selected forwarding strategy.",
|
||||
"auto-utility-bill-forwarding-toggle-label": "forward utility bills",
|
||||
|
||||
@@ -140,16 +140,19 @@
|
||||
"location-name-legend": "Realestate name",
|
||||
"location-name-placeholder": "unesite naziv nekretnine",
|
||||
"notes-placeholder": "bilješke",
|
||||
"tenant-2d-code-legend": "UPUTE ZA UPLATU",
|
||||
"tenant-2d-code-info": "Kada podstanar otvori poveznicu na obračun za zadani mjesec aplikacija mu može prikazati upute za uplatu troškova režija na vaš IBAN, kao i 2D koji može skenirati.",
|
||||
"tenant-2d-code-toggle-label": "podstanaru prikaži upute za uplatu",
|
||||
"tenant-2d-code-note": "VAŽNO: za ovu funkcionalnost potrebno je otvoriti postavke aplikacije, te unijeti vaše ime i IBAN.",
|
||||
"tenant-name-label": "Ime i prezime podstanara",
|
||||
"tenant-name-placeholder": "unesite ime i prezime podstanara",
|
||||
"tenant-street-label": "Ulica podstanara i kućni broj",
|
||||
"tenant-street-placeholder": "unesite ulicu podstanara",
|
||||
"tenant-town-label": "Poštanski broj i Grad podstanara",
|
||||
"tenant-town-placeholder": "unesite poštanski broj i grad podstanara",
|
||||
|
||||
"tenant-payment-instructions-legend": "UPUTE ZA UPLATU",
|
||||
"tenant-payment-instructions-code-info": "Kada podstanar otvori poveznicu na obračun za zadani mjesec aplikacija mu može prikazati upute za uplatu troškova režija na vaš IBAN, kao i 2D koji može skenirati.",
|
||||
"tenant-payment-instructions-toggle-label": "podstanaru prikaži upute za uplatu",
|
||||
"tenant--payment-instructions-note": "VAŽNO: za ovu funkcionalnost potrebno je otvoriti postavke aplikacije, te unijeti vaše ime i IBAN.",
|
||||
|
||||
"iban-payment--tenant-name-label": "Ime i prezime podstanara",
|
||||
"iban-payment--tenant-name-placeholder": "unesite ime i prezime podstanara",
|
||||
"iban-payment--tenant-street-label": "Ulica podstanara i kućni broj",
|
||||
"iban-payment--tenant-street-placeholder": "unesite ulicu podstanara",
|
||||
"iban-payment--tenant-town-label": "Poštanski broj i Grad podstanara",
|
||||
"iban-payment--tenant-town-placeholder": "unesite poštanski broj i grad podstanara",
|
||||
|
||||
"auto-utility-bill-forwarding-legend": "AUTOMATSKO PROSLJEĐIVANJE REŽIJA",
|
||||
"auto-utility-bill-forwarding-info": "Ova opcija omogućuje automatsko prosljeđivanje režija podstanaru putem emaila u skladu s odabranom strategijom.",
|
||||
"auto-utility-bill-forwarding-toggle-label": "proslijedi režije automatski",
|
||||
|
||||
Reference in New Issue
Block a user