Fix SQL Report i18n for numbered labels.
This commit is contained in:
parent
d6cbcf4604
commit
98af8f2b9b
2 changed files with 69 additions and 27 deletions
|
|
@ -49,127 +49,146 @@ property paginateAfter => (
|
|||
property dbQuery1 => (
|
||||
fieldType => "codearea",
|
||||
default => undef,
|
||||
label => $i18n->get(4) . ' 1',
|
||||
label => [4, 'Asset_SQLReport', 1],
|
||||
hoverHelp => ['4 description', 'Asset_RichEdit'],
|
||||
);
|
||||
property prequeryStatements1 => (
|
||||
fieldType => "codearea",
|
||||
default => undef,
|
||||
label => $i18n->get('Prequery statements') . ' 1',
|
||||
label => ['Prequery statements %s', 'Asset_SQLReport', 1],
|
||||
);
|
||||
property preprocessMacros1 => (
|
||||
fieldType => "yesNo",
|
||||
default => 0,
|
||||
label => $i18n->get(15) . ' 1',
|
||||
label => ['Preprocess macros on query %s?', 'Asset_SQLReport', 1],
|
||||
hoverHelp => ['15 description', 'Asset_RichEdit'],
|
||||
);
|
||||
property placeholderParams1 => (
|
||||
fieldType => "textarea",
|
||||
default => undef,
|
||||
label => $i18n->get('Placeholder Parameters') . ' 1',
|
||||
label => ['Placeholder Parameters %s', 'Asset_SQLReport', 1],
|
||||
hoverHelp => ['Placeholder Parameters description', 'Asset_RichEdit'],
|
||||
);
|
||||
property databaseLinkId1 => (
|
||||
fieldType => "databaseLink",
|
||||
default => 0,
|
||||
label => $i18n->get("1075", 'WebGUI').' 1',
|
||||
label => ['Database Link %s', 'Asset_SQLReport', 1],
|
||||
);
|
||||
property dbQuery2 => (
|
||||
fieldType => "codearea",
|
||||
default => undef,
|
||||
label => $i18n->get(4) . ' 2',
|
||||
label => [4, 'Asset_SQLReport', 2],
|
||||
hoverHelp => ['4 description', 'Asset_RichEdit'],
|
||||
);
|
||||
property prequeryStatements2 => (
|
||||
fieldType => "codearea",
|
||||
default => undef,
|
||||
label => $i18n->get('Prequery statements') . ' 2',
|
||||
label => ['Prequery statements %s', 'Asset_SQLReport', 2],
|
||||
hoverHelp => ['15 description', 'Asset_RichEdit'],
|
||||
);
|
||||
property preprocessMacros2 => (
|
||||
fieldType => "yesNo",
|
||||
default => 0,
|
||||
label => $i18n->get(15) . ' 2',
|
||||
label => ['Preprocess macros on query %s?', 'Asset_SQLReport', 2],
|
||||
hoverHelp => ['15 description', 'Asset_RichEdit'],
|
||||
);
|
||||
property placeholderParams2 => (
|
||||
fieldType => "textarea",
|
||||
default => undef,
|
||||
label => $i18n->get('Placeholder Parameters') . ' 2',
|
||||
label => ['Placeholder Parameters %s', 'Asset_SQLReport', 2],
|
||||
hoverHelp => ['Placeholder Parameters description', 'Asset_RichEdit'],
|
||||
);
|
||||
property databaseLinkId2 => (
|
||||
fieldType => "databaseLink",
|
||||
default => 0,
|
||||
label => $i18n->get("1075", 'WebGUI').' 2',
|
||||
label => ['Database Link %s', 'Asset_SQLReport', 2],
|
||||
);
|
||||
property dbQuery3 => (
|
||||
fieldType => "codearea",
|
||||
default => undef,
|
||||
label => $i18n->get(4) . ' 3',
|
||||
label => [4, 'Asset_SQLReport', 3],
|
||||
hoverHelp => ['4 description', 'Asset_RichEdit'],
|
||||
);
|
||||
property prequeryStatements3 => (
|
||||
fieldType => "codearea",
|
||||
default => undef,
|
||||
label => $i18n->get('Prequery statements') . ' 3',
|
||||
label => ['Prequery statements %s', 'Asset_SQLReport', 3],
|
||||
hoverHelp => ['15 description', 'Asset_RichEdit'],
|
||||
);
|
||||
property preprocessMacros3 => (
|
||||
fieldType => "yesNo",
|
||||
default => 0,
|
||||
label => $i18n->get(15) . ' 3',
|
||||
label => ['Preprocess macros on query %s?', 'Asset_SQLReport', 3],
|
||||
hoverHelp => ['15 description', 'Asset_RichEdit'],
|
||||
);
|
||||
property placeholderParams3 => (
|
||||
fieldType => "textarea",
|
||||
default => undef,
|
||||
label => $i18n->get('Placeholder Parameters') . ' 3',
|
||||
label => ['Placeholder Parameters %s', 'Asset_SQLReport', 3],
|
||||
hoverHelp => ['Placeholder Parameters description', 'Asset_RichEdit'],
|
||||
);
|
||||
property databaseLinkId3 => (
|
||||
fieldType => "databaseLink",
|
||||
default => 0,
|
||||
label => $i18n->get("1075", 'WebGUI').' 3',
|
||||
label => ['Database Link %s', 'Asset_SQLReport', 3],
|
||||
);
|
||||
property dbQuery4 => (
|
||||
fieldType => "codearea",
|
||||
default => undef,
|
||||
label => $i18n->get(4) . ' 4',
|
||||
label => [4, 'Asset_SQLReport', 4],
|
||||
hoverHelp => ['4 description', 'Asset_RichEdit'],
|
||||
);
|
||||
property prequeryStatements4 => (
|
||||
fieldType => "codearea",
|
||||
default => undef,
|
||||
label => $i18n->get('Prequery statements') . ' 4',
|
||||
label => ['Prequery statements %s', 'Asset_SQLReport', 4],
|
||||
hoverHelp => ['15 description', 'Asset_RichEdit'],
|
||||
);
|
||||
property preprocessMacros4 => (
|
||||
fieldType => "yesNo",
|
||||
default => 0,
|
||||
label => $i18n->get(15) . ' 4',
|
||||
label => ['Preprocess macros on query %s?', 'Asset_SQLReport', 4],
|
||||
hoverHelp => ['15 description', 'Asset_RichEdit'],
|
||||
);
|
||||
property placeholderParams4 => (
|
||||
fieldType => "textarea",
|
||||
default => undef,
|
||||
label => $i18n->get('Placeholder Parameters') . ' 4',
|
||||
label => ['Placeholder Parameters %s', 'Asset_SQLReport', 4],
|
||||
hoverHelp => ['Placeholder Parameters description', 'Asset_RichEdit'],
|
||||
);
|
||||
property databaseLinkId4 => (
|
||||
fieldType => "databaseLink",
|
||||
default => 0,
|
||||
label => $i18n->get("1075", 'WebGUI').' 4',
|
||||
label => ['Database Link %s', 'Asset_SQLReport', 4],
|
||||
);
|
||||
property dbQuery5 => (
|
||||
fieldType => "codearea",
|
||||
default => undef,
|
||||
label => $i18n->get(4) . ' 5',
|
||||
label => [4, 'Asset_SQLReport', 5],
|
||||
hoverHelp => ['4 description', 'Asset_RichEdit'],
|
||||
);
|
||||
property prequeryStatements5 => (
|
||||
fieldType => "codearea",
|
||||
default => undef,
|
||||
label => $i18n->get('Prequery statements') . ' 5',
|
||||
label => ['Prequery statements %s', 'Asset_SQLReport', 5],
|
||||
hoverHelp => ['15 description', 'Asset_RichEdit'],
|
||||
);
|
||||
property preprocessMacros5 => (
|
||||
fieldType => "yesNo",
|
||||
default => 0,
|
||||
label => $i18n->get(15) . '5',
|
||||
label => ['Preprocess macros on query %s?', 'Asset_SQLReport', 5],
|
||||
hoverHelp => ['15 description', 'Asset_RichEdit'],
|
||||
);
|
||||
property placeholderParams5 => (
|
||||
fieldType => "textarea",
|
||||
default => undef,
|
||||
label => $i18n->get('Placeholder Parameters') . ' 5',
|
||||
label => ['Placeholder Parameters %s', 'Asset_SQLReport', 5],
|
||||
hoverHelp => ['Placeholder Parameters description', 'Asset_RichEdit'],
|
||||
);
|
||||
property databaseLinkId5 => (
|
||||
fieldType => "databaseLink",
|
||||
default => 0,
|
||||
label => $i18n->get("1075", 'WebGUI').' 5',
|
||||
label => ['Database Link %s', 'Asset_SQLReport', 5],
|
||||
);
|
||||
property debugMode => (
|
||||
fieldType => "yesNo",
|
||||
|
|
@ -183,7 +202,7 @@ property downloadType => (
|
|||
fieldType => "text",
|
||||
default => "none",
|
||||
label => ["download type", 'Asset_SQLReport'],
|
||||
hoverHelp => $i18n->get("download type description"),
|
||||
hoverHelp => ["download type description", 'Asset_RichEdit'],
|
||||
vertical => 1,
|
||||
options => \&_downloadType_options,
|
||||
extras => "onclick='changeDownloadType(this)'"
|
||||
|
|
@ -327,7 +346,7 @@ sub getEditForm {
|
|||
-name=>"downloadMimeType",
|
||||
-label=>$i18n->get("download mimetype"),
|
||||
-hoverHelp=>$i18n->get("download mimetype description"),
|
||||
-options=> \%downloadMimeType,
|
||||
#-options=> \%downloadMimeType,
|
||||
-value=>$self->getValue("downloadMimeType"),
|
||||
-defaultValue=>"application/octet-stream",
|
||||
);
|
||||
|
|
|
|||
|
|
@ -88,6 +88,11 @@ while the second question mark will contain the form variable "field1".</p>
|
|||
lastUpdated => 1031514049
|
||||
},
|
||||
|
||||
'Preprocess macros on query %s?' => {
|
||||
message => q|Preprocess macros on query %s?|,
|
||||
lastUpdated => 1266003604,
|
||||
},
|
||||
|
||||
'14' => {
|
||||
message => q|Paginate After|,
|
||||
lastUpdated => 1031514049
|
||||
|
|
@ -108,6 +113,11 @@ while the second question mark will contain the form variable "field1".</p>
|
|||
lastUpdated => 1031514049
|
||||
},
|
||||
|
||||
'Query %s' => {
|
||||
message => q|Query %s|,
|
||||
lastUpdated => 1266003369
|
||||
},
|
||||
|
||||
'18' => {
|
||||
message => q|There were no results for this query.|,
|
||||
lastUpdated => 1031514049
|
||||
|
|
@ -268,6 +278,10 @@ will always be false for query5.|,
|
|||
message => q|<b>Debug:</b> Error: The SQL specified is of an improper format.|,
|
||||
lastUpdated => 1031514049
|
||||
},
|
||||
'Placeholder Parameters %s' => {
|
||||
message => q|Placeholder Parameters %s|,
|
||||
lastUpdated => 1266003738,
|
||||
},
|
||||
'Placeholder Parameters' => {
|
||||
message => q|Placeholder Parameters|,
|
||||
lastUpdated => 1031514049
|
||||
|
|
@ -288,6 +302,10 @@ will always be false for query5.|,
|
|||
message => q|Prequery statements|,
|
||||
lastUpdated => 0,
|
||||
},
|
||||
'Prequery statements %s' => {
|
||||
message => q|Prequery statements %s|,
|
||||
lastUpdated => 1266003505,
|
||||
},
|
||||
'Prequery statements description' => {
|
||||
message => q|<p>Prequery statements are sql statements executed before the real query. You can use prequery statements for instance to set variables that you want to use in the real query. For example:</p>
|
||||
<div class="helpIndent">set @myVariable := 1</div>
|
||||
|
|
@ -501,6 +519,11 @@ will always be false for query5.|,
|
|||
lastUpdated => 1168886083,
|
||||
},
|
||||
|
||||
'Database Link %s' => {
|
||||
message => q|Database Link %s|,
|
||||
lastUpdated => 1266003847,
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue