Skip to content

Commit

Permalink
ADD: translations for icons
Browse files Browse the repository at this point in the history
  • Loading branch information
allrude committed Dec 29, 2024
1 parent 77244db commit ae11fc8
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 42 deletions.
24 changes: 12 additions & 12 deletions Block/Adminhtml/Form/Field/IconOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ public function _toHtml(): string
private function getSourceOptions(): array
{
return [
[ 'label' => 'Check', 'value' => 'check' ],
[ 'label' => 'Shipping', 'value' => 'shipping' ],
[ 'label' => 'Clock', 'value' => 'clock' ],
[ 'label' => 'Percent', 'value' => 'percent' ],
[ 'label' => 'Messages', 'value' => 'messages' ],
[ 'label' => 'Cart', 'value' => 'cart' ],
[ 'label' => 'Package', 'value' => 'package' ],
[ 'label' => 'Return', 'value' => 'return' ],
[ 'label' => 'Bell', 'value' => 'bell' ],
[ 'label' => 'Headset', 'value' => 'headset' ],
[ 'label' => 'Shield', 'value' => 'shield' ],
[ 'label' => 'Custom', 'value' => 'custom' ]
[ 'label' => __('Check'), 'value' => 'check' ],
[ 'label' => __('Shipping'), 'value' => 'shipping' ],
[ 'label' => __('Clock'), 'value' => 'clock' ],
[ 'label' => __('Percent'), 'value' => 'percent' ],
[ 'label' => __('Messages'), 'value' => 'messages' ],
[ 'label' => __('Cart'), 'value' => 'cart' ],
[ 'label' => __('Package'), 'value' => 'package' ],
[ 'label' => __('Return'), 'value' => 'return' ],
[ 'label' => __('Bell'), 'value' => 'bell' ],
[ 'label' => __('Headset'), 'value' => 'headset' ],
[ 'label' => __('Shield'), 'value' => 'shield' ],
[ 'label' => __('Custom'), 'value' => 'custom' ]
];
}
}
10 changes: 5 additions & 5 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<resource>Magento_Backend::store</resource>

<group id="header" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Header</label>
<label>Header Usps</label>
<field id="usps" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1"
showInStore="1" canRestore="1">
<label>Usps</label>
Expand All @@ -25,7 +25,7 @@
</group>

<group id="footer" translate="label" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Footer</label>
<label>Footer Usps</label>
<field id="usps" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1"
showInStore="1" canRestore="1">
<label>Usps</label>
Expand All @@ -36,7 +36,7 @@

<group id="product" translate="label" sortOrder="30" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Product Page</label>
<label>Product Usps</label>
<field id="usps" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1"
showInStore="1" canRestore="1">
<label>Usps</label>
Expand All @@ -47,7 +47,7 @@

<group id="custom_1" translate="label" sortOrder="40" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Custom 1</label>
<label>Custom Usps 1</label>
<field id="usps" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1"
showInStore="1" canRestore="1">
<label>Usps</label>
Expand All @@ -58,7 +58,7 @@

