diff options
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/browse/msgcat.cgi | 4 | ||||
-rwxr-xr-x | httemplate/edit/msgcat.cgi | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/httemplate/browse/msgcat.cgi b/httemplate/browse/msgcat.cgi index f71fadb9f..30c16a701 100755 --- a/httemplate/browse/msgcat.cgi +++ b/httemplate/browse/msgcat.cgi @@ -10,7 +10,7 @@ die "access denied" my $widget = new HTML::Widgets::SelectLayers( 'selected_layer' => 'en_US', - 'options' => { 'en_US'=>'en_US' }, + 'options' => { 'en_US'=>'en_US', 'iw_IL' => 'iw_IL', }, 'layer_callback' => sub { my $layer = shift; my $html = "<BR>".emt("Messages for locale [_1]",$layer)."<BR>". table(). @@ -28,7 +28,7 @@ my $widget = new HTML::Widgets::SelectLayers( 'locale' => 'en_US', 'msgcode' => $msgcat->msgcode, } ); - $html .= '<TD>'. $en_msgcat->msg. '</TD>'; + $html .= '<TD>'. $en_msgcat->msg. '</TD>' if $en_msgcat; } $html .= '</TR>'; } diff --git a/httemplate/edit/msgcat.cgi b/httemplate/edit/msgcat.cgi index 84eaa495f..a96969f2b 100755 --- a/httemplate/edit/msgcat.cgi +++ b/httemplate/edit/msgcat.cgi @@ -15,7 +15,7 @@ die "access denied" my $widget = new HTML::Widgets::SelectLayers( 'selected_layer' => 'en_US', - 'options' => { 'en_US'=>'en_US' }, + 'options' => { 'en_US'=>'en_US', 'iw_IL' => 'iw_IL', }, 'form_action' => 'process/msgcat.cgi', 'layer_callback' => sub { my $layer = shift; @@ -39,7 +39,7 @@ my $widget = new HTML::Widgets::SelectLayers( 'locale' => 'en_US', 'msgcode' => $msgcat->msgcode, } ); - $html .= '<TD>'. $en_msgcat->msg. '</TD>'; + $html .= '<TD>'. $en_msgcat->msg. '</TD>' if $en_msgcat; } $html .= '</TR>'; } |