在Umbraco创建一个多语种网站 [英] Creating a multilingual site in Umbraco

查看:195
本文介绍了在Umbraco创建一个多语种网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是umbraco的新人,目前正在为我的雇主建立一个网站。



这个网站需要支持多种语言。我的问题是如何使用umbraco实现这个。

我正在查看以下方法:




  • 创建站点结构一次,并为每个页面输入不同的翻译。

    这描述在这里,但我不知道这在多大程度上适用于umbraco 4.5.2。

  • 为每种语言创建不同的文件树并按照此处



网站包含一些高级功能(注册表单链接到其他网域等)并且页面内容将大体相同。

我们可能需要某些子页面只能在某些语言中可见 - 这是否可以用第一种方法实现?



使用umbraco做最好的方法是什么?



谢谢,

Martin

解决方案

一如既往,它取决于:-)。



我已经使用这种方法来创建不同的树几次,成功很多次。



还要做额外的,我创建树根的内容树的根(看起来像umbraco的内容树中的多个hmoepages),然后使用管理主机名(见 http://umbraco.org/documentation/books/running-多个网站一个umbraco安装 - (1)/设置umbraco )设置每个主机名映射到哪个树(和语言)。此添加要求可为每种语言使用不同的域(或子域)。



此解决方案具有以下优点:


$

  • 您可以为每种语言设置不同的网站树。


  • I am rather new to umbraco and currently building a web site for my employer.

    This site will need to support multiple languages. My question is how this should be implemented with umbraco.
    I am looking at the following approaches:

    • Create the site structure once and entering different translations for each page.
      This is described here, although I am not exactly sure to what extent this applies to umbraco 4.5.2.
    • Create different file trees for every language and fill in the pages with appropriate translations as described here

    The site contains some advanced functionality (sign-up form linked to another domain etc.) and the page contents will be mostly the same.
    We might need to have some subpages only be visible in some languages - can this be achieved with the first approach?

    What would be the best way to do this with umbraco?

    Thank you,
    Martin

    解决方案

    As always, it depends :-).

    I have used the approach to create different trees a few times with great success a few times.

    I also do the addition that I create the tree roots in the root of the content tree (looks like multiple hmoepages in the Content tree in umbraco) and then use "Manage hostnames" (see http://umbraco.org/documentation/books/running-multiple-websites-on-one-umbraco-installation-(1)/setting-up-umbraco) to set which tree (and language) each hostname maps to. This addition requires that it is OK to use different domains (or subdomains) for each language.

    This solution give the following advantages:

    1. You can use the Dictionary in umbraco when translating the site.
    2. You can have different site trees for each language.

    这篇关于在Umbraco创建一个多语种网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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