i18n the New Column and Value entries. Fixes #10817.

This commit is contained in:
Colin Kuskie 2009-08-24 16:56:46 +00:00
parent 491e06bf7d
commit 9442227ce8
3 changed files with 17 additions and 2 deletions

View file

@ -1,4 +1,5 @@
7.7.19
- fixed #10817: Datatable not internationalized
- fixed #10816: Minor Capitalization Issue
- fixed #10814: matrix translations
- fixed Survey reporting of simple/transported results to csv/tab

View file

@ -181,14 +181,15 @@ sub getDefaultValue {
my $self = shift;
my $value = $self->SUPER::getDefaultValue(@_);
my $i18n = WebGUI::International->new($self->session, 'Form_DataTable');
if ( !$value ) {
$value = JSON->new->encode( {
columns => [ {
key => "New Column",
key => $i18n->get('New Column'),
formatter => "text",
},
],
rows => [ { "New Column" => "Value", }, ],
rows => [ { $i18n->get('New Column') => $i18n->get("Value"), }, ],
}
);
}

View file

@ -139,6 +139,19 @@ our $I18N = {
lastUpdated => 0,
context => q{Button to delete a column, shown in the Edit Schema dialog},
},
"New Column" => {
message => q{New Column},
lastUpdated => 0,
context => q{The name of a newly added column},
},
"Value" => {
message => q{Value},
lastUpdated => 0,
context => q{The name of a newly added value to a column},
},
};
1;