I've created a new language sl_SI and everything seems to be working fine within php scripts,
however I cannot localize anything inside JS file inside theme.
For e.g.:
a.appendChild(document.createTextNode(this.res.getLabel('Input Required) ));
will work, but adding a new custom line into the new main.php language file will not work anymore:
a.appendChild(document.createTextNode(this.res.getLabel('Make_confession) ));
This will end up as "_Make_confession_" string.
Where is the problem?
I do have this translation inside language file:
$GLOBALS["i18n"]["Make_confession"] = "Nakljucna izpoved";