Browse files

Fix Shortcut Icon Language Titles

Signed-off-by: Gergely <t-gely@freemail.hu>
  • Loading branch information...
1 parent eb4bdbe commit 875aa333d9c3c80e6647bf05f9d22c624911a1b4 @tgely committed Aug 4, 2010
View
2 osCommerce/OM/Core/Site/Admin/languages/en_US.php
@@ -12,6 +12,8 @@
header_title_online_catalog = Online Catalog
header_title_languages = Languages
header_title_logoff = Logoff
+header_icon_shortcut_remove = Remove Actual Page Shortcut
+header_icon_shortcut_add = Add Actual Page Shortcut
ssl_protection = You are protected by a secure SSL connection.
ssl_unprotected = You are not protected by a secure SSL connection.
View
4 osCommerce/OM/Core/Site/Admin/templates/oscom/header.php
@@ -59,9 +59,9 @@
if ( $OSCOM_Application->canLinkTo() ) {
if ( Access::isShortcut(OSCOM::getSiteApplication()) ) {
- echo ' <li class="shortcuts">' . osc_link_object(OSCOM::getLink(null, 'Index', 'RemoveShortcut&shortcut=' . OSCOM::getSiteApplication()), osc_icon('shortcut_remove.png')) . '</li>';
+ echo ' <li class="shortcuts">' . osc_link_object(OSCOM::getLink(null, 'Index', 'RemoveShortcut&shortcut=' . OSCOM::getSiteApplication()), osc_icon('shortcut_remove.png', OSCOM::getDef('header_icon_shortcut_remove'))) . '</li>';
} else {
- echo ' <li class="shortcuts">' . osc_link_object(OSCOM::getLink(null, 'Index', 'AddShortcut&shortcut=' . OSCOM::getSiteApplication()), osc_icon('shortcut_add.png')) . '</li>';
+ echo ' <li class="shortcuts">' . osc_link_object(OSCOM::getLink(null, 'Index', 'AddShortcut&shortcut=' . OSCOM::getSiteApplication()), osc_icon('shortcut_add.png', OSCOM::getDef('header_icon_shortcut_add'))) . '</li>';
}
}

1 comment on commit 875aa33

@haraldpdl

These should be changed again to match bodi000's commit:

http://github.com/osCommerce/oscommerce/commit/7057c4f9376d6439e00f5d6d54eef5aa6f23dc61

osc_icon() automatically uses icon_(icon name) for the icon title. A definition for icon_shortcut_remove would be great! :-)

Please sign in to comment.