diff --git a/admin.php b/admin.php index 1bcf8b4..7f7496e 100644 --- a/admin.php +++ b/admin.php @@ -54,11 +54,13 @@ if (isset($_POST['submit'])) $template->delete_compiled_templates(); } +$img_sizes = array_merge(ImageStdParams::get_all_types(), array('Original')); $template->assign($conf['SocialButtons']); $template->assign(array( 'SOCIALBUTT_PATH' => SOCIALBUTT_PATH, - 'img_sizes' => array_merge(ImageStdParams::get_all_types(), array('Original')), + 'img_sizes' => $img_sizes, + 'img_sizes_labels' => array_map('l10n', $img_sizes), )); $template->set_filename('socialbutt_content', realpath(SOCIALBUTT_PATH . 'template/admin.tpl')); diff --git a/language/en_UK/plugin.lang.php b/language/en_UK/plugin.lang.php index cb6260b..dd735ac 100644 --- a/language/en_UK/plugin.lang.php +++ b/language/en_UK/plugin.lang.php @@ -15,4 +15,8 @@ $lang['only on photo'] = 'only on photo'; $lang['Community'] = 'Community'; $lang['Light mode'] = 'Light mode'; $lang['When light mode is activated no external script is loaded, it speeds up the load of the page and disables user tracking but also disables annotations and in-page popups.'] = 'When light mode is activated no external script is loaded, it speeds up the load of the page and disables user tracking but also disables annotations and in-page popups.'; +$lang['Disable'] = 'Disable'; +$lang['Enable'] = 'Enable'; +$lang['Via'] = 'Via'; +$lang['Shared picture size'] = 'Shared picture size'; ?> \ No newline at end of file diff --git a/template/admin.tpl b/template/admin.tpl index fe01434..6651af4 100644 --- a/template/admin.tpl +++ b/template/admin.tpl @@ -78,7 +78,7 @@ jQuery(".showInfo").tipTip({ {'Shared picture size'|translate}