diff --git a/system/modules/sharebuttons/classes/ShareButtons.php b/system/modules/sharebuttons/classes/ShareButtons.php index 9cb8d9b..27af8f3 100644 --- a/system/modules/sharebuttons/classes/ShareButtons.php +++ b/system/modules/sharebuttons/classes/ShareButtons.php @@ -396,6 +396,12 @@ public function getNetworks(DataContainer $dc) unset($networks['pdf']); } + foreach ($networks as $network => &$label) { + if (!empty($GLOBALS['TL_LANG']['sharebuttons']['networks'][$network])) { + $label = $GLOBALS['TL_LANG']['sharebuttons']['networks'][$network]; + } + } + return $networks; } diff --git a/system/modules/sharebuttons/config/config.php b/system/modules/sharebuttons/config/config.php index bab0836..9720e62 100644 --- a/system/modules/sharebuttons/config/config.php +++ b/system/modules/sharebuttons/config/config.php @@ -55,7 +55,7 @@ 'reddit' => 'Reddit', 'whatsapp' => 'WhatsApp', 'print' => 'Print', - 'pdf' => 'Pdf' + 'pdf' => 'PDF' ); $GLOBALS['sharebuttons']['themes'] = array( diff --git a/system/modules/sharebuttons/languages/de/default.php b/system/modules/sharebuttons/languages/de/default.php index 902e59b..89c0d11 100644 --- a/system/modules/sharebuttons/languages/de/default.php +++ b/system/modules/sharebuttons/languages/de/default.php @@ -42,5 +42,5 @@ $GLOBALS['TL_LANG']['CTE']['sharebuttons'] = array('Share buttons', 'Buttons zum teilen von Seitenlinks auf sozialen Netzwerken.'); $GLOBALS['TL_LANG']['FMD']['sharebuttons'] = $GLOBALS['TL_LANG']['CTE']['sharebuttons']; -$GLOBALS['sharebuttons']['networks']['print'] = 'Drucken'; -$GLOBALS['sharebuttons']['networks']['pdf'] = 'PDF erzeugen'; +$GLOBALS['TL_LANG']['sharebuttons']['networks']['print'] = 'Drucken'; +$GLOBALS['TL_LANG']['sharebuttons']['networks']['pdf'] = 'PDF erzeugen'; diff --git a/system/modules/sharebuttons/languages/en/default.php b/system/modules/sharebuttons/languages/en/default.php index 6a97ce0..befdc4b 100644 --- a/system/modules/sharebuttons/languages/en/default.php +++ b/system/modules/sharebuttons/languages/en/default.php @@ -42,4 +42,4 @@ $GLOBALS['TL_LANG']['CTE']['sharebuttons'] = array('Share buttons', 'Social share buttons with optional theme.'); $GLOBALS['TL_LANG']['FMD']['sharebuttons'] = $GLOBALS['TL_LANG']['CTE']['sharebuttons']; -$GLOBALS['sharebuttons']['networks']['pdf'] = 'create PDF'; +$GLOBALS['TL_LANG']['sharebuttons']['networks']['pdf'] = 'create PDF';