From b6bab1723a4ab54c2958659b534ee76f51a58046 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 5 Nov 2007 16:15:04 +0000 Subject: [PATCH] internationalize the warning in the Operation/User.pm for not displaying users when there are more than 250 of them --- lib/WebGUI/Operation/User.pm | 2 +- lib/WebGUI/i18n/English/WebGUI.pm | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/Operation/User.pm b/lib/WebGUI/Operation/User.pm index fe0d80148..f1ea9736f 100644 --- a/lib/WebGUI/Operation/User.pm +++ b/lib/WebGUI/Operation/User.pm @@ -638,7 +638,7 @@ sub www_listUsers { my $output = getUserSearchForm($session,"listUsers"); my ($userCount) = $session->db->quickArray("select count(*) from users"); if($userCount > 250) { - $output .= "

There are over 250 users. Please use the search to find users.

\n"; + $output .= $i18n->get('high user count'); } return _submenu($session,{workarea => $output}) unless ($session->form->process("doit") || $userCount<250 || $session->form->process("pn") > 1); diff --git a/lib/WebGUI/i18n/English/WebGUI.pm b/lib/WebGUI/i18n/English/WebGUI.pm index 3c8f4aa8d..534656097 100644 --- a/lib/WebGUI/i18n/English/WebGUI.pm +++ b/lib/WebGUI/i18n/English/WebGUI.pm @@ -3910,6 +3910,11 @@ LongTruncOk=1

lastUpdated => 1193196211, }, + 'high user count' => { + message => q{

There are over 250 users. Please use the search to find users.

}, + lastUpdated => 1193196211, + }, + }; 1;