如何使用sharepoint 2013应用不同的语言集javascript? [英] How to apply different language set javascript using sharepoint 2013 ?

查看:112
本文介绍了如何使用sharepoint 2013应用不同的语言集javascript?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用javasctipt(或)服务器对象模型(或)客户端对象模型在sharepoint 2013 onpremises站点上应用多种语言集。如果我将选择任何lagnuage选项,它将反映到sharepoint 2013上的所有页面和网站。


谢谢&提前


问候



Narasimman








解决方案

您好SimhaVL,


没有得到您的问题,为什么要使用JS / SSOM / CSOM应用它? SharePoint已经有多语言选项,您可以使用变体设置启用。 


https://support.office.com/en-us/article/create-a-multi-language-website-da0b5614-8cf5- 4905-a44c-90c2b3f8fbb6  


如果您正在谈论自定义,那么对于服务器端代码SSOM / CSOM,您可以使用本地化资源文件并使用区域性信息加载用于显示所选语言的自定义内容的语言资源文件。


对于基于JavaScript的自定义,您必须为不同语言创建基于JSON的资源文件,并根据当前文化在运行时加载它


I want to apply multiple language set with sharepoint 2013 onpremises site using javasctipt (or) server object model (or) client object model. if i will choose any lagnuage option it will reflect to all pages and site on sharepoint 2013.

Thanks & advance

regards

by

Narasimman


解决方案

Hi SimhaVL,

Didn't get your question, why do you want to apply it using JS/SSOM/CSOM. SharePoint Already has multi-lingual option that you can enable using Variation settings. 

https://support.office.com/en-us/article/create-a-multi-language-website-da0b5614-8cf5-4905-a44c-90c2b3f8fbb6 

And if you are talking about customization then for the Server Side code SSOM/CSOM you can use Localized resource file and use culture information to load the language resource file to display the custom content in selected language.

And for JavaScript based customization you have to create JSON based resource file for different languages and load it at runtime based on the current culture.


这篇关于如何使用sharepoint 2013应用不同的语言集javascript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