<group id="custom_2" translate="label" sortOrder="41" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Custom 2</label>
<label>Custom Usps 2</label>
<field id="usps" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1"
showInStore="1" canRestore="1">
<label>Usps</label>
Expand Down
23 changes: 18 additions & 5 deletions i18n/de_DE.csv
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
"Add","Hinzufügen"
"Bell","Glocke"
"Cart","Warenkorb"
"Check","Prüfen"
"Clock","Uhr"
"Content","Inhalt"
"Custom 1","Benutzerdefiniert 1"
"Custom 2","Benutzerdefiniert 2"
"Footer","Fußzeile"
"Header","Kopfzeile"
"Custom Usps 1","Benutzerdefiniert 1"
"Custom Usps 2","Benutzerdefiniert 2"
"Custom","Benutzerdefiniert"
"Footer Usps","Fußzeile Usps"
"Header Usps","Kopfzeile Usps"
"Headset","Kopfhörer"
"Messages","Nachrichten"
"Our Unique Selling Points","Unsere Alleinstellungsmerkmale"
"Product Page","Produktseite"
"Package","Paket"
"Percent","Prozent"
"Product Usps","Produkt Usps"
"Return","Rückgabe"
"Shield","Sicherheit"
"Shipping","Versand"
"Siteation","Siteation"
"Store Usps","Geschäft Usps"
"Usps","Usps"
"Icon","Ikone"
23 changes: 18 additions & 5 deletions i18n/en_GB.csv
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
"Add","Add"
"Bell","Bell"
"Cart","Cart"
"Check","Check"
"Clock","Clock"
"Content","Content"
"Custom 1","Custom 1"
"Custom 2","Custom 2"
"Footer","Footer"
"Header","Header"
"Custom Usps 1","Custom Usps 1"
"Custom Usps 2","Custom Usps 2"
"Custom","Custom"
"Footer Usps","Footer Usps"
"Header Usps","Header Usps"
"Headset","Headset"
"Messages","Messages"
"Our Unique Selling Points","Our Unique Selling Points"
"Product Page","Product Page"
"Package","Package"
"Percent","Percent"
"Product Usps","Product Usps"
"Return","Return"
"Shield","Shield"
"Shipping","Shipping"
"Siteation","Siteation"
"Store Usps","Store Usps"
"Usps","Usps"
"Icon","Icon"
23 changes: 18 additions & 5 deletions i18n/en_US.csv
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
"Add","Add"
"Bell","Bell"
"Cart","Cart"
"Check","Check"
"Clock","Clock"
"Content","Content"
"Custom 1","Custom 1"
"Custom 2","Custom 2"
"Footer","Footer"
"Header","Header"
"Custom Usps 1","Custom Usps 1"
"Custom Usps 2","Custom Usps 2"
"Custom","Custom"
"Footer Usps","Footer Usps"
"Header Usps","Header Usps"
"Headset","Headset"
"Messages","Messages"
"Our Unique Selling Points","Our Unique Selling Points"
"Product Page","Product Page"
"Package","Package"
"Percent","Percent"
"Product Usps","Product Usps"
"Return","Return"
"Shield","Shield"
"Shipping","Shipping"
"Siteation","Siteation"
"Store Usps","Store Usps"
"Usps","Usps"
"Icon","Icon"
23 changes: 18 additions & 5 deletions i18n/nl_BE.csv
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
"Add","Toevoegen"
"Bell","Bel"
"Cart","Winkelwagen"
"Check","Check"
"Clock","Klok"
"Content","Inhoud"
"Custom 1","Aangepast 1"
"Custom 2","Aangepast 2"
"Footer","Voettekst"
"Header","Koptekst"
"Custom Usps 1","Aangepaste Usps 1"
"Custom Usps 2","Aangepaste Usps 2"
"Custom","Aangepast"
"Footer Usps","Footer Usps"
"Header Usps","Header Usps"
"Headset","Headset"
"Messages","Berichten"
"Our Unique Selling Points","Onze Unieke Verkooppunten"
"Product Page","Productpagina"
"Package","Pakket"
"Percent","Procent"
"Product Usps","Product Usps"
"Return","Retour"
"Shield","Veiligheid"
"Shipping","Verzending"
"Siteation","Siteation"
"Store Usps","Winkel Usps"
"Usps","Usps"
"Icon","Icoon"
23 changes: 18 additions & 5 deletions i18n/nl_NL.csv
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
"Add","Toevoegen"
"Bell","Bel"
"Cart","Winkelwagen"
"Check","Check"
"Clock","Klok"
"Content","Inhoud"
"Custom 1","Aangepast 1"
"Custom 2","Aangepast 2"
"Footer","Voettekst"
"Header","Koptekst"
"Custom Usps 1","Aangepaste Usps 1"
"Custom Usps 2","Aangepaste Usps 2"
"Custom","Aangepast"
"Footer Usps","Footer Usps"
"Header Usps","Header Usps"
"Headset","Headset"
"Messages","Berichten"
"Our Unique Selling Points","Onze Unieke Verkooppunten"
"Product Page","Productpagina"
"Package","Pakket"
"Percent","Procent"
"Product Usps","Product Usps"
"Return","Retour"
"Shield","Veiligheid"
"Shipping","Verzending"
"Siteation","Siteation"
"Store Usps","Winkel Usps"
"Usps","Usps"
"Icon","Icoon"

0 comments on commit ae11fc8

Please sign in to comment.