AI OnAI Off
Not sure which js event might be suitable but maybe you can solve that just using CSS and a contains selector on the title attribute.
Something like: [title~="norsk"] { .. } and then some CSS content work.
https://css-tricks.com/css-content/
https://devblog.gosso.se/2017/04/override-css-in-episerver-editor-mode/
Thank you very much!
I did as you suggested, and posted the final solution here:
http://gulla.net/customizing-episerver-pagetree/
In a multi language site not all pages are available in all languages. If I change edit language to english, the pages that are only available in norwegian be shown in a gray font with the language code to the right.
I would like to display the name of the language instead of the language code. One site has a lot of (strange looking) language codes, and the editors do not recognize all. The substitution could be done with jquery (although changing the markup would be better, of course).
But, how do I registere the javascript for execution after the page tree is fully loaded? Can it be done?