From acc7e7abd6df53e918b3a4ac05a722ae8b5ea4c8 Mon Sep 17 00:00:00 2001
From: Aleisha <aleishaamohia@hotmail.com>
Date: Wed, 13 Jan 2016 23:44:58 +0000
Subject: [PATCH] Bug 15403: Tidy up error messages in Staff lists

To test:
1) Create a list on the intranet, observe the message
2) Create another list with the same name, observe the message
3) Delete a list, observe the message
4) Check the patch itself for typos

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
---
 .../prog/en/modules/virtualshelves/shelves.tt        | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt
index b0bdabc..73cc02a 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt
@@ -322,19 +322,19 @@ function placeHold () {
     <div class="dialog [% m.type %]">
         [% SWITCH m.code %]
         [% CASE 'error_on_update' %]
-            <span>An error occurred when updating this list. Perhaps the value already exists.</span>
+            <span>An error occurred when updating this list.</span>
         [% CASE 'error_on_insert' %]
-            <span>An error occurred when inserting this list. Perhaps the name already exists.</span>
+            <span>An error occurred when creating this list./span>
         [% CASE 'error_on_delete' %]
-            <span>An error occurred when deleting this list. Check the logs.</span>
+            <span>An error occurred when deleting this list.</span>
         [% CASE 'error_on_add_biblio' %]
-           <span>The item has not been added to the list. Please check it's not in this list yet.</span>
+           <span>The item has not been added to the list. Please check it's not already in the list.</span>
         [% CASE 'success_on_update' %]
-            <span>List updated with success.</span>
+            <span>List updated.</span>
         [% CASE 'success_on_insert' %]
-            <span>List inserted with success.</span>
+            <span>List created.</span>
         [% CASE 'success_on_delete' %]
-            <span>List deleted with success.</span>
+            <span>List deleted.</span>
         [% CASE 'success_on_add_biblio' %]
             <span>The item has been added to the list.</span>
         [% CASE 'success_on_remove_biblios' %]
@@ -350,11 +350,11 @@ function placeHold () {
         [% CASE 'unauthorized_on_delete' %]
            <span>You do not have permission to delete this list.</span>
         [% CASE 'unauthorized_on_add_biblio' %]
-            <span>You do not have permission to add a biblio to this list.</span>
+            <span>You do not have permission to add a record to this list.</span>
         [% CASE 'no_biblio_removed' %]
-            <span>No biblio has been removed.</span>
+            <span>No record was removed.</span>
         [% CASE 'Koha::Exceptions::Virtualshelves::DuplicateObject' %]
-            <span>An error occurred when inserting this list. The name [% shelfname %] already exists.</span>
+            <span>An error occurred when creating this list. The name [% shelfname %] already exists.</span>
         [% CASE 'Koha::Exceptions::Virtualshelves::UseDbAdminAccount' %]
             <span>List could not be created. (Do not use the database administrator account.)</span>
         [% CASE 'DBIx::Class::Exception' %]
-- 
2.1.4