Skip to content

Commit f6342fd

Browse files
committed
add translation for options
1 parent cdc22cb commit f6342fd

5 files changed

Lines changed: 73 additions & 36 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [2.6.0] - 2025-??-??
8+
9+
### NEW
10+
11+
- PayPal-Buttons are configurable
712

813
## [2.5.3] - 2025-04-04
914

metadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
'en' => 'Use of the online payment service from PayPal. Documentation: <a href="https://docs.oxid-esales.com/modules/paypal-checkout/en/latest/" target="_blank">PayPal Checkout</a>'
6262
],
6363
'thumbnail' => 'out/img/paypal.png',
64-
'version' => '2.5.3',
64+
'version' => '2.6.0-rc.1',
6565
'author' => 'OXID eSales AG',
6666
'url' => 'https://www.oxid-esales.com',
6767
'email' => 'info@oxid-esales.com',

views/admin/de/admin_lang.php

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,30 @@
4545
'HELP_OSC_PAYPAL_BUTTON_PLACEMEMT' => 'Schalten Sie die Anzeige der PayPal-Schaltflächen um',
4646
'OSC_SHOW_PAYPAL_PAYLATER_BUTTON' => '"Später Bezahlen"-Button anzeigen?',
4747
'HELP_OSC_SHOW_PAYPAL_PAYLATER_BUTTON' => 'Neben den klassischen PayPal-Button gibt es ein "Später Bezahlen"-Button, der unter dem Standardbutton angezeigt werden kann. Ist der aktiviert, bekommt der Kunde direkt die Möglichkeit, die Ware später zu zahlen.',
48-
"OSC_PAYPAL_STYLE_BUTTON_TITLE" => "Anpassung der Schaltflächen",
49-
"OSC_PAYPAL_STYLE_BUTTON_LAYOUT" => "Layout",
50-
"OSC_PAYPAL_STYLE_BUTTON_LAYOUT_HELP" => "Festlegen, wie die Schaltflächen angezeigt werden, wenn mehrere Schaltflächen verfügbar sind",
51-
"OSC_PAYPAL_STYLE_BUTTON_COLOR" => "Farbe",
52-
"OSC_PAYPAL_STYLE_BUTTON_COLOR_HELP" => "",
53-
"OSC_PAYPAL_STYLE_BUTTON_SHAPE" => "Form",
54-
"OSC_PAYPAL_STYLE_BUTTON_SHAPE_HELP" => "",
55-
"OSC_PAYPAL_STYLE_BUTTON_LABEL" => "Etikett",
56-
"OSC_PAYPAL_STYLE_BUTTON_LABEL_HELP" => "",
48+
"OSC_PAYPAL_STYLE_BUTTON_TITLE" => "Anpassung der Schaltflächen",
49+
"OSC_PAYPAL_STYLE_BUTTON_LAYOUT" => "Layout",
50+
"OSC_PAYPAL_STYLE_BUTTON_LAYOUT_HORIZONTAL" => "Horizontal",
51+
"OSC_PAYPAL_STYLE_BUTTON_LAYOUT_VERTICAL" => "Vertikal",
52+
"OSC_PAYPAL_STYLE_BUTTON_LAYOUT_HELP" => "Festlegen, wie die Schaltflächen angezeigt werden, wenn mehrere Schaltflächen verfügbar sind",
53+
"OSC_PAYPAL_STYLE_BUTTON_COLOR" => "Farbe",
54+
"OSC_PAYPAL_STYLE_BUTTON_COLOR_GOLD" => "Gold",
55+
"OSC_PAYPAL_STYLE_BUTTON_COLOR_BLUE" => "Blau",
56+
"OSC_PAYPAL_STYLE_BUTTON_COLOR_SILVER" => "Silber",
57+
"OSC_PAYPAL_STYLE_BUTTON_COLOR_WHITE" => "Weiß",
58+
"OSC_PAYPAL_STYLE_BUTTON_COLOR_BLACK" => "Schwarz",
59+
"OSC_PAYPAL_STYLE_BUTTON_COLOR_HELP" => "",
60+
"OSC_PAYPAL_STYLE_BUTTON_SHAPE" => "Form",
61+
"OSC_PAYPAL_STYLE_BUTTON_SHAPE_RECT" => "Rechteckig",
62+
"OSC_PAYPAL_STYLE_BUTTON_SHAPE_SHARP" => "Scharfkantig",
63+
"OSC_PAYPAL_STYLE_BUTTON_SHAPE_PILL" => "Rund",
64+
"OSC_PAYPAL_STYLE_BUTTON_SHAPE_HELP" => "",
65+
"OSC_PAYPAL_STYLE_BUTTON_LABEL" => "Etikett",
66+
"OSC_PAYPAL_STYLE_BUTTON_LABEL_PAYPAL" => "Paypal",
67+
"OSC_PAYPAL_STYLE_BUTTON_LABEL_CHECKOUT" => "Direkt zu PayPal",
68+
"OSC_PAYPAL_STYLE_BUTTON_LABEL_BUYNOW" => "PayPal jetzt kaufen",
69+
"OSC_PAYPAL_STYLE_BUTTON_LABEL_PAY" => "Mit PayPal zahlen",
70+
"OSC_PAYPAL_STYLE_BUTTON_LABEL_INSTALLMENT" => "Installment",
71+
"OSC_PAYPAL_STYLE_BUTTON_LABEL_HELP" => "",
5772

