[Rt-commit] rt branch, 4.0/misc-localization-fixes, created. rt-4.0.11-40-ga28cf0c

Alex Vandiver alexmv at bestpractical.com
Fri Apr 12 15:51:20 EDT 2013


The branch, 4.0/misc-localization-fixes has been created
        at  a28cf0cfc0f739b61b8dbc99339e5af1cc2f9903 (commit)

- Log -----------------------------------------------------------------
commit a28cf0cfc0f739b61b8dbc99339e5af1cc2f9903
Author: Emmanuel Lacour <elacour at easter-eggs.com>
Date:   Thu Mar 14 18:02:51 2013 +0100

    Localize "dashboard" word in result of a dashboard creation

diff --git a/lib/RT/Dashboard.pm b/lib/RT/Dashboard.pm
index 80a68be..349864e 100644
--- a/lib/RT/Dashboard.pm
+++ b/lib/RT/Dashboard.pm
@@ -109,7 +109,7 @@ An object of this class is called "dashboard"
 
 =cut
 
-sub ObjectName { "dashboard" }
+sub ObjectName { "dashboard" } # loc
 
 sub SaveAttribute {
     my $self   = shift;
diff --git a/lib/RT/SavedSearch.pm b/lib/RT/SavedSearch.pm
index af67167..7c4df8b 100644
--- a/lib/RT/SavedSearch.pm
+++ b/lib/RT/SavedSearch.pm
@@ -77,7 +77,7 @@ An object of this class is called "search"
 
 =cut
 
-sub ObjectName { "search" }
+sub ObjectName { "search" } # loc
 
 sub PostLoad {
     my $self = shift;
diff --git a/lib/RT/SharedSetting.pm b/lib/RT/SharedSetting.pm
index 6dd21cb..3467167 100644
--- a/lib/RT/SharedSetting.pm
+++ b/lib/RT/SharedSetting.pm
@@ -210,11 +210,11 @@ sub Save {
         $self->{'Attribute'} = $object->Attributes->WithId($att_id);
         $self->{'Id'}        = $att_id;
         $self->{'Privacy'}   = $privacy;
-        return ( 1, $self->loc( "Saved [_1] [_2]", $self->ObjectName, $name ) );
+        return ( 1, $self->loc( "Saved [_1] [_2]", $self->loc( $self->ObjectName ), $name ) );
     }
     else {
         $RT::Logger->error($self->ObjectName . " save failure: $att_msg");
-        return ( 0, $self->loc("Failed to create [_1] attribute", $self->ObjectName) );
+        return ( 0, $self->loc("Failed to create [_1] attribute", $self->loc( $self->ObjectName ) ) );
     }
 }
 

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


More information about the Rt-commit mailing list