简体   繁体   English

TYPO3 在后端显示语言键而不是翻译目标

[英]TYPO3 showing language keys in backend instead of translation target

The problem I have only exists in TYPO3 6.2.x.我的问题只存在于 TYPO3 6.2.x 中。 In 7.6.x everything works as expected!在 7.6.x 中一切正常!

The steps are as follows:步骤如下:

  1. Fresh TYPO3 6.2.26 installation.全新 TYPO3 6.2.26 安装。 (with introduction package 2.0.0) (带介绍包 2.0.0)
  2. Change language to german.将语言更改为德语。
  3. Install extension.安装扩展。
  4. Create plugin instance.创建插件实例。

The problem is, that some strings are not translated, but their key is displayed, eg like "LLL:EXT:my_ext/Resources/Private/Language/locallang.xlf:flexform.content.tab".问题是,有些字符串没有被翻译,但它们的键被显示出来,例如“LLL:EXT:my_ext/Resources/Private/Language/locallang.xlf:flexform.content.tab”。 A lot of other strings (in the same plugin) are being translated just fine.许多其他字符串(在同一个插件中)被翻译得很好。

What I have tried:我尝试过的:

  1. Deleting caches through using the flash / the install tool.通过使用闪存/安装工具删除缓存。
  2. Deleting the Cache folder in typo3temp / deleting the complete temp folder.删除typo3temp 中的Cache 文件夹/删除完整的临时文件夹。
  3. Validating the xlf files -> everything okay验证 xlf 文件 -> 一切正常
  4. Check for differences in the non- and working translations like special chars, wrong keys and so on.检查非和工作翻译的差异,如特殊字符、错误的键等。

What I haven't tried yet, is debugging TYPO3 itself.我还没有尝试过的是调试 TYPO3 本身。 I'd like to do that but I don't like to find the important classes to check.我想这样做,但我不想找到要检查的重要课程。 Can someone lead me to the parts in the typo code where debugging could be interesting?有人可以引导我了解错别字代码中调试可能很有趣的部分吗?

After two hard days of work I finally found out.经过两天的辛苦工作,我终于发现了。 You won't believe it.你不会相信的。 The problem was in the flexform.问题出在 flexform 上。

This will translate just fine in TYPO3 6.2.x :这将在 TYPO3 6.2.x 中转换得很好:

<sheetTitle>LLL:EXT:myExt/Resources/Private/Language/locallang.xlf:my.key
</sheetTitle>

This won't:这不会:

<sheetTitle>
    LLL:EXT:myExt/Resources/Private/Language/locallang.xlf:my.key
</sheetTitle>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM