[Rt-commit] rt branch, admin_ui, updated. be1cb81ce51ec6ba2214e90f278ef0023ee0573b

sunnavy at bestpractical.com sunnavy at bestpractical.com
Mon Dec 14 23:14:43 EST 2009


The branch, admin_ui has been updated
       via  be1cb81ce51ec6ba2214e90f278ef0023ee0573b (commit)
      from  c22c545f47f855e377c30423070f135f49fd9df4 (commit)

Summary of changes:
 lib/RT/View/Admin/Global.pm                        |    3 +++
 .../{SelfService.pm => Admin/Global/Workflows.pm}  |   16 ++++++++++++----
 2 files changed, 15 insertions(+), 4 deletions(-)
 copy lib/RT/View/{SelfService.pm => Admin/Global/Workflows.pm} (74%)

- Log -----------------------------------------------------------------
commit be1cb81ce51ec6ba2214e90f278ef0023ee0573b
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Dec 15 12:08:38 2009 +0800

    add RT/View/Admin/Global/Workflows.pm

diff --git a/lib/RT/View/Admin/Global.pm b/lib/RT/View/Admin/Global.pm
index f2e8dd6..0b25b3d 100644
--- a/lib/RT/View/Admin/Global.pm
+++ b/lib/RT/View/Admin/Global.pm
@@ -54,6 +54,9 @@ use Jifty::View::Declare -base;
 require RT::View::Admin::Global::Templates;
 alias RT::View::Admin::Global::Templates under 'templates/';
 
+require RT::View::Admin::Global::Workflows;
+alias RT::View::Admin::Global::Workflows under 'workflows/';
+
 template 'system' => page { title => _('Configure RT') } content {
     my $self    = shift;
     my $section = get('section');
diff --git a/lib/RT/View/Admin/Global/Workflows.pm b/lib/RT/View/Admin/Global/Workflows.pm
new file mode 100644
index 0000000..71b735d
--- /dev/null
+++ b/lib/RT/View/Admin/Global/Workflows.pm
@@ -0,0 +1,68 @@
+# BEGIN BPS TAGGED BLOCK {{{
+#
+# COPYRIGHT:
+#
+# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC
+#                                          <jesse at bestpractical.com>
+#
+# (Except where explicitly superseded by other copyright notices)
+#
+#
+# LICENSE:
+#
+# This work is made available to you under the terms of Version 2 of
+# the GNU General Public License. A copy of that license should have
+# been provided with this software, but in any event can be snarfed
+# from www.gnu.org.
+#
+# This work is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301 or visit their web page on the internet at
+# http://www.gnu.org/copyleft/gpl.html.
+#
+#
+# CONTRIBUTION SUBMISSION POLICY:
+#
+# (The following paragraph is not intended to limit the rights granted
+# to you to modify and distribute this software under the terms of
+# the GNU General Public License and is only of importance to you if
+# you choose to contribute your changes and enhancements to the
+# community by submitting them to Best Practical Solutions, LLC.)
+#
+# By intentionally submitting any modifications, corrections or
+# derivatives to this work, or any other work intended for use with
+# Request Tracker, to Best Practical Solutions, LLC, you confirm that
+# you are the copyright holder for those contributions and you grant
+# Best Practical Solutions,  LLC a nonexclusive, worldwide, irrevocable,
+# royalty-free, perpetual, license to use, copy, create derivative
+# works based on those contributions, and sublicense and distribute
+# those contributions and any derivatives thereof.
+#
+# END BPS TAGGED BLOCK }}}
+use warnings;
+use strict;
+
+package RT::View::Admin::Global::Workflows;
+use Jifty::View::Declare -base;
+use RT::Workflow;
+
+template 'localization' => page {
+    title => _('Localization of Statuses'),
+} content {
+    outs(_("Status values stored in the DB are limitted to ASCII. To localize values you have to change po-files. Copy text block below, insert it into a local po file for language you want to localize into and translate. If you don't have local po files then you can borrow a header from RT's core po files. Don't change general po files as those are over written on every update."));
+    pre {
+        for my $str ( RT::Workflow->for_localization ) {
+            outs_raw( qq{msgid "$str"\nmsgstr ""\n} );
+        }
+    };
+}
+
+
+1;
+

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


More information about the Rt-commit mailing list