Skip to content

Commit

Permalink
ABN-40/chore: Updated translations based on ABN feedback ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
SalmanTwo authored and brtkwr committed Oct 30, 2024
1 parent 14e5c81 commit 7ee6368
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Model/Two.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,15 +340,15 @@ public function getFieldFromLocStr($loc_str): ?string
{
$loc_str = preg_replace('/\s+/', '', $loc_str);
$fieldLocStrMapping = [
'["buyer","representative","phone_number"]' => 'Phone Number is not valid.',
'["buyer","company","organization_number"]' => 'Company ID is not valid.',
'["buyer","representative","first_name"]' => 'First Name is not valid.',
'["buyer","representative","last_name"]' => 'Last Name is not valid.',
'["buyer","representative","email"]' => 'Email Address is not valid.',
'["billing_address","street_address"]' => 'Street Address is not valid.',
'["billing_address","city"]' => 'City is not valid.',
'["billing_address","country"]' => 'Country is not valid.',
'["billing_address","postal_code"]' => 'Zip/Postal Code is not valid.',
'["buyer","representative","phone_number"]' => __('Phone Number is not valid.'),
'["buyer","company","organization_number"]' => __('Company ID is not valid.'),
'["buyer","representative","first_name"]' => __('First Name is not valid.'),
'["buyer","representative","last_name"]' => __('Last Name is not valid.'),
'["buyer","representative","email"]' => __('Email Address is not valid.'),
'["billing_address","street_address"]' => __('Street Address is not valid.'),
'["billing_address","city"]' => __('City is not valid.'),
'["billing_address","country"]' => __('Country is not valid.'),
'["billing_address","postal_code"]' => __('Zip/Postal Code is not valid.'),
];
if (array_key_exists($loc_str, $fieldLocStrMapping)) {
return $fieldLocStrMapping[$loc_str];
Expand Down
9 changes: 9 additions & 0 deletions i18n/en_US.csv
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ Branding,Branding
"By checking this box, I confirm that I have read and agree to the %1.","By checking this box, I confirm that I have read and agree to the %1."
"Check last 100 debug log records","Check last 100 debug log records"
"Check last 100 error log records","Check last 100 error log records"
"City is not valid.","City is not valid."
"Click here to log in or sign up as a Sole Trader.","Click here to log in or sign up as a Sole Trader."
"Company ID","Company ID"
"Company ID is not valid.","Company ID is not valid."
"Company Name","Company Name"
"Could not initiate capture with %1","Could not initiate capture with %1"
"Could not initiate refund with %1","Could not initiate refund with %1"
"Could not update %1 order status to cancelled. Please contact support with order ID %2. Error: %3","Could not update %1 order status to cancelled. Please contact support with order ID %2. Error: %3"
"Country is not valid.","Country is not valid."
Credentials,Credentials
"Credentials are invalid","Credentials are invalid"
"Credentials are missing","Credentials are missing"
Expand All @@ -39,6 +42,7 @@ Department,Department
"Display info link","Display info link"
Download,Download
"Download as .txt file","Download as .txt file"
"Email Address is not valid.","Email Address is not valid."
"Enable address search","Enable address search"
"Enable company search","Enable company search"
"Enable order intent","Enable order intent"
Expand All @@ -49,13 +53,15 @@ Download,Download
Environment,Environment
"Failed to refund order with %1. Reason: %2","Failed to refund order with %1. Reason: %2"
"Find out more","Find out more"
"First Name is not valid.","First Name is not valid."
"Fulfilment order status","Fulfilment order status"
"Fulfilment trigger","Fulfilment trigger"
General,General
"Invalid API response from %1.","Invalid API response from %1."
"Invoice purchase with %1 is not available for this order.","Invoice purchase with %1 is not available for this order."
"Last 100 debug log lines","Last 100 debug log lines"
"Last 100 error log records","Last 100 error log records"
"Last Name is not valid.","Last Name is not valid."
"Log is empty","Log is empty"
OK,OK
"On Completion","On Completion"
Expand All @@ -67,6 +73,7 @@ OK,OK
Payment,Payment
"Payment Terms","Payment Terms"
"Payment method","Payment method"
"Phone Number is not valid.","Phone Number is not valid."
"Place Order","Place Order"
"Please try again later.","Please try again later."
Production,Production
Expand All @@ -79,6 +86,7 @@ Search,Search
"Sole Trader","Sole Trader"
"Something went wrong with your request to %1. %2","Something went wrong with your request to %1. %2"
"Sort order","Sort order"
"Street Address is not valid.","Street Address is not valid."
"Successfully refunded order with %1 for order ID: %2. Refund reference: %3","Successfully refunded order with %1 for order ID: %2. Refund reference: %3"
TWO,TWO
"The %1 payment plugin for Magento simplifies B2B shopping, making it easy and safe for merchants to offer invoices as a payment method.<br>The payment method lives next to other payment methods in your existing checkout, and offers a variety of configuration options to suit your businesses needs.<br>If you would like to know more about how to configure the plugin, check out our <a href=""%2"" target=""_blank"">step by step guide</a>.","The %1 payment plugin for Magento simplifies B2B shopping, making it easy and safe for merchants to offer invoices as a payment method.<br>The payment method lives next to other payment methods in your existing checkout, and offers a variety of configuration options to suit your businesses needs.<br>If you would like to know more about how to configure the plugin, check out our <a href=""%2"" target=""_blank"">step by step guide</a>."
Expand All @@ -99,3 +107,4 @@ Version,Version
"Your invoice purchase with %1 is likely to be accepted subject to additional checks.","Your invoice purchase with %1 is likely to be accepted subject to additional checks."
"Your request to %1 failed. Reason: %2","Your request to %1 failed. Reason: %2"
"Your sole trader account could not be verified.","Your sole trader account could not be verified."
"Zip/Postal Code is not valid.","Zip/Postal Code is not valid."
9 changes: 9 additions & 0 deletions i18n/nb_NO.csv
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ Branding,Merkevarebygging
"By checking this box, I confirm that I have read and agree to the %1.","Ved å krysse av denne boksen bekrefter jeg at jeg har lest og godtar %1."
"Check last 100 debug log records","Sjekk siste 100 feilsøkingsloggposter"
"Check last 100 error log records","Sjekk siste 100 feilloggposter"
"City is not valid.","By er ikke gyldig."
"Click here to log in or sign up as a Sole Trader.","Klikk her for å logge inn eller registrere deg som eneforhandler."
"Company ID",Organisasjonsnummer
"Company ID is not valid.","Firma-ID er ikke gyldig."
"Company Name",Selskapsnavn
"Could not initiate capture with %1","Kunne ikke starte fangst med %1"
"Could not initiate refund with %1","Kunne ikke starte refusjon med %1"
"Could not update %1 order status to cancelled. Please contact support with order ID %2. Error: %3","Kunne ikke oppdatere %1 ordrestatus til kansellert. Ta kontakt med brukerstøtten med ordre-ID %2. Feil: %3"
"Country is not valid.","Land er ikke gyldig."
Credentials,Legitimasjon
"Credentials are invalid","Legitimasjonen er ugyldig"
"Credentials are missing","Legitimasjon mangler"
Expand All @@ -39,6 +42,7 @@ Department,Avdeling
"Display info link","Vis infolink"
Download,"Last ned"
"Download as .txt file","Last ned som .txt-fil"
"Email Address is not valid.","E-postadresse er ikke gyldig."
"Enable address search","Aktiver adressesøk"
"Enable company search","Aktiver firmasøk"
"Enable order intent","Aktiver ordrehensikt"
Expand All @@ -49,13 +53,15 @@ Download,"Last ned"
Environment,Miljø
"Failed to refund order with %1. Reason: %2","Kunne ikke refundere bestillingen med %1. Årsak: %2"
"Find out more","Finn ut mer"
"First Name is not valid.","Fornavn er ikke gyldig."
"Fulfilment order status","Oppfyllelse av ordrestatus"
"Fulfilment trigger","Oppfyllelse utløser"
General,Generelt
"Invalid API response from %1.","Ugyldig API-svar fra %1."
"Invoice purchase with %1 is not available for this order.","Fakturakjøp med %1 er ikke tilgjengelig for denne bestillingen."
"Last 100 debug log lines","Siste 100 feilsøkingslogglinjer"
"Last 100 error log records","Siste 100 feilloggposter"
"Last Name is not valid.","Etternavn er ikke gyldig."
"Log is empty","Loggen er tom"
OK,OK
"On Completion","Ved ferdigstillelse"
Expand All @@ -67,6 +73,7 @@ OK,OK
Payment,Betaling
"Payment Terms",Betalingsvilkår
"Payment method",Betalingsmetode
"Phone Number is not valid.","Telefonnummer er ikke gyldig."
"Place Order","Plasser ordre"
"Please try again later.","Vennligst prøv igjen senere."
Production,Produksjon
Expand All @@ -79,6 +86,7 @@ Search,Søk
"Sole Trader",Eneforhandler
"Something went wrong with your request to %1. %2","Noe gikk galt med forespørselen din til %1. %2"
"Sort order",Sorteringsrekkefølge
"Street Address is not valid.","Gateadresse er ikke gyldig."
"Successfully refunded order with %1 for order ID: %2. Refund reference: %3","Vellykket refundert bestilling med %1 for bestillings-ID: %2. Refusjonsreferanse: %3"
TWO,TWO
"The %1 payment plugin for Magento simplifies B2B shopping, making it easy and safe for merchants to offer invoices as a payment method.<br>The payment method lives next to other payment methods in your existing checkout, and offers a variety of configuration options to suit your businesses needs.<br>If you would like to know more about how to configure the plugin, check out our <a href=""%2"" target=""_blank"">step by step guide</a>.","%1 betalingsplugin for Magento forenkler B2B shopping, og gjør det enkelt og trygt for selgere å tilby fakturaer som betalingsmåte. <br> Betalingsmetoden lever ved siden av andre betalingsmetoder i din eksisterende kassen, og tilbyr en rekke konfigurasjonsalternativer for å passe bedriftens behov. <br> Hvis du vil vite mer om hvordan du konfigurerer programtillegget, sjekk ut vår <a href=""%2"" target=""_blank""> trinnvise veiledning </a> ."
Expand All @@ -99,3 +107,4 @@ Version,Versjon
"Your invoice purchase with %1 is likely to be accepted subject to additional checks.","Fakturakjøpet ditt med %1 vil sannsynligvis bli akseptert med forbehold om ytterligere kontroller."
"Your request to %1 failed. Reason: %2","Din forespørsel til %1 mislyktes. Årsak: %2"
"Your sole trader account could not be verified.","Din eneforhandlerkonto kunne ikke bekreftes."
"Zip/Postal Code is not valid.","Postnummer er ikke gyldig."
9 changes: 9 additions & 0 deletions i18n/nl_NL.csv
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ Branding,Merknaam
"By checking this box, I confirm that I have read and agree to the %1.","Door dit vakje aan te vinken bevestig ik dat ik de %1 heb gelezen en ermee akkoord ga."
"Check last 100 debug log records","Controleer de laatste 100 debug-logboek records"
"Check last 100 error log records","Controleer de laatste 100 foutenlogboek records"
"City is not valid.","Stad is niet geldig."
"Click here to log in or sign up as a Sole Trader.","Klik hier om in te loggen of u aan te melden als zelfstandig ondernemer."
"Company ID",Bedrijfs-ID
"Company ID is not valid.","Bedrijfs-ID is niet geldig."
"Company Name",Bedrijfsnaam
"Could not initiate capture with %1","Kon geen vastlegging starten met %1"
"Could not initiate refund with %1","Kon geen terugbetaling starten met %1"
"Could not update %1 order status to cancelled. Please contact support with order ID %2. Error: %3","Kon %1 orderstatus niet updaten naar geannuleerd. Neem contact op met support met bestelnummer %2. Fout: %3"
"Country is not valid.","Land is niet geldig."
Credentials,Inloggegevens
"Credentials are invalid","Inloggegevens zijn ongeldig"
"Credentials are missing","Inloggegevens ontbreken"
Expand All @@ -39,6 +42,7 @@ Department,Afdeling
"Display info link","Infolink weergeven"
Download,Download
"Download as .txt file","Downloaden als .txt-bestand"
"Email Address is not valid.","E-mailadres is niet geldig."
"Enable address search","Adres zoeken inschakelen"
"Enable company search","Bedrijf zoeken inschakelen"
"Enable order intent","Bestelintentie inschakelen"
Expand All @@ -49,13 +53,15 @@ Download,Download
Environment,Omgeving
"Failed to refund order with %1. Reason: %2","Het is niet gelukt om de bestelling met %1 terug te betalen. Reden: %2"
"Find out more","Meer informatie"
"First Name is not valid.","Voornaam is niet geldig."
"Fulfilment order status","Status van vervulling bestelling"
"Fulfilment trigger","Trigger voor vervulling"
General,Algemeen
"Invalid API response from %1.","Ongeldige API-respons van %1."
"Invoice purchase with %1 is not available for this order.","Aankoop op factuur met %1 is niet beschikbaar voor deze bestelling."
"Last 100 debug log lines","Laatste 100 debug-logregels"
"Last 100 error log records","Laatste 100 foutenlogboek records"
"Last Name is not valid.","Achternaam is niet geldig."
"Log is empty","Logboek is leeg"
OK,OK
"On Completion","Bij voltooiing"
Expand All @@ -67,6 +73,7 @@ OK,OK
Payment,Betaling
"Payment Terms",Betaalvoorwaarden
"Payment method",Betaalmethode
"Phone Number is not valid.","Telefoonnummer is niet geldig."
"Place Order","Bestelling plaatsen"
"Please try again later.","Probeer het later opnieuw."
Production,Productie
Expand All @@ -79,6 +86,7 @@ Search,Zoekopdracht
"Sole Trader",Eenmanszaak
"Something went wrong with your request to %1. %2","Er is iets misgegaan met uw verzoek aan %1. %2"
"Sort order",Sorteervolgorde
"Street Address is not valid.","Straatadres is niet geldig."
"Successfully refunded order with %1 for order ID: %2. Refund reference: %3","Bestelling succesvol terugbetaald met %1 voor bestelnummer: %2. Terugbetalingsreferentie: %3"
TWO,TWO
"The %1 payment plugin for Magento simplifies B2B shopping, making it easy and safe for merchants to offer invoices as a payment method.<br>The payment method lives next to other payment methods in your existing checkout, and offers a variety of configuration options to suit your businesses needs.<br>If you would like to know more about how to configure the plugin, check out our <a href=""%2"" target=""_blank"">step by step guide</a>.","De %1-betaalplug-in voor Magento vereenvoudigt B2B-shoppen en maakt het voor verkopers eenvoudig en veilig om facturen als betaalmethode aan te bieden. <br> De betaalmethode staat naast andere betaalmethoden in je bestaande kassa en biedt een verscheidenheid aan configuratieopties die aansluiten op de behoeften van je bedrijf. <br> Als je meer wilt weten over het configureren van de plug-in, bekijk dan onze <a href=""%2"" target=""_blank""> stapsgewijze handleiding </a> ."
Expand All @@ -99,3 +107,4 @@ Version,Versie
"Your invoice purchase with %1 is likely to be accepted subject to additional checks.","Uw aankoop op factuur met %1 wordt waarschijnlijk geaccepteerd, mits er aanvullende controles worden uitgevoerd."
"Your request to %1 failed. Reason: %2","Uw verzoek aan %1 is mislukt. Reden: %2"
"Your sole trader account could not be verified.","Uw eenmanszaakaccount kon niet worden geverifieerd."
"Zip/Postal Code is not valid.","Postcode is niet geldig."
9 changes: 9 additions & 0 deletions i18n/sv_SE.csv
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ Branding,Branding
"By checking this box, I confirm that I have read and agree to the %1.","Genom att markera denna ruta bekräftar jag att jag har läst och godkänner %1."
"Check last 100 debug log records","Kontrollera de senaste 100 felsökningsloggposterna"
"Check last 100 error log records","Kontrollera de senaste 100 felloggposterna"
"City is not valid.","Stad är inte giltig."
"Click here to log in or sign up as a Sole Trader.","Klicka här för att logga in eller registrera dig som enskild näringsidkare."
"Company ID",Organisationsnummer
"Company ID is not valid.","Företags-ID är inte giltigt."
"Company Name",Företagsnamn
"Could not initiate capture with %1","Kunde inte initiera infångning med %1"
"Could not initiate refund with %1","Kunde inte initiera återbetalning med %1"
"Could not update %1 order status to cancelled. Please contact support with order ID %2. Error: %3","Kunde inte uppdatera %1 orderstatus till annullerad. Kontakta supporten med beställnings-ID %2. Fel: %3"
"Country is not valid.","Land är inte giltigt."
Credentials,Autentiseringsuppgifter
"Credentials are invalid","Autentiseringsuppgifterna är ogiltiga"
"Credentials are missing","Autentiseringsuppgifterna saknas"
Expand All @@ -39,6 +42,7 @@ Department,Avdelning
"Display info link","Visa infolänk"
Download,"Ladda ner"
"Download as .txt file","Ladda ner som .txt-fil"
"Email Address is not valid.","E-postadress är inte giltig."
"Enable address search","Aktivera adresssökning"
"Enable company search","Aktivera företagssökning"
"Enable order intent","Aktivera orderavsikt"
Expand All @@ -49,13 +53,15 @@ Download,"Ladda ner"
Environment,Miljö
"Failed to refund order with %1. Reason: %2","Det gick inte att återbetala beställningen med %1. Orsak: %2"
"Find out more","Ta reda på mer"
"First Name is not valid.","Förnamn är inte giltigt."
"Fulfilment order status","Uppfyllande orderstatus"
"Fulfilment trigger","Uppfyllelse trigger"
General,Generellt
"Invalid API response from %1.","Ogiltigt API-svar från %1."
"Invoice purchase with %1 is not available for this order.","Fakturaköp med %1 är inte tillgängligt för den här beställningen."
"Last 100 debug log lines","Senaste 100 felsökningsloggraderna"
"Last 100 error log records","Senaste 100 felloggposter"
"Last Name is not valid.","Efternamn är inte giltigt."
"Log is empty","Loggen är tom"
OK,OK
"On Completion","Vid färdigställande"
Expand All @@ -67,6 +73,7 @@ OK,OK
Payment,Betalning
"Payment Terms",Betalningsvillkor
"Payment method",Betalningsmetod
"Phone Number is not valid.","Telefonnummer är inte giltigt."
"Place Order",Beställa
"Please try again later.","Försök igen senare."
Production,Produktion
Expand All @@ -79,6 +86,7 @@ Search,Sök
"Sole Trader","Enskild näringsidkare"
"Something went wrong with your request to %1. %2","Något gick fel med din begäran till %1. %2"
"Sort order",Sorteringsordning
"Street Address is not valid.","Gatuadress är inte giltig."
"Successfully refunded order with %1 for order ID: %2. Refund reference: %3","Återbetalad beställning med %1 för beställnings-ID: %2. Återbetalningsreferens: %3"
TWO,TWO
"The %1 payment plugin for Magento simplifies B2B shopping, making it easy and safe for merchants to offer invoices as a payment method.<br>The payment method lives next to other payment methods in your existing checkout, and offers a variety of configuration options to suit your businesses needs.<br>If you would like to know more about how to configure the plugin, check out our <a href=""%2"" target=""_blank"">step by step guide</a>.","Betalningspluginet %1 för Magento förenklar B2B-shopping, vilket gör det enkelt och säkert för handlare att erbjuda fakturor som betalningsmetod. <br> Betalningsmetoden finns bredvid andra betalningsmetoder i din befintliga kassa, och erbjuder en mängd olika konfigurationsalternativ för att passa ditt företags behov. <br> Om du vill veta mer om hur du konfigurerar plugin-programmet, kolla in vår <a href=""%2"" target=""_blank""> steg-för-steg-guide </a> ."
Expand All @@ -99,3 +107,4 @@ Version,Version
"Your invoice purchase with %1 is likely to be accepted subject to additional checks.","Ditt fakturaköp med %1 kommer sannolikt att accepteras under förutsättning av ytterligare kontroller."
"Your request to %1 failed. Reason: %2","Din begäran till %1 misslyckades. Orsak: %2"
"Your sole trader account could not be verified.","Ditt enskild näringsidkarekonto kunde inte verifieras."
"Zip/Postal Code is not valid.","Postnummer är inte giltigt."

0 comments on commit 7ee6368

Please sign in to comment.