自定义头部链接区域在某些语言中不起作用

recently I was trying to configure the custom header links to allow it shows up according to the specific language (locale) and realized this feature is not working as expected for some of the languages such as zh_CN and en_BG… seems whichever with “_” in the middle of the string is not working but for “fr” “ca” “en”… are working smoothly.

what I have already tried.

firstly set forum locale to “en” then set custom header link locale to zh_CN
i logged in with an another regular user set interface language to zh_CN then the header won’t showing up .

then I have also tried to set forum locale to “en” then set custom header link locale “ca” logged in with another regular user set interface language to “ca” as well then it shows the header .

which tells me the zh_CN is not working as expected

really appreciate if someone can help me with this issue to make zh_CN language works as expected

thanks a head

1 个赞

连字符应该可以,zh-CN,这是网络格式

当然,你不可能知道,所以我们应该纠正这一点——一旦这次更新上线,-_ 都可以使用

3 个赞

是否可以将多个语言指向同一个 locale 字符串设置?

例如 locale: “en-US, en-UK”,因为对我来说,大多数情况应该是相同的,所以如果可能的话,将其作为一行配置会比使用两个完全相同的对象只更新 en-US 到 en-UK 要好得多。

1 个赞

目前还不可能,但应该是可行的。当我有时间的时候我可以试一试(或者其他人也可以随意提交 pull 请求!)

仅使用 en 不就行了吗?

不完全是,en 代表 en-US,en-GB 代表 en-UK,你可以试试


你可以试试,不过没关系,只要我知道正确引用文件的正确方法,用“ - ”而不是“ _ ”就足够了。

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.