TYPO3加载默认语言而不是翻译 [英] TYPO3 loading default language instead of translation
问题描述
我正在使用TYPO3(目前没有其他选择),我必须在网站上添加辅助语言.
I'm using TYPO3 (with no other choice for the moment) and I have to add a secondary language to the website.
我有2种语言:
- 默认:英语(en)设置为L = 0
- 美国英语(en_US)设置为L = 1
我已经在RealUrl和主模板中进行了更改.
I've made the change in the RealUrl and in the main template.
config.sys_language_uid = 0
config.language = en
config.locale_all = en_US.UTF-8
page.config.language = en
config.linkVars = L
[GLOBAL]
[globalVar = GP:L = 1]
config {
sys_language_uid = 1
htmlTag_langKey = en_US
language = en_US
locale_all = en_US.UTF-8
}
[end]
[GLOBAL]
还有
'preVars' => array(
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'no_cache' => 1,
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'L',
'valueMap' => array(
'en' => '0',
'en_US' => '1',
),
'noMatch' => 'bypass',
'valueDefault' => 'en',
),
),
到目前为止,已经创建了我的语言,页面的原文和译文都出现在TYPO3的页面编辑中.
So far, my language is created, both the original and the translation of my page appear on the Page Editing of TYPO3.
URL有效(www.mywebsite.com/zh_CN/mypage.html).
The URL works (www.mywebsite.com/en_US/mypage.html).
从现在开始,它不再起作用: 生成的页面具有良好的URL,但会加载默认的语言内容. (即使使用预览测试www.mywebsite.com/index.php?id=123&L=1也无法加载好的内容)
From this point it doesn't work anymore : The page is generated, with the good URL, but loading the default language content. (even with the preview test www.mywebsite.com/index.php?id=123&L=1 is not loading the good content)
我错过了什么吗?
推荐答案
已解决:
忘记在Page Edition中精确翻译原始版本
Forgot to precise the Original translation in the Page Edition
在页面编辑的常规"标签的列表(Transl.Orig)中选择原稿.
Select the original in the list (Transl.Orig) of the "General" tab of page editing.
这篇关于TYPO3加载默认语言而不是翻译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!