i18n好像解决不了这个问题

由 whenis 于 周三, 2008-07-02 10:28 提交。

设置了多语言,已经可以正常工作.只是,有一个问题是我在首页上面定义了几个标签,例如:"首页",是在中文环境下用管理员定义的,
我现在用另一个用户test登陆,选择比如是日语;进来后一切都是正常显示的,不过,只要我点"首页",全部的页面就会进入到中文界面.有什么方法能跟据用户的选择保证可以在日语的界面呢?
论坛中有人推荐我看一下l18n的手册,可是我没找到.请明白的人指教一下.谢谢.

就在i18n模块的目录里

就在i18n模块的目录里,详细看这http://drupal.org/node/133977

你可能需要使用

    $conf['i18n_variables'] = array(
        // Site configuration
        'site_name',
        'site_slogan',
        'site_mission',
        'site_footer',
        'anonymous',
        // Node help
        'blog_help',
        'story_help',
        // User configuration
        'user_registration_help',
        'user_mail_welcome_subject',
        'user_mail_welcome_body',
        'user_mail_approval_subject',
        'user_mail_approval_body',
        'user_mail_pass_subject',
        'user_mail_pass_body',
        // Primary and secondary links
        'menu_primary_menu',
        'menu_secondary_menu',
'contact_form_information',
'site_frontpage',
        // Theme settings. This is an 'all or nothing' for each theme
        // This is for 'garland' theme, for other theme it would be //'theme_[themename]_settings'
    'theme_garland_settings',
   
    );

根据你的需要设置这些变量,添加sites\default\settings.php

--------------AD-----------------
http://www.petkk.com

i18n好像解决不了这个问题

i18n提到可以支持多语言,但是,与我的情况相同是.自定义的"首页",会在点击时,页面全部变成与定义的"首页"语言相同的界面.
i18n好像解决不了这个问题.我用中文定义了"首页"标签放在TOP处,用户选英文进来后,当前界面是英文的,可是,一点"首页",界面就会变成中文的这种情况.

参考网络上的文章,内容如下:
I18n module can translate menu items easily. But it can't link from one menu item to two possible nodes (dependant on the sites language). This patch can do this automaticly. you only need link the nenu item to any of the nodes(one of the multi-language nodes), when you choose diffrent language, this patch can choose right link for you(base on the language). the codes below is part of menu.inc. Red codes is patched by me.

以上.

i18n设置还是有点搞不

i18n设置还是有点搞不清楚,有中文包估计会好点

我之前也尝试用6.x建站,后来还是选5.x了

经过一段摸索有点经验

你所说的"首页"是菜单项目吗?
以及这"首页"的连接地址是什么?是中文还其他?

其实你在建菜单时,可以这样:
首页 语言选择中文 连接地址 node/1 (node/1是中文页面)
home 语言选择英文 连接地址 node/2 (node/2是英文页面)

正常设置的情况下,使用英文语言是看不到“首页”他只能看到“home”

--------------AD-----------------
http://www.petkk.com

好了,

弄好了.可能没明白i18n和语言的更多东西,不过现在已经满足我的使用需要了.

感谢回复的朋友.

最好把使用心得写个

最好把使用心得写个教程
==============a scratch of pen of jason==================
www.5iphp.com,我的drupal站点