Skip to content

Commit

Permalink
Add translations.
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhj committed Feb 27, 2018
1 parent 17092bc commit 3606ad8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/Resources/contao/dca/tl_module.php
Expand Up @@ -14,7 +14,7 @@
$GLOBALS['TL_DCA']['tl_module']['palettes']['iso_klarna_checkout'] = '{title_legend},name,headline,type;'
.'{config_legend},iso_shipping_modules,nc_notification,klarna_show_subtotal_detail;'
.'{redirect_legend},iso_cart_jumpTo,klarna_terms_page,klarna_checkout_page,klarna_confirmation_page,klarna_cancellation_page;'
.'{colors_legend},klarna_color_button,klarna_color_button_text,klarna_color_checkbox,klarna_color_checkbox_checkmark,klarna_color_header,klarna_color_link;'
.'{customization_legend:hide},klarna_color_button,klarna_color_button_text,klarna_color_checkbox,klarna_color_checkbox_checkmark,klarna_color_header,klarna_color_link;'
.'{template_legend},customTpl;'
.'{protected_legend:hide},protected;'
.'{expert_legend:hide},guests,cssID';
Expand All @@ -30,9 +30,9 @@
'exclude' => true,
'inputType' => 'checkbox',
'eval' => [
'tl_class' => 'w50',
'tl_class' => 'w50 m12',
],
'sql' => "char(11) NOT NULL default ''",
'sql' => "char(1) NOT NULL default ''",
];

$GLOBALS['TL_DCA']['tl_module']['fields']['klarna_terms_page'] = [
Expand Down
34 changes: 24 additions & 10 deletions src/Resources/contao/languages/en/tl_module.php
Expand Up @@ -11,13 +11,27 @@
* @license https://github.com/richardhj/isotope-klarna-checkout/blob/master/LICENSE LGPL-3.0
*/

$GLOBALS['TL_LANG']['tl_module']['klarna_show_subtotal_detail'][0] = 'Show detailed subtotals';
$GLOBALS['TL_LANG']['tl_module']['klarna_show_subtotal_detail'][1] = 'If true, the Order Detail subtotals view is expanded.';
$GLOBALS['TL_LANG']['tl_module']['klarna_terms_page'][0] = 'Terms and Conditions';
$GLOBALS['TL_LANG']['tl_module']['klarna_terms_page'][1] = 'Pick the page containing your shop\'s terms and conditions.';
$GLOBALS['TL_LANG']['tl_module']['klarna_checkout_page'][0] = 'Checkout';
$GLOBALS['TL_LANG']['tl_module']['klarna_checkout_page'][1] = 'Pick the page containing the checkout.';
$GLOBALS['TL_LANG']['tl_module']['klarna_confirmation_page'][0] = 'Confirmation';
$GLOBALS['TL_LANG']['tl_module']['klarna_confirmation_page'][1] = 'Pick the page containing the checkout confirmation that the customer get redirected to after successful order.';
$GLOBALS['TL_LANG']['tl_module']['klarna_cancellation_page'][0] = 'Cancellation';
$GLOBALS['TL_LANG']['tl_module']['klarna_cancellation_page'][1] = 'Pick the page the customer get redirected after cancelling the checkout.';
$GLOBALS['TL_LANG']['tl_module']['customization_legend'] = 'Customization';

$GLOBALS['TL_LANG']['tl_module']['klarna_show_subtotal_detail'][0] = 'Show detailed subtotals';
$GLOBALS['TL_LANG']['tl_module']['klarna_show_subtotal_detail'][1] = 'If true, the Order Detail subtotals view is expanded.';
$GLOBALS['TL_LANG']['tl_module']['klarna_terms_page'][0] = 'Terms and Conditions';
$GLOBALS['TL_LANG']['tl_module']['klarna_terms_page'][1] = 'Pick the page containing your shop\'s terms and conditions.';
$GLOBALS['TL_LANG']['tl_module']['klarna_checkout_page'][0] = 'Checkout';
$GLOBALS['TL_LANG']['tl_module']['klarna_checkout_page'][1] = 'Pick the page containing the checkout.';
$GLOBALS['TL_LANG']['tl_module']['klarna_confirmation_page'][0] = 'Confirmation';
$GLOBALS['TL_LANG']['tl_module']['klarna_confirmation_page'][1] = 'Pick the page containing the checkout confirmation that the customer get redirected to after successful order.';
$GLOBALS['TL_LANG']['tl_module']['klarna_cancellation_page'][0] = 'Cancellation';
$GLOBALS['TL_LANG']['tl_module']['klarna_cancellation_page'][1] = 'Pick the page the customer get redirected after cancelling the checkout.';
$GLOBALS['TL_LANG']['tl_module']['klarna_color_button'][0] = 'Button color';
$GLOBALS['TL_LANG']['tl_module']['klarna_color_button'][1] = 'Define the background color of buttons within the checkout iFrame.';
$GLOBALS['TL_LANG']['tl_module']['klarna_color_button_text'][0] = 'Button text color';
$GLOBALS['TL_LANG']['tl_module']['klarna_color_button_text'][1] = 'Define the text color of buttons within the checkout iFrame.';
$GLOBALS['TL_LANG']['tl_module']['klarna_color_checkbox'][0] = 'Checkbox color';
$GLOBALS['TL_LANG']['tl_module']['klarna_color_checkbox'][1] = 'Define the background color of checkboxes within the checkout iFrame.';
$GLOBALS['TL_LANG']['tl_module']['klarna_color_checkbox_checkmark'][0] = 'Checkbox checkmark color';
$GLOBALS['TL_LANG']['tl_module']['klarna_color_checkbox_checkmark'][1] = 'Define the checkmark color within the checkout iFrame.';
$GLOBALS['TL_LANG']['tl_module']['klarna_color_header'][0] = 'Header color';
$GLOBALS['TL_LANG']['tl_module']['klarna_color_header'][1] = 'Define the color of the header within the checkout iFrame.';
$GLOBALS['TL_LANG']['tl_module']['klarna_color_link'][0] = 'Link color';
$GLOBALS['TL_LANG']['tl_module']['klarna_color_link'][1] = 'Define the color of hyperlinks within the checkout iFrame.';

0 comments on commit 3606ad8

Please sign in to comment.