From 64870c54d317b6a3b5704cbf447cf8625717784e Mon Sep 17 00:00:00 2001 From: Brian Teeman Date: Wed, 22 Jul 2015 12:41:52 +0100 Subject: [PATCH] update strings AND new/edit --- .../admin/language/en-GB/en-GB.com_weblinks.ini | 6 ++++-- src/com_weblinks/admin/views/weblink/view.html.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/com_weblinks/admin/language/en-GB/en-GB.com_weblinks.ini b/src/com_weblinks/admin/language/en-GB/en-GB.com_weblinks.ini index 59c5239..1606b03 100644 --- a/src/com_weblinks/admin/language/en-GB/en-GB.com_weblinks.ini +++ b/src/com_weblinks/admin/language/en-GB/en-GB.com_weblinks.ini @@ -85,8 +85,10 @@ COM_WEBLINKS_FLOAT_LABEL="Image Float" COM_WEBLINKS_HITS_DESC="Number of hits for this web link." COM_WEBLINKS_LEFT="Left" COM_WEBLINKS_LIST_LAYOUT_DESC="These settings apply for Web Links List Layout Options unless they are changed for a specific menu item." -COM_WEBLINKS_MANAGER_WEBLINK="Web Links Manager: Web Link" -COM_WEBLINKS_MANAGER_WEBLINKS="Web Links Manager: Web Links" +COM_WEBLINKS_MANAGER_WEBLINK="Web Links" +COM_WEBLINKS_MANAGER_WEBLINKS="Web Links" +COM_WEBLINKS_MANAGER_WEBLINK_EDIT="Web Link: Edit" +COM_WEBLINKS_MANAGER_WEBLINK_NEW="Web Link: New" COM_WEBLINKS_N_ITEMS_ARCHIVED="%d web links successfully archived." COM_WEBLINKS_N_ITEMS_ARCHIVED_1="%d web link successfully archived." COM_WEBLINKS_N_ITEMS_CHECKED_IN_0="No web link successfully checked in." diff --git a/src/com_weblinks/admin/views/weblink/view.html.php b/src/com_weblinks/admin/views/weblink/view.html.php index 7cf8a59..0d330ab 100644 --- a/src/com_weblinks/admin/views/weblink/view.html.php +++ b/src/com_weblinks/admin/views/weblink/view.html.php @@ -58,7 +58,7 @@ class WeblinksViewWeblink extends JViewLegacy // Since we don't track these assets at the item level, use the category id. $canDo = JHelperContent::getActions('com_weblinks', 'category', $this->item->catid); - JToolbarHelper::title(JText::_('COM_WEBLINKS_MANAGER_WEBLINK'), 'link weblinks'); + JToolbarHelper::title($isNew ? JText::_('COM_WEBLINKS_MANAGER_WEBLINK_NEW') : JText::_('COM_WEBLINKS_MANAGER_WEBLINK_EDIT'), 'link weblinks'); // If not checked out, can save the item. if (!$checkedOut && ($canDo->get('core.edit')||(count($user->getAuthorisedCategories('com_weblinks', 'core.create')))))