如何在Drupal中设置不同的主页语言? [英] How can I set a different homepage per language in Drupal?
问题描述
我只能使用语言环境模块(不是i18 ..或其他翻译模块)。
p>谢谢
你可以在没有路径模块的地方做一个非常简单的时尚:
首先,转到sites / default / settings.php并将首页定义为多语言变量:
$ conf ['i18n_variables'] = array('site_frontpage');
之后,清除缓存并转到admin>站点信息。你会看到在默认首页下面会出现:这是一个多语言变量:
更改管理语言(通常在侧栏中有一个语言切换器),并更改路径,每个语言的路径将不同
您可以添加更多i18n_variables,根据语言,即站点名称,口号和使命来更改站点信息中的其他内容。详情请见:
How can I set a different homepage per language in Drupal ?
I'm only using locale module (not i18.. or other translations module).
thanks
You can do it without path module in a very simple fashion:
First of all, go to sites/default/settings.php and define the frontpage as multilingual variable:
$conf['i18n_variables'] = array('site_frontpage');
After that, clear cache and go to admin > Site Information. You will see that below "Default front page" there will be: "This is a multilingual variable.":
change the admin language (usually there is a block of language switcher in the sidebar) and change the path, The path will be different for each language.
You can add more i18n_variables to change other things in site information according to language i.e site name, slogan, mission. more information at:
这篇关于如何在Drupal中设置不同的主页语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!