[freeside-commits] freeside/httemplate/browse msgcat.cgi,1.6,1.7
Erik Levinson
levinse at wavetail.420.am
Sun May 22 14:48:34 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv22746/browse
Modified Files:
msgcat.cgi
Log Message:
internationalization/localization, RT12515
Index: msgcat.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/msgcat.cgi,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -w -d -r1.6 -r1.7
--- msgcat.cgi 30 Jan 2007 20:59:13 -0000 1.6
+++ msgcat.cgi 22 May 2011 21:48:32 -0000 1.7
@@ -1,8 +1,8 @@
-<% include('/elements/header.html', "View Message catalog", menubar(
- 'Edit message catalog' => $p. "edit/msgcat.cgi",
-)) %>
+<& /elements/header.html, emt("View Message catalog"), menubar(
+ emt('Edit message catalog') => $p. "edit/msgcat.cgi",
+) &>
<% $widget->html %>
-<% include('/elements/footer.html') %>
+<& /elements/footer.html &>
<%init>
die "access denied"
@@ -13,14 +13,12 @@
'options' => { 'en_US'=>'en_US' },
'layer_callback' => sub {
my $layer = shift;
- my $html = "<BR>Messages for locale $layer<BR>". table().
- "<TR><TH COLSPAN=2>Code</TH>".
- "<TH>Message</TH>";
+ my $html = "<BR>".emt("Messages for locale [_1]",$layer)."<BR>". table().
+ "<TR><TH COLSPAN=2>".emt('Code')."</TH>".
+ "<TH>".emt('Message')."</TH>";
$html .= "<TH>en_US Message</TH>" unless $layer eq 'en_US';
$html .= '</TR>';
- #foreach my $msgcat ( sort { $a->msgcode cmp $b->msgcode }
- # qsearch('msgcat', { 'locale' => $layer } ) ) {
foreach my $msgcat ( qsearch('msgcat', { 'locale' => $layer } ) ) {
$html .= '<TR><TD>'. $msgcat->msgnum. '</TD>'.
'<TD>'. $msgcat->msgcode. '</TD>'.
More information about the freeside-commits
mailing list