多语言变体 - 如何本地化导航?

发布于 2024-11-04 18:02:10 字数 660 浏览 0 评论 0原文

我们正在为 2010 年多语言网站创建变体结构。我们希望我们的导航基于网站集的网站/子网站结构。问题在于,开箱即用的 SharePoint 导航从网站名称创建链接,而该网站名称恰好已本地化到源网站。我们同意 URL 中包含源站点名称,我们只希望导航使用本地化文本。

我知道解决方法是关闭目标站点上基于站点的导航并手动执行此操作,但这会变得很麻烦,因为我们预计会有数百个子站点。

我们希望导航看起来像这样的一个示例:

EN-US(英文源站点)

导航中的链接 |网址

首页 | www.consoso.com/en-us/Pages/default.aspx

工作| www.consoso.com/en-us/Work/Pages/default.aspx

de-DE(德语目标网站)

导航中的链接 |网址

海姆 | www.consoso.com/de-de/Pages/default.aspx

阿尔贝特 | www.consoso.com/de-de/Work/Pages/default.aspx

We are creating the variation structure for a multilingual 2010 site. We would like our navigation to be based upon the site/subsite structure of the site collection. The problem is that the out-of-the-box SharePoint navigation creates links from the site name, which happens to be localized to the source site. We are ok with the URL's having the source site's name in it, we just want the navigation to use localized texts.

I know that a work-around is to turn off site-based navigation on the target site and do it manually, but this will become cumbersome as we anticipate having a few hundred subsites.

An example of what we would like our navigation to look like:

EN-US (English Source Site)

Link in Navigation | URL

Home | www.consoso.com/en-us/Pages/default.aspx

Work | www.consoso.com/en-us/Work/Pages/default.aspx

de-DE (German target site)

Link in Navigation | URL

Heim | www.consoso.com/de-de/Pages/default.aspx

Arbeit | www.consoso.com/de-de/Work/Pages/default.aspx

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蹲墙角沉默 2024-11-11 18:02:10

我认为你没有那么多选择。对于每个网站,您需要启用多语言选项;这似乎不是遗传的。对子网站标题所做的任何更改都不会自动反映在父网站的导航中。我尝试这样:

  • 创建了一个英语网站并在其上启用了荷兰语。
  • 将网站标题调整为后缀 EN(英语)和 NL(荷兰语)。
  • 创建了一个英语子网站,默认情况下禁用语言设置。我将该子网站称为“子网站”,并验证它是否显示在父网站的导航上。
  • 调整了子网站的网站标题,并再次添加“EN”和“NL”后缀。这些更改不会以任何方式反映到父网站,它仍然列出两种语言的“子网站”。
  • 如果您现在编辑父级的导航链接,则可以更改两种语言的标题,并且这些标题可以翻译。

所以我认为你没有那么多选择,只是不存在 ootb。可行的(也许是最简单的)是创建一个计时器作业,它递归地处理您的网站集/网站并重新创建所有子网站的导航链接。只要有一点逻辑,您还可以丢弃任何其他(外部)链接。

但也许您同时找到了一个不错的选择?我也在研究多语言/变体选项,所以我很想知道:)

I think you don't have that much options. For each web, you need to enable the multilanguage option; it doesn't seem like this is inherited. Any changes made to the subweb's title don't automatically reflect in the navigation of the parent site. I tried like this:

  • Created an English site and enabled Dutch language on it.
  • Adapted the site title to postfix EN for English and NL for Dutch.
  • Created an English subweb, language settings are disabled by default. I called the subweb 'subweb' and verified that it displayed on the navigation of the parent site.
  • Adapted the site title for the subweb and postfixed it again with 'EN' and 'NL'. These changes don't reflect to the parent web in any way, it still lists 'subweb' for both languages.
  • If you now edit the navigation links for the parent, you can change the titles for both languages and those translate ok.

So I don't think you have that many options, it's just not there ootb. What could work (and perhaps is the most easiest) is creating a timer job which recursively processes your site collections / webs and recreates the navigation links for all subsites. With a little logic there, you could also discard any other (external) links.

But perhaps you found a good alternative in the meantime? I'm also researching the multilanguage / variation options, so I'm eager to find out :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文