【发布时间】:2013-11-21 16:38:18
【问题描述】:
我正在尝试为 SharePoint 2013 新闻源中的当前用户新闻源创建自定义帖子。我必须创建不同语言的帖子,例如 OTB 功能。
所以我有这样的事情:
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
};
我希望从资源文件或类似文件中读取“检查一下”。 OTB 具有相同的功能。如果用户开始关注某个网站,则会将其添加到他的新闻提要中,如果您更改当前语言,则会更改文本。
例子:
英语:
George is now following project.
斯洛文尼亚语:
George zdaj spremlja mesto »project«.
这甚至可以通过自定义代码实现吗?
感谢您的所有回复。
【问题讨论】:
标签: sharepoint sharepoint-2013 mysite