I'm trying to create custom post to current user newsfeed in SharePoint 2013 Newsfeed. I must create posts in different languages like OTB functionality.
So I have something like this:
SocialDataItem docLink = new SocialDataItem
{
ItemType = SocialDataItemType.Document,
Text = "link to a document",
Uri = docLinkUrl
};
SocialPostCreationData postCreationData = new SocialPostCreationData();
postCreationData.ContentText = "Check this out {0}.";
postCreationData.ContentItems = new SocialDataItem[1] {
docLink
};
I would like "Check this out" to be read from resource file or something like that. The same functionality is with OTB. If a user starts to follow a site this is added to his news feed and if you change current language the text is changed.
Example:
English language:
George is now following project.
Slovenian language:
George zdaj spremlja mesto »project«.
Is this even possible with a custom code?
Thanks for all your replies.