Bug #87154
closedTranslations for custom Extension not working in other languages than
0%
Description
I have the following problems with translations in a custom extension in TYPO3 9.5.1:
In the frontend I only get translations for the standard language (0) and German (1). The other 2 additional languages (es, fr) are ignored and the default language is output instead.
I use the translations as follows, both in the fluid template and directly in the controller, for flash messages, etc.
PHP:
$this->addFlashMessage (LocalizationUtility :: translate ( 'message.emailinvalid', 'custom forms'));
FLUID: {f:translate (key: 'label.company', extensionName: 'Customforms')}
This works fine, but only with English and German, with the ID 0 and 1.
After checking all the settings and paths several times, unfortunately, I can not find the error.
Background info:
- TYPO3 Version 9.5.1
- Sites and languages are set up correctly
- All language files are available, see screenshots.
- The website is multilingual
- Normal contents are output correctly in all 4 languages
If necessary, I can show a link via PM, but I can not post it here unfortunately.
I can provide a URL to the website if neccessary, on request.
Files