Add link to GREL reference in Help tab of expression editor (#3647)

* grel reference added

* descriptive link added

* modified

* translation text added

* conflict issue resolved and link added

Co-authored-by: Antonin Delpeuch <antonin@delpeuch.eu>
This commit is contained in:
Akshita Singh 2021-02-24 19:07:47 +05:30 committed by GitHub
parent d72193f25e
commit ad22c7709a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -244,6 +244,7 @@
"core-dialogs/history": "History",
"core-dialogs/starred": "Starred",
"core-dialogs/help": "Help",
"core-dialogs/help/grelreference" : "View the GREL reference in the OpenRefine User Manual for further details",
"core-dialogs/opt-code-applied": "Option code successfully applied.",
"core-dialogs/error-apply-code": "Error applying option code",
"core-dialogs/sql-exporter": "SQL Exporter",

View File

@ -184,6 +184,11 @@ ExpressionPreviewDialog.Widget.prototype._renderHelpTab = function() {
ExpressionPreviewDialog.Widget.prototype._renderHelp = function(data) {
var elmt = this._elmts.expressionPreviewHelpTabBody.empty();
$("<a />", {
href: "https://docs.openrefine.org/manual/grelfunctions",
text: $.i18n('core-dialogs/help/grelreference'),
target: "_blank",
}).appendTo(elmt);
$('<h3></h3>').text("Variables").appendTo(elmt);
var varTable = $('<table cellspacing="5"></table>').appendTo(elmt)[0];
var vars = [