0

Trying to set up a multilingual site with sitefinity.

The structure is

mysite.com/us/ - all US content
mysite.com/fr/ - all French content

So, the home page for the US would be at

mysite.com/us/home

and the home page for France would be at

mysite.com/fr/home

How can I do that?

Site search should be limited to the currently selected locale (/fr/ or /us/ in this example).

What happens by default is that the US home page ends up in the root of the site, and the French under /fr/:

mysite.com/home     #US version, should appear under mysite.com/us/home
mysite.com/fr/home  #French version
4

2 回答 2

0

您可以通过转到管理->设置来管理您想要支持的语言,然后从左侧菜单中选择“语言”。

这是一个更详细的视频。 启用和创建多语言 Sitefinity 页面和内容

于 2012-04-29T05:05:11.140 回答
0

您可以设置一个“虚拟”默认语言,该语言将路由到 mysite.com/home,然后将美国和法国添加为辅助语言。然后在 mysite.com/home 中,您可以添加一些逻辑来决定路由到哪个语言文件夹主页,或者只是在页面 html 中添加类似这样的内容以自动重定向到美国主页:

<script>
    window.location.replace('mysite.com/us/home');
</script>
于 2014-02-17T17:32:17.383 回答