Localization of Smart Assessment

GeraldKirby
Kilo Sage

Hi,

 

Any guides/articles on how to translate smart assessments?

 

@Alex Coope - SN 

11 REPLIES 11

Hi @Alex Coope - SN ,

How should the UI Action (that calls the "proto_grc_assessment_templates") be configured? I've tried recycling the "Request Translation" one and the languages picker pops up, but it returns this "Failed to request translations." error. Here's the script I've recycled and adapted:

Form button - True
Client - True
OnClick - renderLanguagePickerModal();

function renderLanguagePickerModal() {
    var dlg = new GlideModal("sn_lf_language_picker");
    dlg.setTitle(getMessage("Request Translations"));
    dlg.setPreference("sys_id", g_form.getUniqueValue());
    dlg.setPreference("artifact_config_internal_name", "proto_grc_assessment_templates");
    dlg.setPreference("request_type", "form");
    dlg.setPreference("focusTrap", true);
    dlg.render();
}


Thank you in advance.

Hi @Alex Coope - SN , any insights about the error encountered?

A few of things come to mind:
1. The Artifact record and Processor Script needs to be in the "global" scope, but the UI action looks like it needs to be in the "Smart Assesment Core" scope
2. the "onClick" function for the UI action also needs to be renamed (because of the scope) to avoid a clash. I used "asstRenderLanguagePickerModal()",

So it should look like this:

AlexCoopeSN_0-1769673477062.png


And don't forget to ensure there's an LF "setting" for the artifact,

Note: - when the next version of Smart Assessments is released (TBD when) I will be properly revisiting this artifact design. Please only consider this a workaround for your current need,

Many thanks,
Kind regards

--------------------------------------------------------------------
Director of Globalization Deployment, Internationalization

Hi @Alex Coope - SN ,

 

Changing the onclick function does nothing, and returns this error when clicking REquest translation. Please advise.

GeraldKirby_0-1770368506019.png

 

@GeraldKirby, have you named the onClick function the same as what's in the script? 

the non-defined error suggests it's not what's in the script field

--------------------------------------------------------------------
Director of Globalization Deployment, Internationalization