From a2452dd623cb3fad8f0fa5f5583dccd2003104c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alda=20Vigd=C3=ADs=20Skarph=C3=A9=C3=B0insd=C3=B3ttir?= Date: Mon, 5 Aug 2024 17:44:58 +0200 Subject: [PATCH] Bugfix: Product-to-variant conversion not working - Fixed a regression whereas the product-to-variant conversion did not appear or work - Adding locale string and i18n support --- js/admin.js | 13 +- js/products.js | 18 +- ...s_IS-5084815748766cbac9c011a6556f8683.json | 18 ++ languages/1984-dk-woo-is_IS.l10n.php | 3 +- languages/1984-dk-woo-is_IS.mo | Bin 21396 -> 21441 bytes languages/1984-dk-woo-is_IS.po | 239 +++++++++--------- languages/1984-dk-woo.pot | 214 ++++++++-------- src/Hooks/Admin.php | 39 ++- style/products.css | 2 +- 9 files changed, 275 insertions(+), 271 deletions(-) create mode 100644 languages/1984-dk-woo-is_IS-5084815748766cbac9c011a6556f8683.json diff --git a/js/admin.js b/js/admin.js index b73ab8c..1cf29cb 100644 --- a/js/admin.js +++ b/js/admin.js @@ -90,6 +90,7 @@ class NineteenEightyWoo { make_credit_invoice: Boolean( formData.get( 'make_credit_invoice' ) ), domestic_customer_ledger_code: formData.get( 'domestic_customer_ledger_code' ), international_customer_ledger_code: formData.get( 'international_customer_ledger_code' ), + product_convertion_to_variation_enabled: Boolean( formData.get( 'product_conversion' ) ), fetch_products: true } @@ -128,22 +129,14 @@ window.addEventListener( 'DOMContentLoaded', () => { if (document.body) { - if ( - document.body.classList.contains( - 'woocommerce_page_1984-dk-woo' - ) - ) { + if ( NineteenEightyWoo.settingsForm() ) { NineteenEightyWoo.settingsForm().addEventListener( 'submit', NineteenEightyWoo.onSettingsFormSubmit ); } - if ( - document.body.classList.contains( - 'post-type-product' - ) - ) { + if ( NineteenEightyWoo.settingsForm() ) { NineteenEightyWoo.settingsForm().addEventListener( 'submit', NineteenEightyWoo.onSettingsFormSubmit diff --git a/js/products.js b/js/products.js index 07cc8da..4107476 100644 --- a/js/products.js +++ b/js/products.js @@ -1,3 +1,5 @@ +const { __, _x, _n, _nx } = wp.i18n; + class NineteenEightyWooProducts { static actionSelect() { return document.getElementById( 'bulk-action-selector-top' ); @@ -12,7 +14,7 @@ class NineteenEightyWooProducts { productIdInput.setAttribute( 'type', 'text' ); productIdInput.setAttribute( 'name', 'action_post_id' ); productIdInput.setAttribute( 'id', 'action_post_id_input' ); - productIdInput.setAttribute( 'placeholder', 'Parent ID' ); + productIdInput.setAttribute( 'placeholder', __( 'Parent ID', '1984-dk-woo' ) ); actionsContainer.insertBefore( productIdInput, actionButton ); actionsContainer.insertBefore( spacerTextNode, actionButton ); @@ -38,11 +40,13 @@ class NineteenEightyWooProducts { window.addEventListener( 'DOMContentLoaded', () => { - NineteenEightyWooProducts.actionSelect().addEventListener( - 'change', - ( e ) => { - NineteenEightyWooProducts.selectMenuEvent( e ); - } - ); + if ( NineteenEightyWooProducts.actionSelect() ) { + NineteenEightyWooProducts.actionSelect().addEventListener( + 'change', + ( e ) => { + NineteenEightyWooProducts.selectMenuEvent( e ); + } + ); + } } ); diff --git a/languages/1984-dk-woo-is_IS-5084815748766cbac9c011a6556f8683.json b/languages/1984-dk-woo-is_IS-5084815748766cbac9c011a6556f8683.json new file mode 100644 index 0000000..cdf40c5 --- /dev/null +++ b/languages/1984-dk-woo-is_IS-5084815748766cbac9c011a6556f8683.json @@ -0,0 +1,18 @@ +{ + "translation-revision-date": "2024-08-05 15:41+0000", + "generator": "Loco https://localise.biz/", + "source": "js/products.js", + "domain": "1984-dk-woo", + "locale_data": { + "1984-dk-woo": { + "": { + "domain": "", + "lang": "is_IS", + "plural-forms": "nplurals=2; plural=n != 1;" + }, + "Parent ID": [ + "ID-n\u00famer m\u00f3\u00f0ur" + ] + } + } +} \ No newline at end of file diff --git a/languages/1984-dk-woo-is_IS.l10n.php b/languages/1984-dk-woo-is_IS.l10n.php index e7edbe8..1651845 100644 --- a/languages/1984-dk-woo-is_IS.l10n.php +++ b/languages/1984-dk-woo-is_IS.l10n.php @@ -1,2 +1,3 @@ '1984 Connector for DK and WooCommerce','report-msgid-bugs-to'=>'','pot-creation-date'=>'2024-04-18 23:42+0000','po-revision-date'=>'2024-07-18 20:39+0000','last-translator'=>'','language-team'=>'Íslenska','language'=>'is_IS','plural-forms'=>'nplurals=2; plural=n != 1;','mime-version'=>'1.0','content-type'=>'text/plain; charset=UTF-8','content-transfer-encoding'=>'8bit','x-generator'=>'Loco https://localise.biz/','x-loco-version'=>'2.6.10; wp-6.5.5','x-domain'=>'1984-dk-woo','messages'=>['%1$sError:%2$s Please check if all the information was entered correctly and try again.'=>'%1$sVilla:%2$s Athugaðu hvort allar upplýsingarnar hafi verið slegnar rétt inn.','15 Day Payment Deadline (D15)'=>'15 daga greiðslufrestur (D15)','1984 Connector for DK and WooCommerce'=>'Tengill frá 1984 fyrir DK og WooCommerce','1984 Hosting'=>'1984 Ehf.','20 Day Payment Deadline (D20)'=>'20 daga greiðslufrestur (D20)','30 Day Payment Deadline (D30)'=>'30 daga greiðslufrestur (D30)','A credit invoice could not be created in DK due to an unhandled error.'=>'Ekki var hægt að búa til kreditreikning í DK út af ómeðhöndlaðri villu.','A credit invoice for the refund has been created in DK. The invoice number is %1$s.'=>'Kreditreikningur fyrir þessa pöntun var búinn til í DK. Númer reikningsins er %1$s.','A custmer record with the kennitala ‘%s’ was not found in DK.'=>'Skuldunautur með kennitöluna ‚%s‘ fannst ekki í DK.','A customer record with the kennitala ‘%s’ was found in DK.'=>'Skuldunautur með kennitöluna ‚%s‘ fannst í DK.','A or B Giro Request (ABG)'=>'A- eða B-gíróseðill (ABG)','A sales person with the number ‘%s’ was found in DK.'=>'Sölumaður með númerið ‚%s‘ fannst í DK.','A sales person with the number ‘%s’ was not found in DK.'=>'Sölumaður með númerið ‚%s‘ fannst ekki í DK.','An email containing the credit invoice as a PDF attachment was sent to the customer.'=>'Tölvupóstur sem innihélt kreditreikninginn sem viðhengi á PDF-formi var sendur til viðskiptavinarins.','An email containing the invoice as a PDF attachment was sent to the customer.'=>'Tölvupóstur sem innihélt reikninginn sem viðhengi á PDF-formi var sendur til viðskiptavinarins.','An invoice could not be created in DK due to an unhandled error.'=>'Ekki var hægt að búa til reikning í DK út af ómeðhöndlaðri villu.','An invoice could not be created in DK for this order as a line item in this order does not have a SKU.'=>'Ekki var hægt að gera reikning í DK fyrir þessa pöntun því það vantar SKU fyrir vöru eða þjónustu.','An invoice for this order has been created in DK. The invoice number is %1$s.'=>'Reikningur fyrir þessa pöntun var búinn til í DK. Númer reikningsins er %1$s.','An invoice was not created as the customer did not enter a kennitala. The invoice needs to be created manually in DK.'=>'Reikningur var ekki búinn til því viðskiptavinurinn sló ekki inn kennitölu. Það þarf að gera reikninginn handvirkt í DK.','An invoice was not created as the customer entered a kennitala. The invoice needs to be created manually in DK.'=>'Reikningur var ekki búinn til því viðskiptavinurinn sló inn kennitölu. Það þarf að gera reikninginn handvirkt í DK.','API Key'=>'API-lykill','As the product price is converted from ‘%1$s’ or is set manually to ‘%2$s’ using the ‘Foreign Prices’ feature in DK, changes to the product price in WooCommerce will not be reflected in DK due to current limitations and will be overwritten on sync. You can change the price and currency in DK.'=>'Þar sem verð vörunnar var breytt úr ‚%1$s‘ eða var fært inn handvirkt sem ‚%2$s‘ undir ‚erlend verð‘ í DK, þá verða breytingar á vöruverði í WooCommerce ekki endurspeglaðar í DK vegna tæknilegra takmarkanna og það verður skrifað yfir það við næstu samstillingu. Þú getur breytt verði og gjaldmiðli vörunnar í DK.','Authentication'=>'Auðkenning','Bank Collection Service (IB)'=>'Innheimtuþjónusta banka (IB)','Bank Transfer (BM)'=>'Bankamillifærsla (BM)','C Giro Request (CG)'=>'C-gíróseðill (CG)','Card Payment (GKR)'=>'Kortagreiðsla (GKR)','Cash Payment (STGR)'=>'Staðgreiðsla (STGR)','Cheque Payment (TGR)'=>'Tékkagreiðsla (TGR)','Connector for DK'=>'Tengill fyrir DK','Convert to Product Variant'=>'Breyta vöru í afbrigði','Cost SKU'=>'SKU fyrir kostnað og gjöld','Create a credit invoice when an order is labelled as refunded'=>'Gera kreditreikning þegar pöntun er merkt sem endurgreidd','Create Invoices Automatically for Orders With a Kennitala'=>'Gera reikninga sjálfkrafa fyrir pantanir með kennitölu','Create Invoices Automatically for Orders Without a Kennitala'=>'Gera reikninga sjálfkrafa fyrir pantanir án kennitölu','Current Month (LM)'=>'Líðandi mánuður (LM)','Current Month + 15 Days (M15)'=>'Líðandi mánuður + 15 dagar (M15)','Current Month + 20 Days (M20)'=>'Líðandi mánuður + 20 dagar (M20)','Customers'=>'Viðskiptavinir','Customers Need to Request to have a Kennitala on Invoices'=>'Viðskiptavinir þurfa að biðja um að fá kennitölu á reikning','Default Customer Kennitala'=>'Sjálfgefin kennitala fyrir viðskiptavini','Default Sales Person Number'=>'Númer sjálfgefins sölumanns','Delete Inactive Products from WooCommerce'=>'Eyða óvirkum vörum úr WooCommerce','Display the Attribute Label Description from DK'=>'Birta lýsingu skráningar eiginleika vöruafbrigða úr DK','Display the Attribute Value Description from DK'=>'Birta lýsingu eiginleika vöruafbrigða úr DK','DK Invoice'=>'Reikningur í DK','DK treats shipping and other costs as line items on invoices. In order for them to work, you need to assign a SKU to each of the following services.'=>'DK meðhöndlar sendingarkostnað og önnur gjöld sem línu á reikningum. Til að það virki þarf að skrá SKU fyrir eftirfarandi þjónustur:','Enable Kennitala Field in the Checkout Form'=>'Kveikja á reit fyrir kennitölu í afgreiðsluforminu','Enable Product-to-Variation Conversion'=>'Virkja breytingu á vörum í vöruafbrigði','Error'=>'Villa','Fee'=>'Gjald','For creating an API key, we recommend creating a separate user with full priveleges, not connected to an actual employee in dkPlus and then generating an API key for that user under ‘Tokens’ in that user’s Settings page.'=>'Við mælum með því að búa til aðskilinn notanda sem er með öll réttindi og er ekki tengdur ákveðnum starfsmanni í dkPlus til að búa til API-lykil út frá honum undir ‚auðkenningar tákn‘ á stillingasíðu þess notanda.','Giro Transfer (GM)'=>'Gírómillifærsla','Hello!'=>'Halló!','https://1984.hosting'=>'https://1984.hosting','https://github.com/1984hosting/1984-dk-woo'=>'https://github.com/1984hosting/1984-dk-woo','If enabled, a credit invoice is automatically created when an order is labelled as refunded in WooCommerce.'=>'Ef það er kveikt á þessu, þá er kreditreikningur búinn til sjálfkrafa þegar pöntun er merkt sem endurgreidd í WooCommerce.','If enabled, an email containing the invoice will be sent to the customer automatically after checkout. This uses the DK email functionality, so make sure that email delivery is configured correctly in DK.'=>'Ef það er kveikt á þessu sendist tölvupóstur til viðskiptavinarins sjálfkrafa eftir afgreiðslu. Þetta notar tölvupóststillingarnar úr DK, þannig að það er nauðsynlegt að stillingar á tölvupóstum þar inni séu réttar.','If enabled, any product can be converted into a variant of anohter as a bulk action. This is a very sharp tool, so only use this one if you know what you are doing.'=>'Ef það er kveikt á þessu er hægt að breyta hvaða vöru sem er í afbrigði af annari með fjöldabreytingu. Þetta er mjög skarpt verkfæri, þannig að þú skalt bara nota þetta ef þú veist hvað þú ert að gera.','If enabled, product names are synced between DK and WooCommerce. Disable this if you would like to be able to use separate product names in your WooCommerce shop from the ones in DK or simply prevent WooCommerce from affecting product descriptions in DK.'=>'Ef það er kveikt á þessu eru vöruheiti samstillt milli DK og WooCommerce. Slökktu á þessu ef þú vilt nota annað vöruheiti í WooCommerce-búðinni þinni frá þeim sem eru notuð í DK eða ef þú vilt einfaldlega ekki að WooCommerce hafi áhrif á vörulýsingar í DK.','If enabled, product prices and sales periods are synced by default between DK and WooCommerce. This can be overriden on a per-product basis. Prices based on foreign currency conversion are only synced ‘downstream’ from DK and into WooCommerce.'=>'Ef það er kveikt á þessu verður verð og útsölutímabil vera samstillt milli DK og WooCommerce. Það er hægt að breyta þessu fyrir hverja vöru. Verð sem skráð eru í erlendum gjaldeyri í DK eru eingöngu samstilltar ‚niður‘ úr DK og inn í WooCommerce.','If enabled, product stock status and quantity is synced between DK and WooCommerce by default. This can be overridden on a per-product basis. Note that stock status and quantity sync only works ‘downstream’ from DK and into WooCommerce, but not ‘upstream’ due to limitations in DK.'=>'Ef það er kveikt á þessu verður það sjálfgefið að samstilla lagerstöðu og fjölda á lager milli DK og WooCommerce. Hægt er að breyta þessu fyrir hverja vöru. Athugið að lagerstaða og fjöldi er einöngu sóttur frá DK en ekki í hina áttina út af tæknilegum takmörkunum í DK.','If enabled, products that are not labelled for online sales are imported into WooCommerce as drafts. Changing their status to ‘Published’ labels them for online sale in DK. This is not recommended if you have a lot of products in DK.'=>'Ef það er kveikt á þessu eru vörur sem ekki eru merktar sem ‚sýna í vefverslun‘ færðar inn í WooCommerce sem drög. Ef þú birtir þær í WooCommerce eru þær svo merktar fyrir vefverslun í DK. Það er ekki mælt með þessu ef þú ert með mjög mikið af vörum í DK.','If enabled, products that have been made inactive in DK are automatically deleted from WooCommerce.'=>'Ef það er kveikt á þessu er vörum sem voru merktar sem óvirkar í DK eytt úr WooCommerce.','If enabled, the code for attribute labels will be replaced with the attribute description from DK. Disable this if you only need the attribute label code.'=>'Ef það er kveikt á þessu, þá eru merkingum fyrir eiginleika skipt út fyrir lýsingar úr DK. Slökktu á þessu ef þú villt bara hafa auðkennið.','If enabled, the code for attribute values will be replaced with the attribute description from DK. Disable this if you only need the attribute value code.'=>'Ef það er kveikt á þessu, þá er nöfnum eiginleika skipt út fyrir lýsingar eiginleika í DK. Slökktu á þessu ef þú vilt bara hafa auðkennið.','If this is enabled, a checkbox is added to the checkout form, that the customer needs to tick in order to have a kennitala assigned to their invoice, or the invoice will be treated like one with out a kennitala.'=>'Ef það er kveikt á þessu bætist inn hak í afgreiðsluformið sem viðskiptavinur þarf að haka í til að fá kennitölu skráða á reikning, annars verður farið með reikninginn eins og það vanti kennitölu.','If this is enabled, orders without a kennitala will be assigned the ‘Default Customer Kennitala’.'=>'Ef það er kveikt á þessu er sjálfgefna kennitalan skráð á pantanir sem væru annars án kennitölu.','Import New Non-Web Products from DK as Drafts'=>'Flytja inn vörur sem ekki eru merktar fyrir ververslun í DK sem drög','In order for price sync to work, the %1$sSKU%2$s needs to be set and must equal the Item Code in DK. It is set in the %3$sInventory Panel%4$s.'=>'%1$sSKU%2$s þarf að vera sett inn og þarf að jafngilda vörunúmeri í DK. Það er stillt undir %3$sInventory%4$s hér til vinstri.','Invalid kennitala. A kennitala is a string of 10 numeric characters.'=>'Ógild kennitala. Kennitölur eru runur af 10 tölustöfum.','Invoices'=>'Reikningar','It was not possible to send an email to the customer containing the invoice as a PDF attachment.'=>'Ekki var hægt að senda tölvupóst til viðskiptavinarins sem innihélt reikninginn sem viðhengi á PDF-formi','Kennitala'=>'Kennitala','Kennitala (Optional)'=>'Kennitala (Valfrjálst)','Ledger Code for Domestic Customers'=>'Bókunarflokkur fyrir innlenda skuldunauta','Ledger Code for International Customers'=>'Bókunarflokkur fyrir erlenda skuldunauta','Ledger Codes'=>'Bókunarflokkar','Method ID in DK'=>'Auðkenni greiðslumáta í DK','Ninteen-Eighty-Four'=>'Nítjánhundruð-áttatíu-og-fjögur','No'=>'Nei','Payment Gateways'=>'Greiðslugáttir','Payment Mode in DK'=>'Greiðslumáti í DK','Payment Terms in DK'=>'Greiðsluskilmálar í DK','Please make sure that a customer record with the kennitala ‘%s’ exsists in DK before you continue.'=>'Ganga þarf úr skugga um að það sé skráður skulunautur með kennitölunni ‚%s‘ í DK áður en haldið er áfram.','Please make sure that a product with the Product Code ‘%s’ exsists in DK before saving.'=>'Ganga þarf úr skugga um að vara með vörunúmerinu ‚%s‘ sé skráð í DK áður en haldið er áfram.','Please make sure that a sales person with the number ‘%s’ exsists in DK before saving.'=>'Ganga þarf úr skugga um að sölumaður með númerinu ‚%s‘ sé skráður í DK áður en haldið er áfram.','Please select the payment method name for each payment gateway as it appears in DK as well as the payment mode:'=>'Veldu nafn greiðslumáta fyrir hverja greiðslugátt eins og hann kemur fram í DK:','Postal COD (POST)'=>'Póstkrafa (POST)','Product Sync Defaults'=>'Sjálfgefnar stillingar fyrir samstillingu á vörum','Products'=>'Vörur','Products With Reduced Tax Rate'=>'Vörur í lægra skattþrepi','Products with Standard tax rate'=>'Vörur í almennu skattþrepi','Purchase'=>'Innkaup','Purchase Booking Category'=>'Bókunarflokkur innkaupa','Request an Invoice with Kennitala'=>'Biðja um reikning með kennitölu','Request an Invoice with Kennitala (optional)'=>'Biðja um reikning með kennitölu (valfrjálst)','Sale'=>'Sala','Sale Booking Category'=>'Bókunarflokkur sölu','Save'=>'Vista','Send Invoices Automatically via Email'=>'Senda reikning sjálfkrafa í tölvupósti','Service SKUs'=>'Vörunúmer fyrir þjónustur','Shipping'=>'Sendingar','Shipping SKU'=>'SKU fyrir sendingar','stock keeping unit'=>'stock keeping unit','Sync Inventory with DK'=>'Samstilla birgðastöðu við DK','Sync Name with DK'=>'Samstilla nöfn við DK','Sync Price with DK'=>'Samstilla verð við DK','Sync Product Names with DK'=>'Samstilla vöruheiti við DK','Sync Product Prices'=>'Samstilla vöruverð','Sync Stock Status and Quantity from DK'=>'Samstilla birgðastöðu og fjölda frá DK','Sync your WooCommerce store with DK, including prices, inventory status and generate invoices for customers on checkout.'=>'Samstilltu verð og birgðastöðu og búðu til reikninga fyrir viðskiptavini við greiðslu í WooCommerce gegn um DK-bókhaldskerfið.','The %1$sSKU%2$s needs to be set to a unique value and must equal the intended %3$sItem Code%4$s in DK for any 1984 DK Sync functionality to work.%5$sAs it only works downstream, if this feature is enabled, setting product stock quantity and status in WooCommerce will not result in it being reflected in DK and it will be overwritten next time information is fetched from DK.'=>'%1$sSKU%2$s þarf að vera einstakt og þarf að jafngilda %3$svörunúmeri%4$s í DK til að samstilling geti virkað.%5$sEf kveikt er á þessu munu breytingar á brigðarstöðu og fjölda eingöngu virka niður á við úr DK og endurspeglast því ekki þar og það verður skrifað yfir þær við næstu samstillingu úr DK.','The 1984 Connector for DK and WooCommerce is developed, maintained and supported on goodwill basis by 1984 Hosting as free software without any guarantees or obligations and is not affiliated with or supported by DK hugbúnaður ehf.'=>'WordPress-viðbótin ‚Tengill frá 1984 fyrir DK og WooCommerce‘ er búin til og haldið við af 1984 ehf. Viðbótin er frjáls hugbúnaður og er öllum heimil notkun en engin loforð eru gefin um virkni eða villuleysi. DK Hugbúnaður ehf ber enga ábyrgð á viðbótinni.','The API key is provided by DK for use with the DK API. Do not share this key with anyone.'=>'API-lykillinn er afhentur af DK og er ætlaður til notkunar með API-viðmóti DK. Ekki deila þessum lykli með öðrum.','The currency code ‘%s’ is invalid.'=>'Gjaldmiðillinn ‚%s‘ er ógildur.','The currency rate for ‘%s’ has not been set.'=>'Gengið fyrir gjaldmiðlilinn ‚%s‘ hefur ekki verið skráð.','The default kennitala is used for guest customers that don\'t have or supply a kennitala during checkout. This should correspond with a DK customer record called “Various Customers” etc.'=>'Sjálfgefin kennitala er notuð til að bera kennsl á viðskiptavini (skuldunauta í DK) sem eru ekki innskráðir og taka ekki fram kennitölu við afgreiðslu. Þetta ætti að stemma við skuldunaut í DK sem heitir t.d. ‚Ýmsir skuldunautar‘','The DK API key is missing.'=>'API-lykillinn fyrir DK vantar.','The Item Code ‘%s’ was found in DK.'=>'Vörunúmerið ‚%s‘ fannst í DK.','The Item Code ‘%s’ was not found in DK.'=>'Vörunúmerið ‚%s‘ fannst ekki í DK.','The payment gateways themselves are handled by your WooCommerce Settings, under %1$sthe Payments Section%2$s.'=>'Sjálfar greiðslugáttirnar eru stilltar í WooCommerce undir %1$sgreiðslum%2$s.','This is a required field'=>'Það þarf að fylla þennan reit út','This is where you set the default options for syncing your WooCommerce products. For example, if you do not want to overwrite the prices or names of your current WooCommerce products by default, or only fetch products labelled as ‘for online store’ you can do it here.'=>'Hér stillir þú inn sjálfgefin eigindi til að samstilla WooCommerce-vörurnar þínar. Ef þú vilt ekki að það sé sjálfgefið að skrifa yfir verð eða vöruheiti, eða ef þú vilt aðeins sækja vörur sem merktar eru fyrir vefverslun, þá geturðu til dæmis breytt því hér.','Unable to create an invoice in DK: '=>'Gat ekki búið til reikning í DK: ','Use Default (Currently ‘%1$s’)'=>'Nota sjálfgefið gildi (Er núna ‚%1$s‘)','Valid'=>'Gilt','Variations and Attributes'=>'Afbrigði og eiginleikar','When a customer requests to have a kennitala assigned to an invoice, a customer record is created in DK if it does not already exist, using the billing information supplied for the order.'=>'Þegar viðskiptavinur biður um að fá kennitölu á reikning eru reikningsupplýsingarnar notaðar til að stofna nýjan skuldunaut í DK ef hann var ekki til áður.','When a product is created and published in WooCommerce, a corrsponding product record is created in DK. Setting the values below correctly makes sure that this happens without discrepancies or errors.'=>'Þegar vara er búin til og gefin út í WooCommerce er samsvarandi vara skráð í DK. Ef neðangreind gildi eru sett rétt inn tryggir það að það gerist án ósamræmis eða villna.','While the variation and attribute codes from DK are used internally, their values can be displayed as the descriptions that are set for each of them in DK. Here you can also enable the product conversion feature.'=>'Þó svo að kóðar fyrir afbrigði og eiginleika úr DK séu notuð í innri virkni, þá er hægt að birta lýsingu hvers og eins úr DK. Hér er einnig hægt að kveikja á breytingum á vörum í afbrigði.','Yes'=>'Já','Your Invoice From %1$s'=>'Reikningurinn þinn frá %1$s']]; +return ['project-id-version'=>'1984 Connector for DK and WooCommerce','report-msgid-bugs-to'=>'','last-translator'=>'','language-team'=>'Íslenska','mime-version'=>'1.0','content-type'=>'text/plain; charset=UTF-8','content-transfer-encoding'=>'8bit','pot-creation-date'=>'2024-04-18 23:42+0000','po-revision-date'=>'2024-08-05 15:41+0000','language'=>'is_IS','plural-forms'=>'nplurals=2; plural=n != 1;','x-generator'=>'Loco https://localise.biz/','x-loco-version'=>'2.6.11; wp-6.5.5','x-domain'=>'1984-dk-woo +','messages'=>['%1$sError:%2$s Please check if all the information was entered correctly and try again.'=>'%1$sVilla:%2$s Athugaðu hvort allar upplýsingarnar hafi verið slegnar rétt inn.','15 Day Payment Deadline (D15)'=>'15 daga greiðslufrestur (D15)','1984 Connector for DK and WooCommerce'=>'Tengill frá 1984 fyrir DK og WooCommerce','1984 Hosting'=>'1984 Ehf.','20 Day Payment Deadline (D20)'=>'20 daga greiðslufrestur (D20)','30 Day Payment Deadline (D30)'=>'30 daga greiðslufrestur (D30)','A credit invoice could not be created in DK due to an unhandled error.'=>'Ekki var hægt að búa til kreditreikning í DK út af ómeðhöndlaðri villu.','A credit invoice for the refund has been created in DK. The invoice number is %1$s.'=>'Kreditreikningur fyrir þessa pöntun var búinn til í DK. Númer reikningsins er %1$s.','A custmer record with the kennitala ‘%s’ was not found in DK.'=>'Skuldunautur með kennitöluna ‚%s‘ fannst ekki í DK.','A customer record with the kennitala ‘%s’ was found in DK.'=>'Skuldunautur með kennitöluna ‚%s‘ fannst í DK.','A or B Giro Request (ABG)'=>'A- eða B-gíróseðill (ABG)','A sales person with the number ‘%s’ was found in DK.'=>'Sölumaður með númerið ‚%s‘ fannst í DK.','A sales person with the number ‘%s’ was not found in DK.'=>'Sölumaður með númerið ‚%s‘ fannst ekki í DK.','An email containing the credit invoice as a PDF attachment was sent to the customer.'=>'Tölvupóstur sem innihélt kreditreikninginn sem viðhengi á PDF-formi var sendur til viðskiptavinarins.','An email containing the invoice as a PDF attachment was sent to the customer.'=>'Tölvupóstur sem innihélt reikninginn sem viðhengi á PDF-formi var sendur til viðskiptavinarins.','An invoice could not be created in DK due to an unhandled error.'=>'Ekki var hægt að búa til reikning í DK út af ómeðhöndlaðri villu.','An invoice could not be created in DK for this order as a line item in this order does not have a SKU.'=>'Ekki var hægt að gera reikning í DK fyrir þessa pöntun því það vantar SKU fyrir vöru eða þjónustu.','An invoice for this order has been created in DK. The invoice number is %1$s.'=>'Reikningur fyrir þessa pöntun var búinn til í DK. Númer reikningsins er %1$s.','An invoice was not created as the customer did not enter a kennitala. The invoice needs to be created manually in DK.'=>'Reikningur var ekki búinn til því viðskiptavinurinn sló ekki inn kennitölu. Það þarf að gera reikninginn handvirkt í DK.','An invoice was not created as the customer entered a kennitala. The invoice needs to be created manually in DK.'=>'Reikningur var ekki búinn til því viðskiptavinurinn sló inn kennitölu. Það þarf að gera reikninginn handvirkt í DK.','API Key'=>'API-lykill','As the product price is converted from ‘%1$s’ or is set manually to ‘%2$s’ using the ‘Foreign Prices’ feature in DK, changes to the product price in WooCommerce will not be reflected in DK due to current limitations and will be overwritten on sync. You can change the price and currency in DK.'=>'Þar sem verð vörunnar var breytt úr ‚%1$s‘ eða var fært inn handvirkt sem ‚%2$s‘ undir ‚erlend verð‘ í DK, þá verða breytingar á vöruverði í WooCommerce ekki endurspeglaðar í DK vegna tæknilegra takmarkanna og það verður skrifað yfir það við næstu samstillingu. Þú getur breytt verði og gjaldmiðli vörunnar í DK.','Authentication'=>'Auðkenning','Bank Collection Service (IB)'=>'Innheimtuþjónusta banka (IB)','Bank Transfer (BM)'=>'Bankamillifærsla (BM)','C Giro Request (CG)'=>'C-gíróseðill (CG)','Card Payment (GKR)'=>'Kortagreiðsla (GKR)','Cash Payment (STGR)'=>'Staðgreiðsla (STGR)','Cheque Payment (TGR)'=>'Tékkagreiðsla (TGR)','Connector for DK'=>'Tengill fyrir DK','Convert to Product Variant'=>'Breyta vöru í afbrigði','Cost SKU'=>'SKU fyrir kostnað og gjöld','Create a credit invoice when an order is labelled as refunded'=>'Gera kreditreikning þegar pöntun er merkt sem endurgreidd','Create Invoices Automatically for Orders With a Kennitala'=>'Gera reikninga sjálfkrafa fyrir pantanir með kennitölu','Create Invoices Automatically for Orders Without a Kennitala'=>'Gera reikninga sjálfkrafa fyrir pantanir án kennitölu','Current Month (LM)'=>'Líðandi mánuður (LM)','Current Month + 15 Days (M15)'=>'Líðandi mánuður + 15 dagar (M15)','Current Month + 20 Days (M20)'=>'Líðandi mánuður + 20 dagar (M20)','Customers'=>'Viðskiptavinir','Customers Need to Request to have a Kennitala on Invoices'=>'Viðskiptavinir þurfa að biðja um að fá kennitölu á reikning','Default Customer Kennitala'=>'Sjálfgefin kennitala fyrir viðskiptavini','Default Sales Person Number'=>'Númer sjálfgefins sölumanns','Delete Inactive Products from WooCommerce'=>'Eyða óvirkum vörum úr WooCommerce','Display the Attribute Label Description from DK'=>'Birta lýsingu skráningar eiginleika vöruafbrigða úr DK','Display the Attribute Value Description from DK'=>'Birta lýsingu eiginleika vöruafbrigða úr DK','DK Invoice'=>'Reikningur í DK','DK treats shipping and other costs as line items on invoices. In order for them to work, you need to assign a SKU to each of the following services.'=>'DK meðhöndlar sendingarkostnað og önnur gjöld sem línu á reikningum. Til að það virki þarf að skrá SKU fyrir eftirfarandi þjónustur:','Enable Kennitala Field in the Checkout Form'=>'Kveikja á reit fyrir kennitölu í afgreiðsluforminu','Enable Product-to-Variation Conversion'=>'Virkja breytingu á vörum í vöruafbrigði','Error'=>'Villa','Fee'=>'Gjald','For creating an API key, we recommend creating a separate user with full priveleges, not connected to an actual employee in dkPlus and then generating an API key for that user under ‘Tokens’ in that user’s Settings page.'=>'Við mælum með því að búa til aðskilinn notanda sem er með öll réttindi og er ekki tengdur ákveðnum starfsmanni í dkPlus til að búa til API-lykil út frá honum undir ‚auðkenningar tákn‘ á stillingasíðu þess notanda.','Giro Transfer (GM)'=>'Gírómillifærsla','Hello!'=>'Halló!','https://1984.hosting'=>'https://1984.hosting','https://github.com/1984hosting/1984-dk-woo'=>'https://github.com/1984hosting/1984-dk-woo','If enabled, a credit invoice is automatically created when an order is labelled as refunded in WooCommerce.'=>'Ef það er kveikt á þessu, þá er kreditreikningur búinn til sjálfkrafa þegar pöntun er merkt sem endurgreidd í WooCommerce.','If enabled, an email containing the invoice will be sent to the customer automatically after checkout. This uses the DK email functionality, so make sure that email delivery is configured correctly in DK.'=>'Ef það er kveikt á þessu sendist tölvupóstur til viðskiptavinarins sjálfkrafa eftir afgreiðslu. Þetta notar tölvupóststillingarnar úr DK, þannig að það er nauðsynlegt að stillingar á tölvupóstum þar inni séu réttar.','If enabled, any product can be converted into a variant of anohter as a bulk action. This is a very sharp tool, so only use this one if you know what you are doing.'=>'Ef það er kveikt á þessu er hægt að breyta hvaða vöru sem er í afbrigði af annari með fjöldabreytingu. Þetta er mjög skarpt verkfæri, þannig að þú skalt bara nota þetta ef þú veist hvað þú ert að gera.','If enabled, product names are synced between DK and WooCommerce. Disable this if you would like to be able to use separate product names in your WooCommerce shop from the ones in DK or simply prevent WooCommerce from affecting product descriptions in DK.'=>'Ef það er kveikt á þessu eru vöruheiti samstillt milli DK og WooCommerce. Slökktu á þessu ef þú vilt nota annað vöruheiti í WooCommerce-búðinni þinni frá þeim sem eru notuð í DK eða ef þú vilt einfaldlega ekki að WooCommerce hafi áhrif á vörulýsingar í DK.','If enabled, product prices and sales periods are synced by default between DK and WooCommerce. This can be overriden on a per-product basis. Prices based on foreign currency conversion are only synced ‘downstream’ from DK and into WooCommerce.'=>'Ef það er kveikt á þessu verður verð og útsölutímabil vera samstillt milli DK og WooCommerce. Það er hægt að breyta þessu fyrir hverja vöru. Verð sem skráð eru í erlendum gjaldeyri í DK eru eingöngu samstilltar ‚niður‘ úr DK og inn í WooCommerce.','If enabled, product stock status and quantity is synced between DK and WooCommerce by default. This can be overridden on a per-product basis. Note that stock status and quantity sync only works ‘downstream’ from DK and into WooCommerce, but not ‘upstream’ due to limitations in DK.'=>'Ef það er kveikt á þessu verður það sjálfgefið að samstilla lagerstöðu og fjölda á lager milli DK og WooCommerce. Hægt er að breyta þessu fyrir hverja vöru. Athugið að lagerstaða og fjöldi er einöngu sóttur frá DK en ekki í hina áttina út af tæknilegum takmörkunum í DK.','If enabled, products that are not labelled for online sales are imported into WooCommerce as drafts. Changing their status to ‘Published’ labels them for online sale in DK. This is not recommended if you have a lot of products in DK.'=>'Ef það er kveikt á þessu eru vörur sem ekki eru merktar sem ‚sýna í vefverslun‘ færðar inn í WooCommerce sem drög. Ef þú birtir þær í WooCommerce eru þær svo merktar fyrir vefverslun í DK. Það er ekki mælt með þessu ef þú ert með mjög mikið af vörum í DK.','If enabled, products that have been made inactive in DK are automatically deleted from WooCommerce.'=>'Ef það er kveikt á þessu er vörum sem voru merktar sem óvirkar í DK eytt úr WooCommerce.','If enabled, the code for attribute labels will be replaced with the attribute description from DK. Disable this if you only need the attribute label code.'=>'Ef það er kveikt á þessu, þá eru merkingum fyrir eiginleika skipt út fyrir lýsingar úr DK. Slökktu á þessu ef þú villt bara hafa auðkennið.','If enabled, the code for attribute values will be replaced with the attribute description from DK. Disable this if you only need the attribute value code.'=>'Ef það er kveikt á þessu, þá er nöfnum eiginleika skipt út fyrir lýsingar eiginleika í DK. Slökktu á þessu ef þú vilt bara hafa auðkennið.','If this is enabled, a checkbox is added to the checkout form, that the customer needs to tick in order to have a kennitala assigned to their invoice, or the invoice will be treated like one with out a kennitala.'=>'Ef það er kveikt á þessu bætist inn hak í afgreiðsluformið sem viðskiptavinur þarf að haka í til að fá kennitölu skráða á reikning, annars verður farið með reikninginn eins og það vanti kennitölu.','If this is enabled, orders without a kennitala will be assigned the ‘Default Customer Kennitala’.'=>'Ef það er kveikt á þessu er sjálfgefna kennitalan skráð á pantanir sem væru annars án kennitölu.','Import New Non-Web Products from DK as Drafts'=>'Flytja inn vörur sem ekki eru merktar fyrir ververslun í DK sem drög','In order for price sync to work, the %1$sSKU%2$s needs to be set and must equal the Item Code in DK. It is set in the %3$sInventory Panel%4$s.'=>'%1$sSKU%2$s þarf að vera sett inn og þarf að jafngilda vörunúmeri í DK. Það er stillt undir %3$sInventory%4$s hér til vinstri.','Invalid kennitala. A kennitala is a string of 10 numeric characters.'=>'Ógild kennitala. Kennitölur eru runur af 10 tölustöfum.','Invoices'=>'Reikningar','It was not possible to send an email to the customer containing the invoice as a PDF attachment.'=>'Ekki var hægt að senda tölvupóst til viðskiptavinarins sem innihélt reikninginn sem viðhengi á PDF-formi','Kennitala'=>'Kennitala','Kennitala (Optional)'=>'Kennitala (Valfrjálst)','Ledger Code for Domestic Customers'=>'Bókunarflokkur fyrir innlenda skuldunauta','Ledger Code for International Customers'=>'Bókunarflokkur fyrir erlenda skuldunauta','Ledger Codes'=>'Bókunarflokkar','Method ID in DK'=>'Auðkenni greiðslumáta í DK','Ninteen-Eighty-Four'=>'Nítjánhundruð-áttatíu-og-fjögur','No'=>'Nei','Parent ID'=>'ID-númer móður','Payment Gateways'=>'Greiðslugáttir','Payment Mode in DK'=>'Greiðslumáti í DK','Payment Terms in DK'=>'Greiðsluskilmálar í DK','Please make sure that a customer record with the kennitala ‘%s’ exsists in DK before you continue.'=>'Ganga þarf úr skugga um að það sé skráður skulunautur með kennitölunni ‚%s‘ í DK áður en haldið er áfram.','Please make sure that a product with the Product Code ‘%s’ exsists in DK before saving.'=>'Ganga þarf úr skugga um að vara með vörunúmerinu ‚%s‘ sé skráð í DK áður en haldið er áfram.','Please make sure that a sales person with the number ‘%s’ exsists in DK before saving.'=>'Ganga þarf úr skugga um að sölumaður með númerinu ‚%s‘ sé skráður í DK áður en haldið er áfram.','Please select the payment method name for each payment gateway as it appears in DK as well as the payment mode:'=>'Veldu nafn greiðslumáta fyrir hverja greiðslugátt eins og hann kemur fram í DK:','Postal COD (POST)'=>'Póstkrafa (POST)','Product Sync Defaults'=>'Sjálfgefnar stillingar fyrir samstillingu á vörum','Products'=>'Vörur','Products With Reduced Tax Rate'=>'Vörur í lægra skattþrepi','Products with Standard tax rate'=>'Vörur í almennu skattþrepi','Purchase'=>'Innkaup','Purchase Booking Category'=>'Bókunarflokkur innkaupa','Request an Invoice with Kennitala'=>'Biðja um reikning með kennitölu','Request an Invoice with Kennitala (optional)'=>'Biðja um reikning með kennitölu (valfrjálst)','Sale'=>'Sala','Sale Booking Category'=>'Bókunarflokkur sölu','Save'=>'Vista','Send Invoices Automatically via Email'=>'Senda reikning sjálfkrafa í tölvupósti','Service SKUs'=>'Vörunúmer fyrir þjónustur','Shipping'=>'Sendingar','Shipping SKU'=>'SKU fyrir sendingar','stock keeping unit'=>'stock keeping unit','Sync Inventory with DK'=>'Samstilla birgðastöðu við DK','Sync Name with DK'=>'Samstilla nöfn við DK','Sync Price with DK'=>'Samstilla verð við DK','Sync Product Names with DK'=>'Samstilla vöruheiti við DK','Sync Product Prices'=>'Samstilla vöruverð','Sync Stock Status and Quantity from DK'=>'Samstilla birgðastöðu og fjölda frá DK','Sync your WooCommerce store with DK, including prices, inventory status and generate invoices for customers on checkout.'=>'Samstilltu verð og birgðastöðu og búðu til reikninga fyrir viðskiptavini við greiðslu í WooCommerce gegn um DK-bókhaldskerfið.','The %1$sSKU%2$s needs to be set to a unique value and must equal the intended %3$sItem Code%4$s in DK for any 1984 DK Sync functionality to work.%5$sAs it only works downstream, if this feature is enabled, setting product stock quantity and status in WooCommerce will not result in it being reflected in DK and it will be overwritten next time information is fetched from DK.'=>'%1$sSKU%2$s þarf að vera einstakt og þarf að jafngilda %3$svörunúmeri%4$s í DK til að samstilling geti virkað.%5$sEf kveikt er á þessu munu breytingar á brigðarstöðu og fjölda eingöngu virka niður á við úr DK og endurspeglast því ekki þar og það verður skrifað yfir þær við næstu samstillingu úr DK.','The 1984 Connector for DK and WooCommerce is developed, maintained and supported on goodwill basis by 1984 Hosting as free software without any guarantees or obligations and is not affiliated with or supported by DK hugbúnaður ehf.'=>'WordPress-viðbótin ‚Tengill frá 1984 fyrir DK og WooCommerce‘ er búin til og haldið við af 1984 ehf. Viðbótin er frjáls hugbúnaður og er öllum heimil notkun en engin loforð eru gefin um virkni eða villuleysi. DK Hugbúnaður ehf ber enga ábyrgð á viðbótinni.','The API key is provided by DK for use with the DK API. Do not share this key with anyone.'=>'API-lykillinn er afhentur af DK og er ætlaður til notkunar með API-viðmóti DK. Ekki deila þessum lykli með öðrum.','The currency code ‘%s’ is invalid.'=>'Gjaldmiðillinn ‚%s‘ er ógildur.','The currency rate for ‘%s’ has not been set.'=>'Gengið fyrir gjaldmiðlilinn ‚%s‘ hefur ekki verið skráð.','The default kennitala is used for guest customers that don\'t have or supply a kennitala during checkout. This should correspond with a DK customer record called “Various Customers” etc.'=>'Sjálfgefin kennitala er notuð til að bera kennsl á viðskiptavini (skuldunauta í DK) sem eru ekki innskráðir og taka ekki fram kennitölu við afgreiðslu. Þetta ætti að stemma við skuldunaut í DK sem heitir t.d. ‚Ýmsir skuldunautar‘','The DK API key is missing.'=>'API-lykillinn fyrir DK vantar.','The Item Code ‘%s’ was found in DK.'=>'Vörunúmerið ‚%s‘ fannst í DK.','The Item Code ‘%s’ was not found in DK.'=>'Vörunúmerið ‚%s‘ fannst ekki í DK.','The payment gateways themselves are handled by your WooCommerce Settings, under %1$sthe Payments Section%2$s.'=>'Sjálfar greiðslugáttirnar eru stilltar í WooCommerce undir %1$sgreiðslum%2$s.','This is a required field'=>'Það þarf að fylla þennan reit út','This is where you set the default options for syncing your WooCommerce products. For example, if you do not want to overwrite the prices or names of your current WooCommerce products by default, or only fetch products labelled as ‘for online store’ you can do it here.'=>'Hér stillir þú inn sjálfgefin eigindi til að samstilla WooCommerce-vörurnar þínar. Ef þú vilt ekki að það sé sjálfgefið að skrifa yfir verð eða vöruheiti, eða ef þú vilt aðeins sækja vörur sem merktar eru fyrir vefverslun, þá geturðu til dæmis breytt því hér.','Unable to create an invoice in DK: '=>'Gat ekki búið til reikning í DK: ','Use Default (Currently ‘%1$s’)'=>'Nota sjálfgefið gildi (Er núna ‚%1$s‘)','Valid'=>'Gilt','Variations and Attributes'=>'Afbrigði og eiginleikar','When a customer requests to have a kennitala assigned to an invoice, a customer record is created in DK if it does not already exist, using the billing information supplied for the order.'=>'Þegar viðskiptavinur biður um að fá kennitölu á reikning eru reikningsupplýsingarnar notaðar til að stofna nýjan skuldunaut í DK ef hann var ekki til áður.','When a product is created and published in WooCommerce, a corrsponding product record is created in DK. Setting the values below correctly makes sure that this happens without discrepancies or errors.'=>'Þegar vara er búin til og gefin út í WooCommerce er samsvarandi vara skráð í DK. Ef neðangreind gildi eru sett rétt inn tryggir það að það gerist án ósamræmis eða villna.','While the variation and attribute codes from DK are used internally, their values can be displayed as the descriptions that are set for each of them in DK. Here you can also enable the product conversion feature.'=>'Þó svo að kóðar fyrir afbrigði og eiginleika úr DK séu notuð í innri virkni, þá er hægt að birta lýsingu hvers og eins úr DK. Hér er einnig hægt að kveikja á breytingum á vörum í afbrigði.','Yes'=>'Já','Your Invoice From %1$s'=>'Reikningurinn þinn frá %1$s']]; diff --git a/languages/1984-dk-woo-is_IS.mo b/languages/1984-dk-woo-is_IS.mo index 4728f32aba48e0b60428852f5a35b9c5c873d01b..b343e2c7eecd8768e633d575a87b7d996fac4281 100644 GIT binary patch delta 2326 zcmYM#e@vBC7{Kud0nuyx6a+-*Vj|(am$=GBKuC#;215M0n}{1j5;n)+8flcUt^`!} z1Gg^BRzv30;g8jttj#C~1S{I=k5po|=B60V&6?(ht4-_s@V;A2{G4;%_dV}B)PgsZU~H3=VK4t|Qd&>76fC~nq? zDo``cMge7=CB|CM4i7oQY3-*%Ly83IEv5VZPRFGx6yawdOU!^cpL+9 z5O3j0PU^fN&1n-!> z#d5FGPfQSL#0TiWUF5e9d(n;2q(L*b8|$$FH4~Gl8U6{^;w? zd!&m2y>JoY24VhSjy_kzP(1r0F5%!OiqZ3;& z3x`mT*)Q0PH?a}RNJj~dpckKD6}IwlH}97T8gDXCv{7UqE1tp?^wTnp6}wO)^`J)D zYz7ciWD0$~-R4RvBK z`tb;As-rg>3*3s7Tk23J?m>c=apYFHkGhFddApX_V_J*82MpBH(3(}T%n)qEUTnep z_z>stHg!lOL({w^3g`J8I`Hp&_7J9SHO_s>HolhJf5CJ|fyi(4=TJ*C{({I3v=@^9 zcWE3XOkMe7)Eefv`P!iy*(CBM#^M-i zXE7cx7m@!?8nX+LCP$9|q%T9}SJ@JnBRBZ#s{Vv*D>K?mFq(l z#@~V|)Cm8=IDCZXFrrfA8yv-J*j{Cnrj(BY0k4({8X7?>>O#6vH{<6cZ!G&YCZw&g z^`N!bJyMbMTBtwPZu588YyIEZ3c|A;87`~Sm7D3bW$@!Ku;=<`?D=b*TdeH|99ikE zbeE;Z;r6!d-QSvPb>?JeI`%a?+Pz-O$R@|;xX5C+qjhq$rLoQ0GC4B&#i6#5{YAF0 F{{Zv2B#;0A delta 2255 zcmYM#eN2^A9KiA4RbJ&CL0F-vPrs4J5zNf5Ia^{$fC z97Mamkgfg_36}N8-E2;+wdPydiqLY|Xo=4CM@h5RWQ+Cv^*mcl{G4;1=Q+>${eI^; zd_HP9Flq@-rA8bSe%|1B3BTS5?TPG&`QOKB?xb(UD_DScFdnmFjqyU$dTeC89b0h> zJ@^kki0%bEgS)UwBq+l)9$;VsqcJf~WF0QTH5kBJJc*le)*Nr+?S1q=#%)-TAW~)# zIf#k$&-0%K^gX8H9bAY}Nk%^#7xI2_&`9Hg2a|CioSaB8z#y4ALmVaa@U)O(U4Sgnk7U;wFs5Jvbi+ z@H)PY{F4_5FG{at00;3B&f-x#Pn2`GHC^Oy3@jr5d8F)_43Xa$=+C5$y%gvO{$Sd} zawq90EEe(OFX+IB$?qWcVLe8W2F=)N+=M>VOoUN0dnNk{87^Mhy(uibW05t<4JcY;c0&ZbvUdHlbW79?RR*ftUwWdpvOX9@; zN`#;CqCRY8yn>CQDc_4sC8HRN6UKN@u9-K?Vhb0t?h$zcJFyzSz)GA$_Kj5ViIkxa z@59}wpVui2;5qbTIq7J^Vcdq(=)+bXejShDF8%(C%SE1L#bX%9g~SSD#o4Hlx=FF z(2ttxyQnG6cN&|p4t3%!NboX(+#**{H*q{~*Alx--S`Ln1`KM=oGddMo3I~!ID=Pl z8ZS}@D;YY@TT<~WjzI@b)lh$ocN^dP%36_kxqryi?h*Nk{sq+1j6B4dfhk0{7dOghBr_nk6dkNMO{E8YD7Nd3zH6f6GP~w6gf>q zih)Pipp5r>jST6Z(gOOqs0(N?`@wD+lt&KXEM7$)PBt3{OW~tzG$vf5GTzf-oc)JU zBRq?mfiH0kr|~ontToP!CMMI88j#LG|v@E{9WAnR$QGVp46U(Ao`;jWzCgpl9v yNpd>Ms%+(@)%UteO8E)>Tw)KMu)9KW_Kl(2_8LoR$l tag. -#: views/admin.php:746 +#: views/admin.php:750 #, php-format msgid "" "%1$sError:%2$s Please check if all the information was entered correctly and " @@ -30,7 +30,7 @@ msgid "15 Day Payment Deadline (D15)" msgstr "15 daga greiðslufrestur (D15)" #. Name of the plugin -#: views/admin.php:21 +#: views/admin.php:25 msgid "1984 Connector for DK and WooCommerce" msgstr "Tengill frá 1984 fyrir DK og WooCommerce" @@ -62,13 +62,13 @@ msgstr "" "er %1$s." #. The %s stands for the kennitala. -#: src/Hooks/Admin.php:501 +#: src/Hooks/Admin.php:495 #, php-format msgid "A custmer record with the kennitala ‘%s’ was not found in DK." msgstr "Skuldunautur með kennitöluna ‚%s‘ fannst ekki í DK." #. The %s stands for the kennitala. -#: src/Hooks/Admin.php:489 +#: src/Hooks/Admin.php:483 #, php-format msgid "A customer record with the kennitala ‘%s’ was found in DK." msgstr "Skuldunautur með kennitöluna ‚%s‘ fannst í DK." @@ -78,13 +78,13 @@ msgid "A or B Giro Request (ABG)" msgstr "A- eða B-gíróseðill (ABG)" #. The %s stands for the relevant sales person number. -#: src/Hooks/Admin.php:430 +#: src/Hooks/Admin.php:424 #, php-format msgid "A sales person with the number ‘%s’ was found in DK." msgstr "Sölumaður með númerið ‚%s‘ fannst í DK." #. The %s stands for the relevant sales person number. -#: src/Hooks/Admin.php:442 +#: src/Hooks/Admin.php:436 #, php-format msgid "A sales person with the number ‘%s’ was not found in DK." msgstr "Sölumaður með númerið ‚%s‘ fannst ekki í DK." @@ -109,9 +109,6 @@ msgid "An invoice could not be created in DK due to an unhandled error." msgstr "Ekki var hægt að búa til reikning í DK út af ómeðhöndlaðri villu." #: src/Hooks/WooOrderStatusChanges.php:110 -#| msgid "" -#| "An invoice could not be created in DK for this order as an item in this " -#| "order does not have a SKU." msgid "" "An invoice could not be created in DK for this order as a line item in this " "order does not have a SKU." @@ -143,12 +140,12 @@ msgstr "" "Reikningur var ekki búinn til því viðskiptavinurinn sló inn kennitölu. Það " "þarf að gera reikninginn handvirkt í DK." -#: views/admin.php:38 +#: views/admin.php:42 msgid "API Key" msgstr "API-lykill" #. The %1$s is the product's original currency code and %2$s is the shop's currency. -#: views/product_options_pricing_partial.php:21 +#: views/product_options_pricing_partial.php:25 #, php-format msgid "" "As the product price is converted from ‘%1$s’ or is set manually to ‘%2$s’ " @@ -162,7 +159,7 @@ msgstr "" "verður skrifað yfir það við næstu samstillingu. Þú getur breytt verði og " "gjaldmiðli vörunnar í DK." -#: views/admin.php:24 +#: views/admin.php:28 msgid "Authentication" msgstr "Auðkenning" @@ -190,27 +187,27 @@ msgstr "Staðgreiðsla (STGR)" msgid "Cheque Payment (TGR)" msgstr "Tékkagreiðsla (TGR)" -#: src/Hooks/Admin.php:280 src/Hooks/Admin.php:281 +#: src/Hooks/Admin.php:266 src/Hooks/Admin.php:267 msgid "Connector for DK" msgstr "Tengill fyrir DK" -#: src/Hooks/Admin.php:203 +#: src/Hooks/Admin.php:184 msgid "Convert to Product Variant" msgstr "Breyta vöru í afbrigði" -#: views/admin.php:561 +#: views/admin.php:565 msgid "Cost SKU" msgstr "SKU fyrir kostnað og gjöld" -#: views/admin.php:509 +#: views/admin.php:513 msgid "Create a credit invoice when an order is labelled as refunded" msgstr "Gera kreditreikning þegar pöntun er merkt sem endurgreidd" -#: views/admin.php:397 +#: views/admin.php:401 msgid "Create Invoices Automatically for Orders With a Kennitala" msgstr "Gera reikninga sjálfkrafa fyrir pantanir með kennitölu" -#: views/admin.php:425 +#: views/admin.php:429 msgid "Create Invoices Automatically for Orders Without a Kennitala" msgstr "Gera reikninga sjálfkrafa fyrir pantanir án kennitölu" @@ -226,39 +223,39 @@ msgstr "Líðandi mánuður + 15 dagar (M15)" msgid "Current Month + 20 Days (M20)" msgstr "Líðandi mánuður + 20 dagar (M20)" -#: views/admin.php:603 +#: views/admin.php:607 msgid "Customers" msgstr "Viðskiptavinir" -#: views/admin.php:481 +#: views/admin.php:485 msgid "Customers Need to Request to have a Kennitala on Invoices" msgstr "Viðskiptavinir þurfa að biðja um að fá kennitölu á reikning" -#: views/admin.php:336 +#: views/admin.php:340 msgid "Default Customer Kennitala" msgstr "Sjálfgefin kennitala fyrir viðskiptavini" -#: views/admin.php:581 +#: views/admin.php:585 msgid "Default Sales Person Number" msgstr "Númer sjálfgefins sölumanns" -#: views/admin.php:158 +#: views/admin.php:162 msgid "Delete Inactive Products from WooCommerce" msgstr "Eyða óvirkum vörum úr WooCommerce" -#: views/admin.php:189 +#: views/admin.php:193 msgid "Display the Attribute Label Description from DK" msgstr "Birta lýsingu skráningar eiginleika vöruafbrigða úr DK" -#: views/admin.php:212 +#: views/admin.php:216 msgid "Display the Attribute Value Description from DK" msgstr "Birta lýsingu eiginleika vöruafbrigða úr DK" -#: src/Hooks/Admin.php:103 +#: src/Hooks/Admin.php:102 msgid "DK Invoice" msgstr "Reikningur í DK" -#: views/admin.php:530 +#: views/admin.php:534 msgid "" "DK treats shipping and other costs as line items on invoices. In order for " "them to work, you need to assign a SKU to each of the following services." @@ -266,15 +263,15 @@ msgstr "" "DK meðhöndlar sendingarkostnað og önnur gjöld sem línu á reikningum. Til að " "það virki þarf að skrá SKU fyrir eftirfarandi þjónustur:" -#: views/admin.php:377 +#: views/admin.php:381 msgid "Enable Kennitala Field in the Checkout Form" msgstr "Kveikja á reit fyrir kennitölu í afgreiðsluforminu" -#: views/admin.php:235 +#: views/admin.php:239 msgid "Enable Product-to-Variation Conversion" msgstr "Virkja breytingu á vörum í vöruafbrigði" -#: src/Hooks/Admin.php:157 +#: src/Hooks/Admin.php:156 msgid "Error" msgstr "Villa" @@ -282,7 +279,7 @@ msgstr "Villa" msgid "Fee" msgstr "Gjald" -#: views/admin.php:27 +#: views/admin.php:31 msgid "" "For creating an API key, we recommend creating a separate user with full " "priveleges, not connected to an actual employee in dkPlus and then " @@ -309,7 +306,7 @@ msgstr "https://1984.hosting" msgid "https://github.com/1984hosting/1984-dk-woo" msgstr "https://github.com/1984hosting/1984-dk-woo" -#: views/admin.php:517 +#: views/admin.php:521 msgid "" "If enabled, a credit invoice is automatically created when an order is " "labelled as refunded in WooCommerce." @@ -317,7 +314,7 @@ msgstr "" "Ef það er kveikt á þessu, þá er kreditreikningur búinn til sjálfkrafa þegar " "pöntun er merkt sem endurgreidd í WooCommerce." -#: views/admin.php:461 +#: views/admin.php:465 msgid "" "If enabled, an email containing the invoice will be sent to the customer " "automatically after checkout. This uses the DK email functionality, so make " @@ -327,7 +324,7 @@ msgstr "" "sjálfkrafa eftir afgreiðslu. Þetta notar tölvupóststillingarnar úr DK, " "þannig að það er nauðsynlegt að stillingar á tölvupóstum þar inni séu réttar." -#: views/admin.php:239 +#: views/admin.php:243 msgid "" "If enabled, any product can be converted into a variant of anohter as a bulk " "action. This is a very sharp tool, so only use this one if you know what you " @@ -337,7 +334,7 @@ msgstr "" "annari með fjöldabreytingu. Þetta er mjög skarpt verkfæri, þannig að þú " "skalt bara nota þetta ef þú veist hvað þú ert að gera." -#: views/admin.php:125 +#: views/admin.php:129 msgid "" "If enabled, product names are synced between DK and WooCommerce. Disable " "this if you would like to be able to use separate product names in your " @@ -349,7 +346,7 @@ msgstr "" "frá þeim sem eru notuð í DK eða ef þú vilt einfaldlega ekki að WooCommerce " "hafi áhrif á vörulýsingar í DK." -#: views/admin.php:89 +#: views/admin.php:93 msgid "" "If enabled, product prices and sales periods are synced by default between " "DK and WooCommerce. This can be overriden on a per-product basis. Prices " @@ -361,7 +358,7 @@ msgstr "" "skráð eru í erlendum gjaldeyri í DK eru eingöngu samstilltar ‚niður‘ úr DK " "og inn í WooCommerce." -#: views/admin.php:107 +#: views/admin.php:111 msgid "" "If enabled, product stock status and quantity is synced between DK and " "WooCommerce by default. This can be overridden on a per-product basis. Note " @@ -373,7 +370,7 @@ msgstr "" "vöru. Athugið að lagerstaða og fjöldi er einöngu sóttur frá DK en ekki í " "hina áttina út af tæknilegum takmörkunum í DK." -#: views/admin.php:143 +#: views/admin.php:147 msgid "" "If enabled, products that are not labelled for online sales are imported " "into WooCommerce as drafts. Changing their status to ‘Published’ labels them " @@ -385,7 +382,7 @@ msgstr "" "WooCommerce eru þær svo merktar fyrir vefverslun í DK. Það er ekki mælt með " "þessu ef þú ert með mjög mikið af vörum í DK." -#: views/admin.php:161 +#: views/admin.php:165 msgid "" "If enabled, products that have been made inactive in DK are automatically " "deleted from WooCommerce." @@ -393,7 +390,7 @@ msgstr "" "Ef það er kveikt á þessu er vörum sem voru merktar sem óvirkar í DK eytt úr " "WooCommerce." -#: views/admin.php:193 +#: views/admin.php:197 msgid "" "If enabled, the code for attribute labels will be replaced with the " "attribute description from DK. Disable this if you only need the attribute " @@ -402,7 +399,7 @@ msgstr "" "Ef það er kveikt á þessu, þá eru merkingum fyrir eiginleika skipt út fyrir " "lýsingar úr DK. Slökktu á þessu ef þú villt bara hafa auðkennið." -#: views/admin.php:216 +#: views/admin.php:220 msgid "" "If enabled, the code for attribute values will be replaced with the " "attribute description from DK. Disable this if you only need the attribute " @@ -411,7 +408,7 @@ msgstr "" "Ef það er kveikt á þessu, þá er nöfnum eiginleika skipt út fyrir lýsingar " "eiginleika í DK. Slökktu á þessu ef þú vilt bara hafa auðkennið." -#: views/admin.php:489 +#: views/admin.php:493 msgid "" "If this is enabled, a checkbox is added to the checkout form, that the " "customer needs to tick in order to have a kennitala assigned to their " @@ -421,7 +418,7 @@ msgstr "" "viðskiptavinur þarf að haka í til að fá kennitölu skráða á reikning, annars " "verður farið með reikninginn eins og það vanti kennitölu." -#: views/admin.php:433 +#: views/admin.php:437 msgid "" "If this is enabled, orders without a kennitala will be assigned the ‘Default " "Customer Kennitala’." @@ -429,12 +426,12 @@ msgstr "" "Ef það er kveikt á þessu er sjálfgefna kennitalan skráð á pantanir sem væru " "annars án kennitölu." -#: views/admin.php:140 +#: views/admin.php:144 msgid "Import New Non-Web Products from DK as Drafts" msgstr "Flytja inn vörur sem ekki eru merktar fyrir ververslun í DK sem drög" #. %1$s stands for a opening and %2$s for a closing tag. %3$s and %4$s stand for the opening and closing tags. -#: views/product_options_pricing_partial.php:61 +#: views/product_options_pricing_partial.php:65 #, php-format msgid "" "In order for price sync to work, the %1$sSKU%2$s needs to be set and must " @@ -447,7 +444,7 @@ msgstr "" msgid "Invalid kennitala. A kennitala is a string of 10 numeric characters." msgstr "Ógild kennitala. Kennitölur eru runur af 10 tölustöfum." -#: views/admin.php:329 +#: views/admin.php:333 msgid "Invoices" msgstr "Reikningar" @@ -469,49 +466,53 @@ msgstr "Kennitala" msgid "Kennitala (Optional)" msgstr "Kennitala (Valfrjálst)" -#: views/admin.php:609 +#: views/admin.php:613 msgid "Ledger Code for Domestic Customers" msgstr "Bókunarflokkur fyrir innlenda skuldunauta" -#: views/admin.php:624 +#: views/admin.php:628 msgid "Ledger Code for International Customers" msgstr "Bókunarflokkur fyrir erlenda skuldunauta" -#: views/admin.php:249 +#: views/admin.php:253 msgid "Ledger Codes" msgstr "Bókunarflokkar" -#: views/admin.php:647 +#: views/admin.php:651 msgid "Method ID in DK" msgstr "Auðkenni greiðslumáta í DK" -#: views/admin.php:779 +#: views/admin.php:783 msgid "Ninteen-Eighty-Four" msgstr "Nítjánhundruð-áttatíu-og-fjögur" -#: views/product_options_advanced_partial.php:29 -#: views/product_options_advanced_partial.php:32 -#: views/product_options_sku_partial.php:27 -#: views/product_options_sku_partial.php:30 -#: views/product_options_pricing_partial.php:46 -#: views/product_options_pricing_partial.php:49 +#: views/product_options_advanced_partial.php:33 +#: views/product_options_advanced_partial.php:36 +#: views/product_options_sku_partial.php:31 +#: views/product_options_sku_partial.php:34 +#: views/product_options_pricing_partial.php:50 +#: views/product_options_pricing_partial.php:53 msgid "No" msgstr "Nei" -#: views/admin.php:641 +#: js/products.js:17 +msgid "Parent ID" +msgstr "ID-númer móður" + +#: views/admin.php:645 msgid "Payment Gateways" msgstr "Greiðslugáttir" -#: views/admin.php:648 +#: views/admin.php:652 msgid "Payment Mode in DK" msgstr "Greiðslumáti í DK" -#: views/admin.php:649 +#: views/admin.php:653 msgid "Payment Terms in DK" msgstr "Greiðsluskilmálar í DK" #. The %s stands for the kennitala. -#: src/Hooks/Admin.php:477 +#: src/Hooks/Admin.php:471 #, php-format msgid "" "Please make sure that a customer record with the kennitala ‘%s’ exsists in " @@ -521,7 +522,7 @@ msgstr "" "í DK áður en haldið er áfram." #. The %s stands for the relevant SKU. -#: src/Hooks/Admin.php:357 +#: src/Hooks/Admin.php:351 #, php-format msgid "" "Please make sure that a product with the Product Code ‘%s’ exsists in DK " @@ -531,7 +532,7 @@ msgstr "" "haldið er áfram." #. The %s stands for the relevant sales person number. -#: src/Hooks/Admin.php:418 +#: src/Hooks/Admin.php:412 #, php-format msgid "" "Please make sure that a sales person with the number ‘%s’ exsists in DK " @@ -540,7 +541,7 @@ msgstr "" "Ganga þarf úr skugga um að sölumaður með númerinu ‚%s‘ sé skráður í DK áður " "en haldið er áfram." -#: views/admin.php:642 +#: views/admin.php:646 msgid "" "Please select the payment method name for each payment gateway as it appears " "in DK as well as the payment mode:" @@ -552,28 +553,27 @@ msgstr "" msgid "Postal COD (POST)" msgstr "Póstkrafa (POST)" -#: views/admin.php:71 +#: views/admin.php:75 msgid "Product Sync Defaults" msgstr "Sjálfgefnar stillingar fyrir samstillingu á vörum" -#: views/admin.php:70 +#: views/admin.php:74 msgid "Products" msgstr "Vörur" -#: views/admin.php:298 +#: views/admin.php:302 msgid "Products With Reduced Tax Rate" msgstr "Vörur í lægra skattþrepi" -#: views/admin.php:269 -#| msgid "Products With Standard Tax Rate" +#: views/admin.php:273 msgid "Products with Standard tax rate" msgstr "Vörur í almennu skattþrepi" -#: views/admin.php:263 +#: views/admin.php:267 msgid "Purchase" msgstr "Innkaup" -#: views/admin.php:285 views/admin.php:313 +#: views/admin.php:289 views/admin.php:317 msgid "Purchase Booking Category" msgstr "Bókunarflokkur innkaupa" @@ -585,23 +585,23 @@ msgstr "Biðja um reikning með kennitölu" msgid "Request an Invoice with Kennitala (optional)" msgstr "Biðja um reikning með kennitölu (valfrjálst)" -#: views/admin.php:262 +#: views/admin.php:266 msgid "Sale" msgstr "Sala" -#: views/admin.php:273 views/admin.php:302 +#: views/admin.php:277 views/admin.php:306 msgid "Sale Booking Category" msgstr "Bókunarflokkur sölu" -#: views/admin.php:762 +#: views/admin.php:766 msgid "Save" msgstr "Vista" -#: views/admin.php:453 +#: views/admin.php:457 msgid "Send Invoices Automatically via Email" msgstr "Senda reikning sjálfkrafa í tölvupósti" -#: views/admin.php:527 +#: views/admin.php:531 msgid "Service SKUs" msgstr "Vörunúmer fyrir þjónustur" @@ -609,38 +609,36 @@ msgstr "Vörunúmer fyrir þjónustur" msgid "Shipping" msgstr "Sendingar" -#: views/admin.php:541 +#: views/admin.php:545 msgid "Shipping SKU" msgstr "SKU fyrir sendingar" -#: views/product_options_sku_partial.php:45 -#: views/product_options_pricing_partial.php:66 +#: views/product_options_sku_partial.php:49 +#: views/product_options_pricing_partial.php:70 msgid "stock keeping unit" msgstr "stock keeping unit" -#: views/product_options_sku_partial.php:21 +#: views/product_options_sku_partial.php:25 msgid "Sync Inventory with DK" msgstr "Samstilla birgðastöðu við DK" -#: views/product_options_advanced_partial.php:23 +#: views/product_options_advanced_partial.php:27 msgid "Sync Name with DK" msgstr "Samstilla nöfn við DK" -#: views/product_options_pricing_partial.php:40 -#| msgid "Sync prices with DK" +#: views/product_options_pricing_partial.php:44 msgid "Sync Price with DK" msgstr "Samstilla verð við DK" -#: views/admin.php:122 +#: views/admin.php:126 msgid "Sync Product Names with DK" msgstr "Samstilla vöruheiti við DK" -#: views/admin.php:86 +#: views/admin.php:90 msgid "Sync Product Prices" msgstr "Samstilla vöruverð" -#: views/admin.php:104 -#| msgid "Sync Stock Status and Quantity with DK" +#: views/admin.php:108 msgid "Sync Stock Status and Quantity from DK" msgstr "Samstilla birgðastöðu og fjölda frá DK" @@ -653,7 +651,7 @@ msgstr "" "greiðslu í WooCommerce gegn um DK-bókhaldskerfið." #. %1$s stands for a opening and %2$s for a closing tag. %3$s stands for a opening and %4$s for a closing tag. -#: views/product_options_sku_partial.php:40 +#: views/product_options_sku_partial.php:44 #, php-format msgid "" "The %1$sSKU%2$s needs to be set to a unique value and must equal the " @@ -668,12 +666,7 @@ msgstr "" "brigðarstöðu og fjölda eingöngu virka niður á við úr DK og endurspeglast því " "ekki þar og það verður skrifað yfir þær við næstu samstillingu úr DK." -#: views/admin.php:772 -#| msgid "" -#| "The 1984 DK Connection Plugin for WooCommerce is developed, maintained " -#| "and supported on goodwill basis by 1984 Hosting as free software without " -#| "any guarantees or obligations and is not affiliated with or supported by " -#| "DK hugbúnaður ehf." +#: views/admin.php:776 msgid "" "The 1984 Connector for DK and WooCommerce is developed, maintained and " "supported on goodwill basis by 1984 Hosting as free software without any " @@ -685,7 +678,7 @@ msgstr "" "notkun en engin loforð eru gefin um virkni eða villuleysi. DK Hugbúnaður ehf " "ber enga ábyrgð á viðbótinni." -#: views/admin.php:57 +#: views/admin.php:61 msgid "" "The API key is provided by DK for use with the DK API. Do not share this key " "with anyone." @@ -705,11 +698,7 @@ msgstr "Gjaldmiðillinn ‚%s‘ er ógildur." msgid "The currency rate for ‘%s’ has not been set." msgstr "Gengið fyrir gjaldmiðlilinn ‚%s‘ hefur ekki verið skráð." -#: views/admin.php:357 -#| msgid "" -#| "The default kennitala is used for identifying customers that don't have " -#| "or supply a kennitala during checkout. This should correspond with a DK " -#| "customer record called “Various Customers” etc." +#: views/admin.php:361 msgid "" "The default kennitala is used for guest customers that don't have or supply " "a kennitala during checkout. This should correspond with a DK customer " @@ -725,19 +714,19 @@ msgid "The DK API key is missing." msgstr "API-lykillinn fyrir DK vantar." #. The %s stands for the relevant SKU. -#: src/Hooks/Admin.php:369 +#: src/Hooks/Admin.php:363 #, php-format msgid "The Item Code ‘%s’ was found in DK." msgstr "Vörunúmerið ‚%s‘ fannst í DK." #. The %s stands for the relevant SKU. -#: src/Hooks/Admin.php:381 +#: src/Hooks/Admin.php:375 #, php-format msgid "The Item Code ‘%s’ was not found in DK." msgstr "Vörunúmerið ‚%s‘ fannst ekki í DK." #. %1$s stands for the opening and %2$s tag in a hyperlink to the WooCommerce Payment Settings page. -#: views/admin.php:732 +#: views/admin.php:736 #, php-format msgid "" "The payment gateways themselves are handled by your WooCommerce Settings, " @@ -745,11 +734,11 @@ msgid "" msgstr "" "Sjálfar greiðslugáttirnar eru stilltar í WooCommerce undir %1$sgreiðslum%2$s." -#: views/admin.php:53 +#: views/admin.php:57 msgid "This is a required field" msgstr "Það þarf að fylla þennan reit út" -#: views/admin.php:72 +#: views/admin.php:76 msgid "" "This is where you set the default options for syncing your WooCommerce " "products. For example, if you do not want to overwrite the prices or names " @@ -767,22 +756,22 @@ msgid "Unable to create an invoice in DK: " msgstr "Gat ekki búið til reikning í DK: " #. %1$s is the current yes/no value. -#: views/product_options_advanced_partial.php:28 -#: views/product_options_sku_partial.php:26 -#: views/product_options_pricing_partial.php:45 +#: views/product_options_advanced_partial.php:32 +#: views/product_options_sku_partial.php:30 +#: views/product_options_pricing_partial.php:49 #, php-format msgid "Use Default (Currently ‘%1$s’)" msgstr "Nota sjálfgefið gildi (Er núna ‚%1$s‘)" -#: views/admin.php:52 +#: views/admin.php:56 msgid "Valid" msgstr "Gilt" -#: views/admin.php:167 +#: views/admin.php:171 msgid "Variations and Attributes" msgstr "Afbrigði og eiginleikar" -#: views/admin.php:405 +#: views/admin.php:409 msgid "" "When a customer requests to have a kennitala assigned to an invoice, a " "customer record is created in DK if it does not already exist, using the " @@ -792,7 +781,7 @@ msgstr "" "reikningsupplýsingarnar notaðar til að stofna nýjan skuldunaut í DK ef hann " "var ekki til áður." -#: views/admin.php:252 +#: views/admin.php:256 msgid "" "When a product is created and published in WooCommerce, a corrsponding " "product record is created in DK. Setting the values below correctly makes " @@ -802,7 +791,7 @@ msgstr "" "DK. Ef neðangreind gildi eru sett rétt inn tryggir það að það gerist án " "ósamræmis eða villna." -#: views/admin.php:170 +#: views/admin.php:174 msgid "" "While the variation and attribute codes from DK are used internally, their " "values can be displayed as the descriptions that are set for each of them in " @@ -812,12 +801,12 @@ msgstr "" "þá er hægt að birta lýsingu hvers og eins úr DK. Hér er einnig hægt að " "kveikja á breytingum á vörum í afbrigði." -#: views/product_options_advanced_partial.php:29 -#: views/product_options_advanced_partial.php:31 -#: views/product_options_sku_partial.php:27 -#: views/product_options_sku_partial.php:29 -#: views/product_options_pricing_partial.php:46 -#: views/product_options_pricing_partial.php:48 +#: views/product_options_advanced_partial.php:33 +#: views/product_options_advanced_partial.php:35 +#: views/product_options_sku_partial.php:31 +#: views/product_options_sku_partial.php:33 +#: views/product_options_pricing_partial.php:50 +#: views/product_options_pricing_partial.php:52 msgid "Yes" msgstr "Já" diff --git a/languages/1984-dk-woo.pot b/languages/1984-dk-woo.pot index 9857b1b..07b4772 100644 --- a/languages/1984-dk-woo.pot +++ b/languages/1984-dk-woo.pot @@ -3,7 +3,7 @@ msgid "" msgstr "" "Project-Id-Version: 1984 Connector for DK and WooCommerce\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-07-18 20:37+0000\n" +"POT-Creation-Date: 2024-08-05 15:15+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: \n" @@ -17,7 +17,7 @@ msgstr "" "X-Domain: 1984-dk-woo" #. The %1$s and %2$s indicate an opening and closing tag. -#: views/admin.php:746 +#: views/admin.php:750 #, php-format msgid "" "%1$sError:%2$s Please check if all the information was entered correctly and " @@ -29,7 +29,7 @@ msgid "15 Day Payment Deadline (D15)" msgstr "" #. Name of the plugin -#: views/admin.php:21 +#: views/admin.php:25 msgid "1984 Connector for DK and WooCommerce" msgstr "" @@ -58,13 +58,13 @@ msgid "" msgstr "" #. The %s stands for the kennitala. -#: src/Hooks/Admin.php:501 +#: src/Hooks/Admin.php:495 #, php-format msgid "A custmer record with the kennitala ‘%s’ was not found in DK." msgstr "" #. The %s stands for the kennitala. -#: src/Hooks/Admin.php:489 +#: src/Hooks/Admin.php:483 #, php-format msgid "A customer record with the kennitala ‘%s’ was found in DK." msgstr "" @@ -74,13 +74,13 @@ msgid "A or B Giro Request (ABG)" msgstr "" #. The %s stands for the relevant sales person number. -#: src/Hooks/Admin.php:430 +#: src/Hooks/Admin.php:424 #, php-format msgid "A sales person with the number ‘%s’ was found in DK." msgstr "" #. The %s stands for the relevant sales person number. -#: src/Hooks/Admin.php:442 +#: src/Hooks/Admin.php:436 #, php-format msgid "A sales person with the number ‘%s’ was not found in DK." msgstr "" @@ -125,12 +125,12 @@ msgid "" "needs to be created manually in DK." msgstr "" -#: views/admin.php:38 +#: views/admin.php:42 msgid "API Key" msgstr "" #. The %1$s is the product's original currency code and %2$s is the shop's currency. -#: views/product_options_pricing_partial.php:21 +#: views/product_options_pricing_partial.php:25 #, php-format msgid "" "As the product price is converted from ‘%1$s’ or is set manually to ‘%2$s’ " @@ -139,7 +139,7 @@ msgid "" "be overwritten on sync. You can change the price and currency in DK." msgstr "" -#: views/admin.php:24 +#: views/admin.php:28 msgid "Authentication" msgstr "" @@ -167,27 +167,27 @@ msgstr "" msgid "Cheque Payment (TGR)" msgstr "" -#: src/Hooks/Admin.php:280 src/Hooks/Admin.php:281 +#: src/Hooks/Admin.php:266 src/Hooks/Admin.php:267 msgid "Connector for DK" msgstr "" -#: src/Hooks/Admin.php:203 +#: src/Hooks/Admin.php:184 msgid "Convert to Product Variant" msgstr "" -#: views/admin.php:561 +#: views/admin.php:565 msgid "Cost SKU" msgstr "" -#: views/admin.php:509 +#: views/admin.php:513 msgid "Create a credit invoice when an order is labelled as refunded" msgstr "" -#: views/admin.php:397 +#: views/admin.php:401 msgid "Create Invoices Automatically for Orders With a Kennitala" msgstr "" -#: views/admin.php:425 +#: views/admin.php:429 msgid "Create Invoices Automatically for Orders Without a Kennitala" msgstr "" @@ -203,53 +203,53 @@ msgstr "" msgid "Current Month + 20 Days (M20)" msgstr "" -#: views/admin.php:603 +#: views/admin.php:607 msgid "Customers" msgstr "" -#: views/admin.php:481 +#: views/admin.php:485 msgid "Customers Need to Request to have a Kennitala on Invoices" msgstr "" -#: views/admin.php:336 +#: views/admin.php:340 msgid "Default Customer Kennitala" msgstr "" -#: views/admin.php:581 +#: views/admin.php:585 msgid "Default Sales Person Number" msgstr "" -#: views/admin.php:158 +#: views/admin.php:162 msgid "Delete Inactive Products from WooCommerce" msgstr "" -#: views/admin.php:189 +#: views/admin.php:193 msgid "Display the Attribute Label Description from DK" msgstr "" -#: views/admin.php:212 +#: views/admin.php:216 msgid "Display the Attribute Value Description from DK" msgstr "" -#: src/Hooks/Admin.php:103 +#: src/Hooks/Admin.php:102 msgid "DK Invoice" msgstr "" -#: views/admin.php:530 +#: views/admin.php:534 msgid "" "DK treats shipping and other costs as line items on invoices. In order for " "them to work, you need to assign a SKU to each of the following services." msgstr "" -#: views/admin.php:377 +#: views/admin.php:381 msgid "Enable Kennitala Field in the Checkout Form" msgstr "" -#: views/admin.php:235 +#: views/admin.php:239 msgid "Enable Product-to-Variation Conversion" msgstr "" -#: src/Hooks/Admin.php:157 +#: src/Hooks/Admin.php:156 msgid "Error" msgstr "" @@ -257,7 +257,7 @@ msgstr "" msgid "Fee" msgstr "" -#: views/admin.php:27 +#: views/admin.php:31 msgid "" "For creating an API key, we recommend creating a separate user with full " "priveleges, not connected to an actual employee in dkPlus and then " @@ -281,27 +281,27 @@ msgstr "" msgid "https://github.com/1984hosting/1984-dk-woo" msgstr "" -#: views/admin.php:517 +#: views/admin.php:521 msgid "" "If enabled, a credit invoice is automatically created when an order is " "labelled as refunded in WooCommerce." msgstr "" -#: views/admin.php:461 +#: views/admin.php:465 msgid "" "If enabled, an email containing the invoice will be sent to the customer " "automatically after checkout. This uses the DK email functionality, so make " "sure that email delivery is configured correctly in DK." msgstr "" -#: views/admin.php:239 +#: views/admin.php:243 msgid "" "If enabled, any product can be converted into a variant of anohter as a bulk " "action. This is a very sharp tool, so only use this one if you know what you " "are doing." msgstr "" -#: views/admin.php:125 +#: views/admin.php:129 msgid "" "If enabled, product names are synced between DK and WooCommerce. Disable " "this if you would like to be able to use separate product names in your " @@ -309,7 +309,7 @@ msgid "" "affecting product descriptions in DK." msgstr "" -#: views/admin.php:89 +#: views/admin.php:93 msgid "" "If enabled, product prices and sales periods are synced by default between " "DK and WooCommerce. This can be overriden on a per-product basis. Prices " @@ -317,7 +317,7 @@ msgid "" "and into WooCommerce." msgstr "" -#: views/admin.php:107 +#: views/admin.php:111 msgid "" "If enabled, product stock status and quantity is synced between DK and " "WooCommerce by default. This can be overridden on a per-product basis. Note " @@ -325,7 +325,7 @@ msgid "" "WooCommerce, but not ‘upstream’ due to limitations in DK." msgstr "" -#: views/admin.php:143 +#: views/admin.php:147 msgid "" "If enabled, products that are not labelled for online sales are imported " "into WooCommerce as drafts. Changing their status to ‘Published’ labels them " @@ -333,45 +333,45 @@ msgid "" "in DK." msgstr "" -#: views/admin.php:161 +#: views/admin.php:165 msgid "" "If enabled, products that have been made inactive in DK are automatically " "deleted from WooCommerce." msgstr "" -#: views/admin.php:193 +#: views/admin.php:197 msgid "" "If enabled, the code for attribute labels will be replaced with the " "attribute description from DK. Disable this if you only need the attribute " "label code." msgstr "" -#: views/admin.php:216 +#: views/admin.php:220 msgid "" "If enabled, the code for attribute values will be replaced with the " "attribute description from DK. Disable this if you only need the attribute " "value code." msgstr "" -#: views/admin.php:489 +#: views/admin.php:493 msgid "" "If this is enabled, a checkbox is added to the checkout form, that the " "customer needs to tick in order to have a kennitala assigned to their " "invoice, or the invoice will be treated like one with out a kennitala." msgstr "" -#: views/admin.php:433 +#: views/admin.php:437 msgid "" "If this is enabled, orders without a kennitala will be assigned the ‘Default " "Customer Kennitala’." msgstr "" -#: views/admin.php:140 +#: views/admin.php:144 msgid "Import New Non-Web Products from DK as Drafts" msgstr "" #. %1$s stands for a opening and %2$s for a closing tag. %3$s and %4$s stand for the opening and closing tags. -#: views/product_options_pricing_partial.php:61 +#: views/product_options_pricing_partial.php:65 #, php-format msgid "" "In order for price sync to work, the %1$sSKU%2$s needs to be set and must " @@ -382,7 +382,7 @@ msgstr "" msgid "Invalid kennitala. A kennitala is a string of 10 numeric characters." msgstr "" -#: views/admin.php:329 +#: views/admin.php:333 msgid "Invoices" msgstr "" @@ -402,49 +402,53 @@ msgstr "" msgid "Kennitala (Optional)" msgstr "" -#: views/admin.php:609 +#: views/admin.php:613 msgid "Ledger Code for Domestic Customers" msgstr "" -#: views/admin.php:624 +#: views/admin.php:628 msgid "Ledger Code for International Customers" msgstr "" -#: views/admin.php:249 +#: views/admin.php:253 msgid "Ledger Codes" msgstr "" -#: views/admin.php:647 +#: views/admin.php:651 msgid "Method ID in DK" msgstr "" -#: views/admin.php:779 +#: views/admin.php:783 msgid "Ninteen-Eighty-Four" msgstr "" -#: views/product_options_advanced_partial.php:29 -#: views/product_options_advanced_partial.php:32 -#: views/product_options_sku_partial.php:27 -#: views/product_options_sku_partial.php:30 -#: views/product_options_pricing_partial.php:46 -#: views/product_options_pricing_partial.php:49 +#: views/product_options_advanced_partial.php:33 +#: views/product_options_advanced_partial.php:36 +#: views/product_options_sku_partial.php:31 +#: views/product_options_sku_partial.php:34 +#: views/product_options_pricing_partial.php:50 +#: views/product_options_pricing_partial.php:53 msgid "No" msgstr "" -#: views/admin.php:641 +#: js/products.js:17 +msgid "Parent ID" +msgstr "" + +#: views/admin.php:645 msgid "Payment Gateways" msgstr "" -#: views/admin.php:648 +#: views/admin.php:652 msgid "Payment Mode in DK" msgstr "" -#: views/admin.php:649 +#: views/admin.php:653 msgid "Payment Terms in DK" msgstr "" #. The %s stands for the kennitala. -#: src/Hooks/Admin.php:477 +#: src/Hooks/Admin.php:471 #, php-format msgid "" "Please make sure that a customer record with the kennitala ‘%s’ exsists in " @@ -452,7 +456,7 @@ msgid "" msgstr "" #. The %s stands for the relevant SKU. -#: src/Hooks/Admin.php:357 +#: src/Hooks/Admin.php:351 #, php-format msgid "" "Please make sure that a product with the Product Code ‘%s’ exsists in DK " @@ -460,14 +464,14 @@ msgid "" msgstr "" #. The %s stands for the relevant sales person number. -#: src/Hooks/Admin.php:418 +#: src/Hooks/Admin.php:412 #, php-format msgid "" "Please make sure that a sales person with the number ‘%s’ exsists in DK " "before saving." msgstr "" -#: views/admin.php:642 +#: views/admin.php:646 msgid "" "Please select the payment method name for each payment gateway as it appears " "in DK as well as the payment mode:" @@ -477,27 +481,27 @@ msgstr "" msgid "Postal COD (POST)" msgstr "" -#: views/admin.php:71 +#: views/admin.php:75 msgid "Product Sync Defaults" msgstr "" -#: views/admin.php:70 +#: views/admin.php:74 msgid "Products" msgstr "" -#: views/admin.php:298 +#: views/admin.php:302 msgid "Products With Reduced Tax Rate" msgstr "" -#: views/admin.php:269 +#: views/admin.php:273 msgid "Products with Standard tax rate" msgstr "" -#: views/admin.php:263 +#: views/admin.php:267 msgid "Purchase" msgstr "" -#: views/admin.php:285 views/admin.php:313 +#: views/admin.php:289 views/admin.php:317 msgid "Purchase Booking Category" msgstr "" @@ -509,23 +513,23 @@ msgstr "" msgid "Request an Invoice with Kennitala (optional)" msgstr "" -#: views/admin.php:262 +#: views/admin.php:266 msgid "Sale" msgstr "" -#: views/admin.php:273 views/admin.php:302 +#: views/admin.php:277 views/admin.php:306 msgid "Sale Booking Category" msgstr "" -#: views/admin.php:762 +#: views/admin.php:766 msgid "Save" msgstr "" -#: views/admin.php:453 +#: views/admin.php:457 msgid "Send Invoices Automatically via Email" msgstr "" -#: views/admin.php:527 +#: views/admin.php:531 msgid "Service SKUs" msgstr "" @@ -533,36 +537,36 @@ msgstr "" msgid "Shipping" msgstr "" -#: views/admin.php:541 +#: views/admin.php:545 msgid "Shipping SKU" msgstr "" -#: views/product_options_sku_partial.php:45 -#: views/product_options_pricing_partial.php:66 +#: views/product_options_sku_partial.php:49 +#: views/product_options_pricing_partial.php:70 msgid "stock keeping unit" msgstr "" -#: views/product_options_sku_partial.php:21 +#: views/product_options_sku_partial.php:25 msgid "Sync Inventory with DK" msgstr "" -#: views/product_options_advanced_partial.php:23 +#: views/product_options_advanced_partial.php:27 msgid "Sync Name with DK" msgstr "" -#: views/product_options_pricing_partial.php:40 +#: views/product_options_pricing_partial.php:44 msgid "Sync Price with DK" msgstr "" -#: views/admin.php:122 +#: views/admin.php:126 msgid "Sync Product Names with DK" msgstr "" -#: views/admin.php:86 +#: views/admin.php:90 msgid "Sync Product Prices" msgstr "" -#: views/admin.php:104 +#: views/admin.php:108 msgid "Sync Stock Status and Quantity from DK" msgstr "" @@ -573,7 +577,7 @@ msgid "" msgstr "" #. %1$s stands for a opening and %2$s for a closing tag. %3$s stands for a opening and %4$s for a closing tag. -#: views/product_options_sku_partial.php:40 +#: views/product_options_sku_partial.php:44 #, php-format msgid "" "The %1$sSKU%2$s needs to be set to a unique value and must equal the " @@ -584,7 +588,7 @@ msgid "" "from DK." msgstr "" -#: views/admin.php:772 +#: views/admin.php:776 msgid "" "The 1984 Connector for DK and WooCommerce is developed, maintained and " "supported on goodwill basis by 1984 Hosting as free software without any " @@ -592,7 +596,7 @@ msgid "" "hugbúnaður ehf." msgstr "" -#: views/admin.php:57 +#: views/admin.php:61 msgid "" "The API key is provided by DK for use with the DK API. Do not share this key " "with anyone." @@ -610,7 +614,7 @@ msgstr "" msgid "The currency rate for ‘%s’ has not been set." msgstr "" -#: views/admin.php:357 +#: views/admin.php:361 msgid "" "The default kennitala is used for guest customers that don't have or supply " "a kennitala during checkout. This should correspond with a DK customer " @@ -622,30 +626,30 @@ msgid "The DK API key is missing." msgstr "" #. The %s stands for the relevant SKU. -#: src/Hooks/Admin.php:369 +#: src/Hooks/Admin.php:363 #, php-format msgid "The Item Code ‘%s’ was found in DK." msgstr "" #. The %s stands for the relevant SKU. -#: src/Hooks/Admin.php:381 +#: src/Hooks/Admin.php:375 #, php-format msgid "The Item Code ‘%s’ was not found in DK." msgstr "" #. %1$s stands for the opening and %2$s tag in a hyperlink to the WooCommerce Payment Settings page. -#: views/admin.php:732 +#: views/admin.php:736 #, php-format msgid "" "The payment gateways themselves are handled by your WooCommerce Settings, " "under %1$sthe Payments Section%2$s." msgstr "" -#: views/admin.php:53 +#: views/admin.php:57 msgid "This is a required field" msgstr "" -#: views/admin.php:72 +#: views/admin.php:76 msgid "" "This is where you set the default options for syncing your WooCommerce " "products. For example, if you do not want to overwrite the prices or names " @@ -659,48 +663,48 @@ msgid "Unable to create an invoice in DK: " msgstr "" #. %1$s is the current yes/no value. -#: views/product_options_advanced_partial.php:28 -#: views/product_options_sku_partial.php:26 -#: views/product_options_pricing_partial.php:45 +#: views/product_options_advanced_partial.php:32 +#: views/product_options_sku_partial.php:30 +#: views/product_options_pricing_partial.php:49 #, php-format msgid "Use Default (Currently ‘%1$s’)" msgstr "" -#: views/admin.php:52 +#: views/admin.php:56 msgid "Valid" msgstr "" -#: views/admin.php:167 +#: views/admin.php:171 msgid "Variations and Attributes" msgstr "" -#: views/admin.php:405 +#: views/admin.php:409 msgid "" "When a customer requests to have a kennitala assigned to an invoice, a " "customer record is created in DK if it does not already exist, using the " "billing information supplied for the order." msgstr "" -#: views/admin.php:252 +#: views/admin.php:256 msgid "" "When a product is created and published in WooCommerce, a corrsponding " "product record is created in DK. Setting the values below correctly makes " "sure that this happens without discrepancies or errors." msgstr "" -#: views/admin.php:170 +#: views/admin.php:174 msgid "" "While the variation and attribute codes from DK are used internally, their " "values can be displayed as the descriptions that are set for each of them in " "DK. Here you can also enable the product conversion feature." msgstr "" -#: views/product_options_advanced_partial.php:29 -#: views/product_options_advanced_partial.php:31 -#: views/product_options_sku_partial.php:27 -#: views/product_options_sku_partial.php:29 -#: views/product_options_pricing_partial.php:46 -#: views/product_options_pricing_partial.php:48 +#: views/product_options_advanced_partial.php:33 +#: views/product_options_advanced_partial.php:35 +#: views/product_options_sku_partial.php:31 +#: views/product_options_sku_partial.php:33 +#: views/product_options_pricing_partial.php:50 +#: views/product_options_pricing_partial.php:52 msgid "Yes" msgstr "" diff --git a/src/Hooks/Admin.php b/src/Hooks/Admin.php index 8f7b00a..a976926 100644 --- a/src/Hooks/Admin.php +++ b/src/Hooks/Admin.php @@ -11,7 +11,6 @@ use NineteenEightyFour\NineteenEightyWoo\Helpers\Product as ProductHelper; use stdClass; use WC_Order; -use WP_Screen; /** * The NineteenEightyWoo Admin class @@ -41,7 +40,7 @@ public function __construct() { ); add_action( - 'current_screen', + 'admin_init', array( __CLASS__, 'enqueue_products_styles_and_scripts' ), 10 ); @@ -163,26 +162,8 @@ public static function dk_invoice_column( /** * Enqueue the styles and scripts for the products screen - * - * @param WP_Screen $current_screen The current screen. In our case it - * should be the `edit-product` screen. */ - public static function enqueue_products_styles_and_scripts( - WP_Screen $current_screen - ): void { - if ( - current_user_can( 'edit_others_posts' ) && - $current_screen->id === 'edit-product' - ) { - - wp_enqueue_script( - 'nineteen-eighty-woo', - plugins_url( 'js/products.js', dirname( __DIR__ ) ), - array( 'wp-api', 'wp-data' ), - self::ASSET_VERSION, - false, - ); - } + public static function enqueue_products_styles_and_scripts(): void { } /** @@ -311,12 +292,26 @@ public static function enqueue_styles_and_scripts(): void { ); wp_enqueue_script( - 'nineteen-eighty-woo', + 'nineteen-eighty-woo-admin', plugins_url( 'js/admin.js', dirname( __DIR__ ) ), array( 'wp-api', 'wp-data' ), self::ASSET_VERSION, false, ); + + wp_enqueue_script( + 'nineteen-eighty-woo-products', + plugins_url( 'js/products.js', dirname( __DIR__ ) ), + array( 'wp-api', 'wp-data', 'wp-i18n' ), + self::ASSET_VERSION, + false, + ); + + wp_set_script_translations( + 'nineteen-eighty-woo-products', + '1984-dk-woo', + dirname( plugin_dir_path( __FILE__ ), 2 ) . '/languages' + ); } /** diff --git a/style/products.css b/style/products.css index ff3e8b7..6dfe97b 100644 --- a/style/products.css +++ b/style/products.css @@ -1,3 +1,3 @@ input#action_post_id_input { - width: 7em; + width: 9em; }