5873
'OSC_PAYPAL_EXPRESS_LOGIN_TITLE' => 'Login mit PayPal',
5974
'OSC_PAYPAL_LOGIN_WITH_PAYPAL_EMAIL' => 'Im Shop beim Kauf automatisch einloggen',

views/admin/en/admin_lang.php

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,30 @@
4545
'HELP_OSC_PAYPAL_BUTTON_PLACEMEMT' => 'Toggle the display of PayPal buttons',
4646
'OSC_SHOW_PAYPAL_PAYLATER_BUTTON' => 'Show "Pay later"-Button?',
4747
'HELP_OSC_SHOW_PAYPAL_PAYLATER_BUTTON' => 'In addition to the classic PayPal button, there is a "Pay later"-button that can be displayed below the standard button. If it is activated, the customer has the option of paying for the goods later.',
48-
"OSC_PAYPAL_STYLE_BUTTON_TITLE" => "Buttons Customization",
49-
"OSC_PAYPAL_STYLE_BUTTON_LAYOUT" => "Layout",
50-
"OSC_PAYPAL_STYLE_BUTTON_LAYOUT_HELP" => "Determine how the buttons show up when multiple buttons are available",
51-
"OSC_PAYPAL_STYLE_BUTTON_COLOR" => "Color",
52-
"OSC_PAYPAL_STYLE_BUTTON_COLOR_HELP" => "",
53-
"OSC_PAYPAL_STYLE_BUTTON_SHAPE" => "Shape",
54-
"OSC_PAYPAL_STYLE_BUTTON_SHAPE_HELP" => "",
55-
"OSC_PAYPAL_STYLE_BUTTON_LABEL" => "Label",
56-
"OSC_PAYPAL_STYLE_BUTTON_LABEL_HELP" => "",
48+
"OSC_PAYPAL_STYLE_BUTTON_TITLE" => "Buttons Customization",
49+
"OSC_PAYPAL_STYLE_BUTTON_LAYOUT" => "Layout",
50+
"OSC_PAYPAL_STYLE_BUTTON_LAYOUT_HORIZONTAL" => "Horizontal",
51+
"OSC_PAYPAL_STYLE_BUTTON_LAYOUT_VERTICAL" => "Vertical",
52+
"OSC_PAYPAL_STYLE_BUTTON_LAYOUT_HELP" => "Determine how the buttons show up when multiple buttons are available",
53+
"OSC_PAYPAL_STYLE_BUTTON_COLOR" => "Color",
54+
"OSC_PAYPAL_STYLE_BUTTON_COLOR_GOLD" => "Gold",
55+
"OSC_PAYPAL_STYLE_BUTTON_COLOR_BLUE" => "Blue",
56+
"OSC_PAYPAL_STYLE_BUTTON_COLOR_SILVER" => "Silver",
57+
"OSC_PAYPAL_STYLE_BUTTON_COLOR_WHITE" => "White",
58+
"OSC_PAYPAL_STYLE_BUTTON_COLOR_BLACK" => "Black",
59+
"OSC_PAYPAL_STYLE_BUTTON_COLOR_HELP" => "",
60+
"OSC_PAYPAL_STYLE_BUTTON_SHAPE" => "Shape",
61+
"OSC_PAYPAL_STYLE_BUTTON_SHAPE_RECT" => "Rect",
62+
"OSC_PAYPAL_STYLE_BUTTON_SHAPE_SHARP" => "Sharp",
63+
"OSC_PAYPAL_STYLE_BUTTON_SHAPE_PILL" => "Pill",
64+
"OSC_PAYPAL_STYLE_BUTTON_SHAPE_HELP" => "",
65+
"OSC_PAYPAL_STYLE_BUTTON_LABEL" => "Label",
66+
"OSC_PAYPAL_STYLE_BUTTON_LABEL_PAYPAL" => "Paypal",
67+
"OSC_PAYPAL_STYLE_BUTTON_LABEL_CHECKOUT" => "Checkout",
68+
"OSC_PAYPAL_STYLE_BUTTON_LABEL_BUYNOW" => "Buy now",
69+
"OSC_PAYPAL_STYLE_BUTTON_LABEL_PAY" => "Pay",
70+
"OSC_PAYPAL_STYLE_BUTTON_LABEL_INSTALLMENT" => "Installment",
71+
"OSC_PAYPAL_STYLE_BUTTON_LABEL_HELP" => "",
5772

