(refactor) LocationEditForm: renaming localization string names

This commit is contained in:
2025-11-24 14:50:54 +01:00
parent 632f8888b5
commit ead7451170
3 changed files with 36 additions and 30 deletions

View File

@@ -80,8 +80,8 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
</div> </div>
</fieldset> </fieldset>
<fieldset className="fieldset bg-base-200 border-base-300 rounded-box w-xs border p-4 pb-2 mt-4"> <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> <legend className="fieldset-legend font-semibold uppercase">{t("tenant-payment-instructions-legend")}</legend>
<InfoBox className="p-1 mb-1">{t("tenant-2d-code-info")}</InfoBox> <InfoBox className="p-1 mb-1">{t("tenant-payment-instructions-code-info")}</InfoBox>
<fieldset className="fieldset"> <fieldset className="fieldset">
<label className="label cursor-pointer justify-start gap-3"> <label className="label cursor-pointer justify-start gap-3">
@@ -92,7 +92,7 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
checked={generateTenantCode} checked={generateTenantCode}
onChange={(e) => setGenerateTenantCode(e.target.checked)} 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> </label>
</fieldset> </fieldset>
@@ -100,14 +100,14 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
<> <>
<div className="form-control w-full"> <div className="form-control w-full">
<label className="label"> <label className="label">
<span className="label-text">{t("tenant-name-label")}</span> <span className="label-text">{t("iban-payment--tenant-name-label")}</span>
</label> </label>
<input <input
id="tenantName" id="tenantName"
name="tenantName" name="tenantName"
type="text" type="text"
maxLength={30} maxLength={30}
placeholder={t("tenant-name-placeholder")} placeholder={t("iban-payment--tenant-name-placeholder")}
className="input input-bordered w-full placeholder:text-gray-600" className="input input-bordered w-full placeholder:text-gray-600"
defaultValue={location?.tenantName ?? ""} defaultValue={location?.tenantName ?? ""}
onChange={(e) => handleTenantFieldChange("tenantName", e.target.value)} onChange={(e) => handleTenantFieldChange("tenantName", e.target.value)}
@@ -124,14 +124,14 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
<div className="form-control w-full"> <div className="form-control w-full">
<label className="label"> <label className="label">
<span className="label-text">{t("tenant-street-label")}</span> <span className="label-text">{t("iban-payment--tenant-street-label")}</span>
</label> </label>
<input <input
id="tenantStreet" id="tenantStreet"
name="tenantStreet" name="tenantStreet"
type="text" type="text"
maxLength={27} maxLength={27}
placeholder={t("tenant-street-placeholder")} placeholder={t("iban-payment--tenant-street-placeholder")}
className="input input-bordered w-full placeholder:text-gray-600" className="input input-bordered w-full placeholder:text-gray-600"
defaultValue={location?.tenantStreet ?? ""} defaultValue={location?.tenantStreet ?? ""}
onChange={(e) => handleTenantFieldChange("tenantStreet", e.target.value)} 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"> <div className="form-control w-full mb-4">
<label className="label"> <label className="label">
<span className="label-text">{t("tenant-town-label")}</span> <span className="label-text">{t("iban-payment--tenant-town-label")}</span>
</label> </label>
<input <input
id="tenantTown" id="tenantTown"
name="tenantTown" name="tenantTown"
type="text" type="text"
maxLength={27} maxLength={27}
placeholder={t("tenant-town-placeholder")} placeholder={t("iban-payment--tenant-town-placeholder")}
className="input input-bordered w-full placeholder:text-gray-600" className="input input-bordered w-full placeholder:text-gray-600"
defaultValue={location?.tenantTown ?? ""} defaultValue={location?.tenantTown ?? ""}
onChange={(e) => handleTenantFieldChange("tenantTown", e.target.value)} onChange={(e) => handleTenantFieldChange("tenantTown", e.target.value)}
@@ -169,7 +169,7 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
))} ))}
</div> </div>
</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> </fieldset>

View File

@@ -141,16 +141,19 @@
"location-name-legend": "Realestate name", "location-name-legend": "Realestate name",
"location-name-placeholder": "enter realestate name", "location-name-placeholder": "enter realestate name",
"notes-placeholder": "notes", "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-payment-instructions-legend": "PAYMENT INSTRUCTIONS",
"tenant-2d-code-toggle-label": "show payment instructions to the tenant", "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-2d-code-note": "IMPORTANT: for this to work you will also need to go into app settings and enter your name and IBAN.", "tenant-payment-instructions-toggle-label": "show payment instructions to the tenant",
"tenant-name-label": "Tenant First and Last Name", "tenant--payment-instructions-note": "IMPORTANT: for this to work you will also need to go into app settings and enter your name and IBAN.",
"tenant-name-placeholder": "enter tenant's first and last name",
"tenant-street-label": "Tenant Street and House Number", "iban-payment--tenant-name-label": "Tenant First and Last Name",
"tenant-street-placeholder": "enter tenant's street", "iban-payment--tenant-name-placeholder": "enter tenant's first and last name",
"tenant-town-label": "Tenant Postal Code and Town", "iban-payment--tenant-street-label": "Tenant Street and House Number",
"tenant-town-placeholder": "enter tenant's town", "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-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-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", "auto-utility-bill-forwarding-toggle-label": "forward utility bills",

View File

@@ -140,16 +140,19 @@
"location-name-legend": "Realestate name", "location-name-legend": "Realestate name",
"location-name-placeholder": "unesite naziv nekretnine", "location-name-placeholder": "unesite naziv nekretnine",
"notes-placeholder": "bilješke", "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-payment-instructions-legend": "UPUTE ZA UPLATU",
"tenant-2d-code-toggle-label": "podstanaru prikaži 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-2d-code-note": "VAŽNO: za ovu funkcionalnost potrebno je otvoriti postavke aplikacije, te unijeti vaše ime i IBAN.", "tenant-payment-instructions-toggle-label": "podstanaru prikaži upute za uplatu",
"tenant-name-label": "Ime i prezime podstanara", "tenant--payment-instructions-note": "VAŽNO: za ovu funkcionalnost potrebno je otvoriti postavke aplikacije, te unijeti vaše ime i IBAN.",
"tenant-name-placeholder": "unesite ime i prezime podstanara",
"tenant-street-label": "Ulica podstanara i kućni broj", "iban-payment--tenant-name-label": "Ime i prezime podstanara",
"tenant-street-placeholder": "unesite ulicu podstanara", "iban-payment--tenant-name-placeholder": "unesite ime i prezime podstanara",
"tenant-town-label": "Poštanski broj i Grad podstanara", "iban-payment--tenant-street-label": "Ulica podstanara i kućni broj",
"tenant-town-placeholder": "unesite poštanski broj i grad podstanara", "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-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-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", "auto-utility-bill-forwarding-toggle-label": "proslijedi režije automatski",