File: D:/HostingSpaces/Velosophe/dev.abloc.cc/wwwroot/app/plugins/universal_nonshipping/translate.php
<?php
// set default language to be nl | can be changed to anything unique and add values in the array for that string, like below
$fietskoeriers_default_language = 'nl'; // ( en | nl )
$fietskoeriers_language_texts = array(
"Fietskoeriers Same Day" => array(
"nl" => "",
),
"Verzend je pakket nog dezelfde dag per fiets!" => array(
"nl" => "",
),
"Activeren" => array(
"nl" => "",
),
"Activeer Fietskoeriers Same Day" => array(
"nl" => "",
),
"Titel verzendkosten" => array(
"nl" => "",
),
"Titel weergegeven in checkout." => array(
"nl" => "",
),
"Fietskoeriers.nl Same Day Delivery" => array(
"nl" => "",
),
"Verzendkosten" => array(
"nl" => "",
),
"Dabba API Email" => array(
"nl" => "",
),
"Email to use for Dabba API Authentication." => array(
"nl" => "E-mailadres om te gebruiken voor de Dabba authenticatie.",
),
"Dabba API Password" => array(
"nl" => "",
),
"Password to use for Dabba API Authentication." => array(
"nl" => "Password om te gebruiken voor de Dabba authenticatie.",
),
"Merchant Naam" => array(
"nl" => "",
),
"Uw webshopnaam" => array(
"nl" => "",
),
"Merchant straat" => array(
"nl" => "",
),
"Merchant huisnummer" => array(
"nl" => "",
),
"Huisnummer van uw webshop" => array(
"nl" => "",
),
"Merchant postcode" => array(
"nl" => "",
),
"Merchant stad" => array(
"nl" => "",
),
"Merchant Landencode" => array(
"nl" => "",
),
"Gebruik een geldige landnaam (Bijv. Nederland of Belgiƫ)" => array(
"nl" => "",
),
"Merchant Telefoonnummer" => array(
"nl" => "",
),
"Merchant E-mail" => array(
"nl" => "",
),
"Geef verzendkosten op!" => array(
"nl" => "",
),
"Geef een naam voor uw webshop op!" => array(
"nl" => "",
),
"Geef een straatnaam voor uw webshop op!" => array(
"nl" => "",
),
"Geef een huisnummer voor uw webshop op!" => array(
"nl" => "",
),
"Geef een postcode voor uw webshop op!" => array(
"nl" => "",
),
"Geef een plaatsnaam voor uw webshop op!" => array(
"nl" => "",
),
"Geef een tweeletterige landencode voor uw webshop op!" => array(
"nl" => "",
),
"Geef een telefoonnummer voor uw webshop op!" => array(
"nl" => "",
),
"Geef een e-mailadres voor uw webshop op!" => array(
"nl" => "",
),
"Empty Dabba API email!" => array(
"nl" => "Dabba API e-mailadres is niet ingevuld!",
),
"Empty Dabba API password!" => array(
"nl" => "Dabba API password is niet ingevuld!",
),
"Pakket" => array(
"nl" => "",
),
"Pakket XL" => array(
"nl" => "",
),
"Brievenbuspakket" => array(
"nl" => "",
),
"Dabba Box Type" => array(
"nl" => "",
),
"Dabba Product Quantity" => array(
"nl" => "",
),
"Dabba API Labels" => array(
"nl" => "",
),
"Dabba Order ID" => array(
"nl" => "",
),
"Download Label" => array(
"nl" => "",
),
"Download" => array(
"nl" => "",
),
"Dabba Order ID: %s" => array(
"nl" => "",
),
"Dabba Status" => array(
"nl" => "",
),
"Dabba API not called" => array(
"nl" => "Dabba API niet aangeroepen",
),
"Dabba API failed" => array(
"nl" => "Dabba API foutmelding",
),
"Not all orders are sent correctly to Dabba" => array(
"nl" => "Niet alle bestelingen zijn correct doorgestuurd naar Dabba",
),
"All orders are sent correctly to Dabba" => array(
"nl" => "Alle bestellingen zijn correct doorgestuurd naar Dabba",
),
"Dabba API Box selection" => array(
"nl" => "Fietskoeriers Pakketkeuze",
),
"Box" => array(
"nl" => "Soort pakket",
),
"Quantity" => array(
"nl" => "Aantal colli",
),
"Remove" => array(
"nl" => "Verwijderen",
),
"Add Box" => array(
"nl" => "Pakketsoort toevoegen",
),
"Call Dabba API" => array(
"nl" => "Versturen naar Dabba",
),
"You can only add a maximum of 3 boxes of different types. You can't add any more boxes." => array(
"nl" => "Maximaal 3 verschillende pakketsoorten toegestaan.",
),
"Unable to add more box" => array(
"nl" => "Niet mogelijk om nog een pakketsoort toe te voegen",
),
"You need atleast 1 box to make the API call." => array(
"nl" => "Voeg tenminste 1 pakketsoort toe om te versturen.",
),
"Unable to remove box" => array(
"nl" => "Niet mogelijk om pakket te verwijderen",
),
"User not authorized. Please check the <b>Fietskoeriers Settings</b> for correct API credentials." => array(
"nl" => "Inloggegevens niet correct. Controleer de <b>Fietskoeriers Settings</b> voor correcte inloggegevens.",
),
"Dabba API error" => array(
"nl" => "Dabba API foutmelding",
),
"Dabba API errors" => array(
"nl" => "Dabba API foutmeldingen",
),
"Only part of your order reached Fietskoeriers. Please login on the webadmin and adjust your order manually." => array(
"nl" => "Slechts een deel van je bestelling is doorgestuurd naar Dabba. Log in op de Dabba web admin en pas je gegevens aan.",
),
"All API related errors are fixed. However, you need to call the <b>Dabba API</b>" => array(
"nl" => "Alle API-fouten zijn opgelost. Verstuur nu de pakketten naar Fietskoeriers.",
),
"Dabba API Trace and Track URLs" => array(
"nl" => "Fietskoeriers.nl Track & Trace URLs",
),
"Trace and Track URL" => array(
"nl" => "",
),
"Track Order" => array(
"nl" => "Bestelling volgen",
),
"Name is empty." => array(
"nl" => "Naam is niet ingevuld.",
),
"nr is empty." => array(
"nl" => "Huisnummer is niet ingevuld.",
),
"street is empty." => array(
"nl" => "Straat is niet ingevuld.",
),
"postalCode is empty." => array(
"nl" => "Postcode is niet ingevuld.",
),
"city is empty." => array(
"nl" => "Stad is niet ingevuld.",
),
"country is empty." => array(
"nl" => "land is niet ingevuld.",
),
"phone is empty." => array(
"nl" => "Telefoonnummer is niet ingevuld.",
),
"email is empty." => array(
"nl" => "E-mailadres is niet ingevuld.",
),
"Dabba API: Unable to get Dabba instance, Please make sure you have saved the dabba api credentials in settings." => array(
"nl" => "",
),
"Dabba API: Initiated" => array(
"nl" => "Verstuurd naar Dabba API",
),
"Dabba API: Success - OrderID: %s" => array(
"nl" => "",
),
"Dabba API: <a target=\"_blank\" href=\"%s\">Error Log File</a>" => array(
"nl" => "",
),
"Fietskoeriers (met zones)" => array(
"nl" => "",
),
"Voeg Fietskoeriers.nl als verzendoptie toe aan uw WooCommerce webshop." => array(
"nl" => "",
),
"Fietskoeriers.nl" => array(
"nl" => "",
),
"Something went wrong, Please try again." => array(
"nl" => "Er is iets foutgegaan. Probeer het nogmaals.",
),
"Same Day" => array(
"nl" => "",
),
"Next Day" => array(
"nl" => "",
),
"Delivery Type" => array(
"nl" => "Verzendwijze",
),
"Street and/or Number are too long for Dabba API. Please fix and resend." => array(
"nl" => "Straatnaam en/of huisnummer zijn te lang voor Dabba API. Probeer nogmaals.",
),
"Name" => array(
"nl" => "Naam webshop",
),
"Street" => array(
"nl" => "Straatnaam",
),
"House Number" => array(
"nl" => "Huisnummer",
),
"Postal Code" => array(
"nl" => "Postcode",
),
"City" => array(
"nl" => "Stad",
),
"Country" => array(
"nl" => "Land",
),
"Phone" => array(
"nl" => "Telefoonnummer",
),
"Email" => array(
"nl" => "E-mailadres",
),
"Dabba Customer Address" => array(
"nl" => "Dabba Webshop Adres",
),
"This is the address of the store and it will be sent with every Dabba API call as 'customerAddress'." => array(
"nl" => "Dit is het afzenderadres van de webwinkel dat zal worden meegestuurd met iedere bestelling naar de Dabba API.",
),
"Deze afzender meesturen naar Dabba" => array(
"nl" => "",
),
"Use Live Mode" => array(
"nl" => "Stuur naar de Live server",
),
"Whether to use the Dabba API live urls or the test urls." => array(
"nl" => "Aanvinken om naar de live server te sturen. Indien niet aangevinkt wordt de testserver gebruikt.",
),
"Dabba Default Settings Setup" => array(
"nl" => "Dabba Standaard Pakket instellingen",
),
"These settings will be used as default for sending the Dabba API calls. It will also enable the user to send multiple orders to the Dabba API" => array(
"nl" => "Deze instellingen worden gebruikt als standaard pakketinstellingen. Indien actief is het ook mogelijk vanuit het bestellingenoverzicht meerdere bestellingen tegelijk naar Dabba te sturen.",
),
"Enable Dabba settings setup" => array(
"nl" => "Activeer Dabba standaard pakketinstellingen",
),
"Enable the Dabba API settings setup." => array(
"nl" => "Aanvinken om te activeren.",
),
"Product type" => array(
"nl" => "Soort pakket",
),
"Number of packages" => array(
"nl" => "Aantal colli",
),
"Shipping method" => array(
"nl" => "Verzendwijze",
),
"Stuur naar Dabba" => array(
"nl" => "",
),
"Please select atleast one order to send to Dabba." => array(
"nl" => "Selecteer minstens 1 bestelling om naar Dabba te sturen.",
),
"There is no Order which can be send to Dabba." => array(
"nl" => "Er is geen order geselecteerd om naar Dabba te sturen.",
),
"<b>%s</b> requires <b>Woocommerce %s</b> or later installed." => array(
"nl" => "",
),
"The plugin is non-functional." => array(
"nl" => "",
),
);
add_filter( 'gettext', 'fietskoeriers_gettext', 100, 3 );
function fietskoeriers_gettext( $translation, $text, $domain ) {
// skip for other text domains
if( $domain !== 'wcfks' ) return $translation;
// get translations and default language
global $fietskoeriers_default_language, $fietskoeriers_language_texts;
if( empty( $fietskoeriers_default_language ) ) return $text;
// skip if current text is not translated
{
if( !array_key_exists( $text, $fietskoeriers_language_texts ) ) return $text;
$language_texts = $fietskoeriers_language_texts[ $text ];
if( !is_array( $language_texts ) ) return $text;
if( !array_key_exists( $fietskoeriers_default_language, $language_texts ) ) return $text;
}
// skip if no translation is set to empty string
if( empty( $language_texts[ $fietskoeriers_default_language ] ) ) return $text;
// return the translated text
return $language_texts[ $fietskoeriers_default_language ];
}