i18n the New Column and Value entries. Fixes #10817.
This commit is contained in:
parent
491e06bf7d
commit
9442227ce8
3 changed files with 17 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
7.7.19
|
7.7.19
|
||||||
|
- fixed #10817: Datatable not internationalized
|
||||||
- fixed #10816: Minor Capitalization Issue
|
- fixed #10816: Minor Capitalization Issue
|
||||||
- fixed #10814: matrix translations
|
- fixed #10814: matrix translations
|
||||||
- fixed Survey reporting of simple/transported results to csv/tab
|
- fixed Survey reporting of simple/transported results to csv/tab
|
||||||
|
|
|
||||||
|
|
@ -181,14 +181,15 @@ sub getDefaultValue {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $value = $self->SUPER::getDefaultValue(@_);
|
my $value = $self->SUPER::getDefaultValue(@_);
|
||||||
|
|
||||||
|
my $i18n = WebGUI::International->new($self->session, 'Form_DataTable');
|
||||||
if ( !$value ) {
|
if ( !$value ) {
|
||||||
$value = JSON->new->encode( {
|
$value = JSON->new->encode( {
|
||||||
columns => [ {
|
columns => [ {
|
||||||
key => "New Column",
|
key => $i18n->get('New Column'),
|
||||||
formatter => "text",
|
formatter => "text",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
rows => [ { "New Column" => "Value", }, ],
|
rows => [ { $i18n->get('New Column') => $i18n->get("Value"), }, ],
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -139,6 +139,19 @@ our $I18N = {
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
context => q{Button to delete a column, shown in the Edit Schema dialog},
|
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;
|
1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue