[Rt-commit] r16925 - in rt/3.8/trunk/share/html/Admin/Tools/Shredder: Elements Elements/Error Elements/Object
ruz at bestpractical.com
ruz at bestpractical.com
Wed Nov 19 04:34:19 EST 2008
Author: ruz
Date: Wed Nov 19 04:34:18 2008
New Revision: 16925
Modified:
rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/DumpFileLink
rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/Error/NoRights
rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/Error/NoStorage
rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/Object/RT--Attachment
rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/Object/RT--Ticket
rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/Object/RT--User
rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/PluginArguments
rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/SelectObjects
rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/SelectPlugin
rt/3.8/trunk/share/html/Admin/Tools/Shredder/index.html
Log:
* add more translations to Shredder's pages
Modified: rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/DumpFileLink
==============================================================================
--- rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/DumpFileLink (original)
+++ rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/DumpFileLink Wed Nov 19 04:34:18 2008
@@ -46,7 +46,7 @@
%#
%# END BPS TAGGED BLOCK }}}
<div id="shredder-dump-file-link" class="shredder-help">
-<a href="<% RT->Config->Get('WebPath') %>/Admin/Tools/Shredder/Dumps/<% $File %>">Download dumpfile</a>
+<a href="<% RT->Config->Get('WebPath') %>/Admin/Tools/Shredder/Dumps/<% $File %>"><% loc('Download dumpfile') %></a>
</div>
<%ARGS>
$File => ''
Modified: rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/Error/NoRights
==============================================================================
--- rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/Error/NoRights (original)
+++ rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/Error/NoRights Wed Nov 19 04:34:18 2008
@@ -51,7 +51,5 @@
current_subtab => 'Admin/Tools/Shredder',
Title => 'Error',
&>
-<div class="error">
-You don't have <b>SuperUser</b> right.
-</div>
+<div class="error"><% loc("You don't have <b>SuperUser</b> right.") %></div>
Modified: rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/Error/NoStorage
==============================================================================
--- rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/Error/NoStorage (original)
+++ rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/Error/NoStorage Wed Nov 19 04:34:18 2008
@@ -55,7 +55,5 @@
Title => 'Error',
&>
<div class="error">
-RT::Shredder needs a directory to write dumps to.
-Please check that you have <span class="file-path"><% $Path %></span> and
-it is writable by your web server.
+<% loc("Shredder needs a directory to write dumps to. Please check that you have <span class="file-path">[_1]</span> and it is writable by your web server.", $Path ) %>
</div>
Modified: rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/Object/RT--Attachment
==============================================================================
--- rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/Object/RT--Attachment (original)
+++ rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/Object/RT--Attachment Wed Nov 19 04:34:18 2008
@@ -49,5 +49,5 @@
$Object => undef
</%ARGS>
<a href="<% RT->Config->Get('WebURL') %>/Ticket/Attachment/<% $Object->TransactionId %>/<% $Object->id %>/">
-Attachment(id:<% $Object->id %>, FileName: <% $Object->Filename || '(no value)' %>)
+<% loc('Attachment') %>(<% loc('id') %>:<% $Object->id %>, <% loc('FileName') %>: <% $Object->Filename || loc('(no value)') %>)
</a>
Modified: rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/Object/RT--Ticket
==============================================================================
--- rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/Object/RT--Ticket (original)
+++ rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/Object/RT--Ticket Wed Nov 19 04:34:18 2008
@@ -49,5 +49,5 @@
$Object => undef
</%ARGS>
<a href="<% RT->Config->Get('WebURL') %>/Ticket/Display.html?id=<% $Object->id %>">
-Ticket(id:<% $Object->id %>, Subject: <% substr($Object->Subject, 0, 30) %>...)
+<% loc('Ticket') %>(<% loc('id') %>:<% $Object->id %>, <% loc('Subject') %>: <% substr($Object->Subject, 0, 30) %>...)
</a>
Modified: rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/Object/RT--User
==============================================================================
--- rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/Object/RT--User (original)
+++ rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/Object/RT--User Wed Nov 19 04:34:18 2008
@@ -49,5 +49,5 @@
$Object => undef
</%ARGS>
<a href="<% RT->Config->Get('WebURL') %>/Admin/Users/Modify.html?id=<% $Object->id %>">
-User(id:<% $Object->id %>, Name: <% $Object->Name %>)
+<% loc('User') %>(<% loc('id') %>:<% $Object->id %>, <% loc('Name') %>: <% $Object->Name %>)
</a>
Modified: rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/PluginArguments
==============================================================================
--- rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/PluginArguments (original)
+++ rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/PluginArguments Wed Nov 19 04:34:18 2008
@@ -49,9 +49,9 @@
$Plugin => ''
</%ARGS>
<div id="shredder-plugin-<% $Plugin %>-arguments" class="shredder-form">
-<span>Fill arguments:</span><br />
+<span><% loc('Fill arguments') %>:</span><br />
% foreach my $a( $plugin_obj->SupportArgs ) {
-<span><% $a %>:</span><input type="text" name="<% "$Plugin:$a" %>" value="<% $ARGS{ "$Plugin:$a" } || '' %>" /><br />
+<span><% loc($a) %>:</span><input type="text" name="<% "$Plugin:$a" %>" value="<% $ARGS{ "$Plugin:$a" } || '' %>" /><br />
% }
</div>
<%INIT>
Modified: rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/SelectObjects
==============================================================================
--- rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/SelectObjects (original)
+++ rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/SelectObjects Wed Nov 19 04:34:18 2008
@@ -50,11 +50,11 @@
</%ARGS>
<div id="shredder-plugin-results">
% unless( @Objects ) {
-<& /Elements/ListActions, actions => ["Objects list is empty"] &>
+<& /Elements/ListActions, actions => [loc("Objects list is empty")] &>
% } else {
<div class="shredder-form">
<input id="shredder-select-all-objects-checkbox" type="checkbox" name="SelectAllObjects" onclick="checkAllObjects()" />
-<span>click to check/uncheck all objects at once</span>
+<span><% loc("click to check/uncheck all objects at once") %></span>
<hr />
% foreach my $o( @Objects ) {
<& ObjectCheckBox, Object => $o &>
Modified: rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/SelectPlugin
==============================================================================
--- rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/SelectPlugin (original)
+++ rt/3.8/trunk/share/html/Admin/Tools/Shredder/Elements/SelectPlugin Wed Nov 19 04:34:18 2008
@@ -52,9 +52,9 @@
<div class="shredder-form">
<span>Select plugin: </span>
<select name="Plugin" onchange="showShredderPluginTab(this.value);">
-<option value="">(no value)</option>
+<option value=""><% loc('(no value)') %></option>
% foreach my $p( keys %plugins ) {
-<option value="<% $p %>" <% ($p eq $Plugin)? 'selected="selected"': '' %>><% $p %></option>
+<option value="<% $p %>" <% ($p eq $Plugin)? 'selected="selected"': '' %>><% loc($p) %></option>
% }
</select>
</div>
Modified: rt/3.8/trunk/share/html/Admin/Tools/Shredder/index.html
==============================================================================
--- rt/3.8/trunk/share/html/Admin/Tools/Shredder/index.html (original)
+++ rt/3.8/trunk/share/html/Admin/Tools/Shredder/index.html Wed Nov 19 04:34:18 2008
@@ -158,7 +158,7 @@
eval { $shredder->WipeoutAll };
$catch_non_fatals->() && last if $@;
- push @{ $messages{Success} }, 'objects were successfuly removed';
+ push @{ $messages{Success} }, loc('objects were successfuly removed');
} }
if( $Plugin && ( $Search || $Wipeout ) ) { { # use additional block({}) to effectively exit block on errors
@@ -170,7 +170,7 @@
$Search = ''; @objs = ();
last;
}
- push @{ $messages{Success} }, 'executed plugin successfuly';
+ push @{ $messages{Success} }, loc('executed plugin successfuly');
my $shredder = new RT::Shredder;
foreach my $o( grep defined, splice @objs ) {
@@ -178,9 +178,9 @@
$catch_non_fatals->() && last if $@;
}
unless( @objs ) {
- push @{ $messages{Success} }, 'plugin returned empty list';
+ push @{ $messages{Success} }, loc('plugin returned empty list');
} else {
- push @{ $messages{Success} }, 'see object list below';
+ push @{ $messages{Success} }, loc('see object list below');
}
} }
</%INIT>
More information about the Rt-commit
mailing list