SharePoint Site "Language Settings"功能與CSOM的對應
SharePoint網站中的語言設定:"Language Settings",可以用CSOM通過Site的一些屬性去設定它。
Default Language部分:
The default language of the site is specified when the site is first created.
對應的屬性為:web.Language
整型,無法更改,網站一旦建立預設語言就無法再更新,可以通過增加可選語言的方式更改網站的顯示語言(注意,網站語言的顯示是由客戶端瀏覽器的語言決定的)。
Alternate language(s)部分:
Specify the alternate language(s) that this site will support. Users navigating to this site will be able to change the display language of the site to any one of these languages.
對應的屬性為:web.SupportedUILanguageIds
集合型別,可以進行遍歷查詢,如果需要新增或刪除,呼叫web.AddSupportedUILanguage和web.AddSupportedUILanguage方法。
如新增日語作為可選語言(首次新增時需要將web的IsMultilingual屬性更改為true):
web.IsMultilingual = true;
web.AddSupportedUILanguage(1041);
關於語言ID參考此連結:
https://msdn.microsoft.com/en-us/library/cc767443.aspx
Overwrite Translations部分:
User-specified text, such as Title and Description of the site, can be translated into the alternate language(s) supported by the site. Specify whether the changes made to user-specified text in the default language should automatically overwrite the existing translations made in all alternate languages.
對應的屬性為:web.OverwriteTranslationsOnChange
布林型別,設定true或false即可。
以上就是語言設定相關的CSOM屬性,可以用來方便地獲取與設定網站的語言設定。
相關文章
- Sharepoint 開啟發布功能的PowerShell
- SharePoint Server 2016 在原有功能的基礎上增加的內容Server
- 全新的SharePoint 2019
- VMware Live Site Recovery 9.0.2 釋出下載,新增功能概覽
- site命令
- 直播商城原始碼,Android實現監聽Settings值變化的功能原始碼Android
- 成品直播原始碼,Android實現監聽Settings值變化的功能原始碼Android
- springcloud alibaba與springboot對應的版本GCCloudSpring Boot
- pg_file_settings和pg_settings系統檢視的區別
- RabbitMQ與Erlang的版本對應關係MQ
- Spring AOP與AspectJ的對比及應用Spring
- translate-your-site
- deploy-your-site
- PDM技術的基本功能與應用
- 體感互動大屏的功能與應用
- monaco-editor 的 Language Services
- Unable to save settings: Failed to save settings. Please restart PyCharm解決AIRESTPyCharm
- some settings for spacemacs golangMacGolang
- iOS之Settings BundleiOS
- HBase 的結構與表的對應關係
- SharePoint詞彙表
- [Paper Reading] KOSMOS: Language Is Not All You Need: Aligning Perception with Language Models
- c#版本與vs的對應關係C#
- 詳解Python中sys模組的功能與應用Python
- Good site on Oracle tech blogGoOracle
- Omi應用md2site釋出-markdown轉網站利器網站
- iOS開發Settings.bundle的使用iOS
- Maven的settings.xml檔案配置MavenXML
- 資料洩密的危害,原因,與應對策略
- Firefox的降級與驅動對應關係Firefox
- Inspection Points: Key settings and Usage
- eclipse配置Maven Settings.xml檔案報錯:Could not read settings.xmlEclipseMavenXML
- tensorflow與python版本對應關係Python
- 深入探究 Golang 反射:功能與原理及應用Golang反射
- SAP Spartacus Multi-Site Configuration
- [20210621]Driving site patch.txt
- 微軟Sharepoint的一些缺點微軟
- React hooks 對應 ClassComponent 中的生命週期與 apiReactHookAPI
- VMware vCenter Site Recovery Manager VCP5.1部署實施與管理