Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Override strings from initstring.js does not work

$
0
0

Hi Experts,

i try to override some strings from initstrings.js to customize the "Like" and "Unlike" links of a discussion.

When i debug my code i can see that the variables will be set but in UI this has no affect.

I have a Script-Editor-WebPart and following code:


(function()
{

    function stringOverrides()
    {
	Strings.STS.L_SPDiscNumberOfLikes="{0} noticed ||{0} noticed||{0} noticed";
	Strings.STS.L_SPDiscLike="Mark as noticed";
        Strings.STS.L_SPDiscSortMostLiked="Most noticed";
        Strings.STS.L_SPDiscUnlike="Unmark as noticed";
    }
    ExecuteOrDelayUntilScriptLoaded(stringOverrides, "initstrings.js");
    ExecuteOrDelayUntilScriptLoaded(stringOverrides, "strings.js");
}
)();

What am i missing?

BTW: There is no JSLink property to the Site Feed WebPart to link to a js-file.

Hope anybody can help.

With Best Regards, Ronny


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>