Project

General

Profile

Actions

Bug #87154

closed

Translations for custom Extension not working in other languages than

Added by Simon Köhler over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Localization
Target version:
-
Start date:
2018-12-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
language, translation, multilanguage
Complexity:
nightmare
Is Regression:
Sprint Focus:

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

Actions

Also available in: Atom PDF