5873
'OSC_PAYPAL_EXPRESS_LOGIN_TITLE' => 'Login with PayPal',
5974
'OSC_PAYPAL_LOGIN_WITH_PAYPAL_EMAIL' => 'Automatically log in to shop during checkout',

views/admin/tpl/oscpaypalconfig.tpl

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -232,23 +232,23 @@
232232
</div>
233233

234234
<div class="card">
235-
<div class="card-header" id="heading5">
235+
<div class="card-header" id="heading10">
236236
<h4 class="collapsed" data-toggle="collapse" data-target="#collapse_button_style" aria-expanded="false" aria-controls="collapse_button_style">
237237
[{oxmultilang ident="OSC_PAYPAL_STYLE_BUTTON_TITLE"}]
238238
</h4>
239239
</div>
240240

241-
<div id="collapse_button_style" class="collapse" aria-labelledby="heading5" data-parent="#accordion">
241+
<div id="collapse_button_style" class="collapse" aria-labelledby="heading10" data-parent="#accordion">
242242
<div class="card-body">
243243
<div class="form-group">
244244
<label for="style-button-layout">[{oxmultilang ident="OSC_PAYPAL_STYLE_BUTTON_LAYOUT"}]</label>
245245
<div class="controls">
246246
<select name="conf[oscPayPalButtonStyleLayout]" id="style-button-layout" class="form-control">
247247
<option value="horizontal" [{if $config->getPayPalButtonStyleLayout() == 'horizontal'}]selected[{/if}]>
248-
horizontal
248+
[{oxmultilang ident="OSC_PAYPAL_STYLE_BUTTON_LAYOUT_HORIZONTAL"}]
249249
</option>
250250
<option value="vertical" [{if $config->getPayPalButtonStyleLayout() == 'vertical'}]selected[{/if}]>
251-
vertical
251+
[{oxmultilang ident="OSC_PAYPAL_STYLE_BUTTON_LAYOUT_VERTICAL"}]
252252
</option>
253253
</select>
254254
</div>
@@ -259,19 +259,19 @@
259259
<div class="controls">
260260
<select name="conf[oscPayPalButtonStyleColor]" id="style-button-color" class="form-control">
261261
<option value="gold" [{if $config->getPayPalButtonStyleColor() == 'gold'}]selected[{/if}]>
262-
gold
262+
[{oxmultilang ident="OSC_PAYPAL_STYLE_BUTTON_COLOR_GOLD"}]
263263
</option>
264264
<option value="blue" [{if $config->getPayPalButtonStyleColor() == 'blue'}]selected[{/if}]>
265-
blue
265+
[{oxmultilang ident="OSC_PAYPAL_STYLE_BUTTON_COLOR_BLUE"}]
266266
</option>
267267
<option value="silver" [{if $config->getPayPalButtonStyleColor() == 'silver'}]selected[{/if}]>
268-
silver
268+
[{oxmultilang ident="OSC_PAYPAL_STYLE_BUTTON_COLOR_SILVER"}]
269269
</option>
270270
<option value="white" [{if $config->getPayPalButtonStyleColor() == 'white'}]selected[{/if}]>
271-
white
271+
[{oxmultilang ident="OSC_PAYPAL_STYLE_BUTTON_COLOR_WHITE"}]
272272
</option>
273273
<option value="black" [{if $config->getPayPalButtonStyleColor() == 'black'}]selected[{/if}]>
274-
black
274+
[{oxmultilang ident="OSC_PAYPAL_STYLE_BUTTON_COLOR_BLACK"}]
275275
</option>
276276
</select>
277277
</div>
@@ -282,13 +282,13 @@
282282
<div class="controls">
283283
<select name="conf[oscPayPalButtonStyleShape]" id="style-button-shape" class="form-control">
284284
<option value="rect" [{if $config->getPayPalButtonStyleShape() == 'rect'}]selected[{/if}]>
285-
rect
285+
[{oxmultilang ident="OSC_PAYPAL_STYLE_BUTTON_SHAPE_RECT"}]
286286
</option>
287287
<option value="sharp" [{if $config->getPayPalButtonStyleShape() == 'sharp'}]selected[{/if}]>
288-
sharp
288+
[{oxmultilang ident="OSC_PAYPAL_STYLE_BUTTON_SHAPE_SHARP"}]
289289
</option>
290290
<option value="pill" [{if $config->getPayPalButtonStyleShape() == 'pill'}]selected[{/if}]>
291-
pill
291+
[{oxmultilang ident="OSC_PAYPAL_STYLE_BUTTON_SHAPE_PILL"}]
292292
</option>
293293
</select>
294294
</div>
@@ -299,20 +299,22 @@
299299
<div class="controls">
300300
<select name="conf[oscPayPalButtonStyleLabel]" id="style-button-label" class="form-control">
301301
<option value="paypal" [{if $config->getPayPalButtonStyleLabel() == 'paypal'}]selected[{/if}]>
302-
paypal
302+
[{oxmultilang ident="OSC_PAYPAL_STYLE_BUTTON_LABEL_PAYPAL"}]
303303
</option>
304304
<option value="checkout" [{if $config->getPayPalButtonStyleLabel() == 'checkout'}]selected[{/if}]>
305-
checkout
305+
[{oxmultilang ident="OSC_PAYPAL_STYLE_BUTTON_LABEL_CHECKOUT"}]
306306
</option>
307307
<option value="buynow" [{if $config->getPayPalButtonStyleLabel() == 'buynow'}]selected[{/if}]>
308-
buynow
308+
[{oxmultilang ident="OSC_PAYPAL_STYLE_BUTTON_LABEL_BUYNOW"}]
309309
</option>
310310
<option value="pay" [{if $config->getPayPalButtonStyleLabel() == 'pay'}]selected[{/if}]>
311-
pay
311+
[{oxmultilang ident="OSC_PAYPAL_STYLE_BUTTON_LABEL_PAY"}]
312312
</option>
313+
[{*
313314
<option value="installment" [{if $config->getPayPalButtonStyleLabel() == 'installment'}]selected[{/if}]>
314-
installment
315+
[{oxmultilang ident="OSC_PAYPAL_STYLE_BUTTON_LABEL_INSTALLMENT"}]
315316
</option>
317+
*}]
316318
</select>
317319

318320
</div>

0 commit comments

Comments
 (0)