Home Analyst Portal

Change language/text for text "Add Root Activity"

Peter_MuttenthalerPeter_Muttenthaler Partner Advanced IT Monkey ✭✭✭

Hi Cireson community,

I'm missing a localization entry for the text "Add Root Activity", would be great to have one ;).

Does anybody have a solution except changing the HTML - Code via script?

Screenshot for better understanding:


Thanks in advance and best regards,

Peter

Best Answer

  • Shane_WhiteShane_White Cireson Support Super IT Monkey ✭✭✭✭✭
    Answer ✓

    Thanks for logging Peter, for anyone else seeing this issue the workaround is as follows:

    Open C:\CiresonPortal\Scripts\app\app.controls.js

    AND

    Open C:\CiresonPortal\Scripts\forms\predefined\activities\controller.js


    Look for all lines which look like this:

    text: "<i class='fa fa-plus-circle cursor-pointer' title='Add Root Activity'></i>",


    AND replace it with:

    text: "<i class='fa fa-plus-circle cursor-pointer' title='" + localization.AddRootActivity + "'></i>",


    Then go to Localizations Setting page to add in a translation like you would for other translations!

    Thanks,

    Shane

Answers

  • Peter_MuttenthalerPeter_Muttenthaler Partner Advanced IT Monkey ✭✭✭

    first solution is to change the text in "controller.js" and "app.controls.js" ;)

  • Shane_WhiteShane_White Cireson Support Super IT Monkey ✭✭✭✭✭

    Hi @Peter_Muttenthaler

    This is a bug as it is a hard coded string, could you please log an IR for this so I can create a PR?

    Then I will post the workaround for you.

    Thanks,

    Shane

  • Peter_MuttenthalerPeter_Muttenthaler Partner Advanced IT Monkey ✭✭✭

    Hi @Shane_White,

    thank you for your fast reply, I'll create an IR in the next minutes ;)

    BR, Peter

  • Shane_WhiteShane_White Cireson Support Super IT Monkey ✭✭✭✭✭
    Answer ✓

    Thanks for logging Peter, for anyone else seeing this issue the workaround is as follows:

    Open C:\CiresonPortal\Scripts\app\app.controls.js

    AND

    Open C:\CiresonPortal\Scripts\forms\predefined\activities\controller.js


    Look for all lines which look like this:

    text: "<i class='fa fa-plus-circle cursor-pointer' title='Add Root Activity'></i>",


    AND replace it with:

    text: "<i class='fa fa-plus-circle cursor-pointer' title='" + localization.AddRootActivity + "'></i>",


    Then go to Localizations Setting page to add in a translation like you would for other translations!

    Thanks,

    Shane

  • Peter_MuttenthalerPeter_Muttenthaler Partner Advanced IT Monkey ✭✭✭

    Thank you again for you great and fast support Shane!

Sign In or Register to comment.