From 5a9331f058b97c842d1082f38a3a83f6a5e4261b Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 21 Sep 2005 04:11:43 +0000 Subject: [PATCH] r392: Localization --- editcomment.php | 2 +- editreport.php | 6 +++--- login.php | 8 ++++---- newreport.php | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/editcomment.php b/editcomment.php index cfea039..a0726d2 100644 --- a/editcomment.php +++ b/editcomment.php @@ -58,7 +58,7 @@ if ($_POST['do'] == 'update') { if (!$bugsys->in['comment']) { - $message->error(lang::r('you need to enter some text')); + $message->error(lang::p('error_no_comment_text')); } $bugsys->in['comment_parsed'] = $bugsys->in['comment']; diff --git a/editreport.php b/editreport.php index e0cbc64..bb9a6b6 100644 --- a/editreport.php +++ b/editreport.php @@ -33,7 +33,7 @@ if (!(((can_perform('caneditown') AND $bugsys->userinfo['userid'] == $comment['u if (!$bug) { - $message->error('alert: bad bug'); + $message->error(lang::p('error_invalid_id')); } if ($bug['hidden'] AND !can_perform('canviewhidden')) @@ -108,7 +108,7 @@ if ($_POST['do'] == 'update') if (!(((can_perform('caneditown') AND $bugsys->userinfo['userid'] == $comment['userid']) OR can_perform('caneditothers')) AND can_perform('caneditinfo'))) { - $message->redirect('inserted comment', "showreport.php?bugid=$bug[bugid]"); + $message->redirect(lang::p('comment_added'), "showreport.php?bugid=$bug[bugid]"); } // ------------------------------------------------------------------- @@ -117,7 +117,7 @@ if ($_POST['do'] == 'update') if (!$bugsys->in['summary']) { - $message->error(lang::r('you need to enter a summary')); + $message->error(lang::p('error_need_summary')); } if (!$pcv) { diff --git a/login.php b/login.php index 325c001..6760a07 100755 --- a/login.php +++ b/login.php @@ -75,10 +75,10 @@ if ($_POST['do'] == 'login' OR $_POST['do'] == 'cplogin') $funct->cookie(COOKIE_PREFIX . 'authkey'); } - $message->error(lang::r('Invalid email or password.')); + $message->error(lang::p('inavlid_email_pass')); } - $message->redirect(lang::r('You are now logged in :-)'), $url); + $message->redirect(lang::p('login_redirect'), $url); } // ################################################################### @@ -90,7 +90,7 @@ if ($_REQUEST['do'] == 'logout') $funct->cookie(COOKIE_PREFIX . 'userid'); $funct->cookie(COOKIE_PREFIX . 'authkey'); $funct->cookie(COOKIE_PREFIX . 'adminsession'); - $message->redirect('logged out', 'index.php'); + $message->redirect(lang::p('logged_out'), 'index.php'); } else { @@ -105,7 +105,7 @@ if ($_REQUEST['do'] == 'cplogout') if ($_COOKIE[COOKIE_PREFIX . 'adminsession']) { $funct->cookie(COOKIE_PREFIX . 'adminsession'); - $message->redirect(lang::r('logged out'), 'admin/'); + $message->redirect(lang::p('logged_out'), 'admin/'); } else { diff --git a/newreport.php b/newreport.php index 7389900..e6d4cbc 100755 --- a/newreport.php +++ b/newreport.php @@ -91,7 +91,7 @@ if ($_POST['do'] == 'insert') } if (!$bugsys->in['comment']) { - $message->error(lang::r('please enter a bug description')); + $message->error(lang::p('error_enter_bug_description')); } // ------------------------------------------------------------------- -- 2.43.5