[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.9.7-910-g5cab30c

Shawn Moore sartak at bestpractical.com
Thu Dec 16 18:29:48 EST 2010


The branch, 3.9-trunk has been updated
       via  5cab30c2a0517e372822d79e3b90187fb39bb800 (commit)
       via  e1a938592865d89933d144973446954246c3bec6 (commit)
      from  cd6a5acee358e8929a8dd1dfc78599777b23a536 (commit)

Summary of changes:
 bin/rt-crontool.in    |    2 +-
 lib/RT/CurrentUser.pm |    4 +---
 lib/RT/Record.pm      |    2 +-
 3 files changed, 3 insertions(+), 5 deletions(-)

- Log -----------------------------------------------------------------
commit e1a938592865d89933d144973446954246c3bec6
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Thu Dec 16 18:29:32 2010 -0500

    Remove some more newlines in loc strings

diff --git a/bin/rt-crontool.in b/bin/rt-crontool.in
index bc7c7f1..8cb2aeb 100755
--- a/bin/rt-crontool.in
+++ b/bin/rt-crontool.in
@@ -120,7 +120,7 @@ my $CurrentUser = GetCurrentUser();
 help() if $help;
 
 unless ( $CurrentUser->Id ) {
-    print loc("No RT user found. Please consult your RT administrator.\n");
+    print loc("No RT user found. Please consult your RT administrator.");
     exit(1);
 }
 
diff --git a/lib/RT/Record.pm b/lib/RT/Record.pm
index 5fc8f42..9a57087 100755
--- a/lib/RT/Record.pm
+++ b/lib/RT/Record.pm
@@ -940,7 +940,7 @@ sub _UpdateAttributes {
 
                                    "[_1] could not be set to [_2].",       # loc
                                    "That is already the current value",    # loc
-                                   "No value sent to _Set!\n",             # loc
+                                   "No value sent to _Set!",               # loc
                                    "Illegal value for [_1]",               # loc
                                    "The new value has been set.",          # loc
                                    "No column specified",                  # loc

commit 5cab30c2a0517e372822d79e3b90187fb39bb800
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Thu Dec 16 18:29:39 2010 -0500

    Don't localize a log message (and remove its newline)

diff --git a/lib/RT/CurrentUser.pm b/lib/RT/CurrentUser.pm
index aa5f48f..abb99eb 100755
--- a/lib/RT/CurrentUser.pm
+++ b/lib/RT/CurrentUser.pm
@@ -160,9 +160,7 @@ sub UserObj {
 
     my $user = RT::User->new( $self );
     unless ( $user->LoadById( $self->Id ) ) {
-        $RT::Logger->error(
-            $self->loc("Couldn't load [_1] from the users database.\n", $self->Id)
-        );
+        $RT::Logger->error("Couldn't load " . $self->Id . " from the users database.");
     }
     return $user;
 }

-----------------------------------------------------------------------


More information about the Rt-commit mailing list