TYPO3 PowerMail only shows default language in error messages - typo3

On my site where Danish is default language and English is second language, I have a PowerMail form.
But the error messages at mandatory fields will only show in default language, Danish.
Why?

if i'm not mistaken, the lang files for powermail errors comes from the jquery validation language file.
So, probably this file is not loaded.
Not an answer, but could give you a clue

Related

Symfony 5: Translate form errors

the website I work on was developped in french(FR) and I recently developped the multilingual aspect to translate the website in english(EN), for this, I used the translator bundle. Here are my configs files :
translation.yaml
services.yaml
I also created a messages.en.xlf file with all my customs messages translated from french to english, and it works.
Here is my problem : I want to translate all the default form errors.
My form with default locale: FR
My form with default locale EN
The language change has been detected and the tittle has been translated. But my error message is still the same.
What can I do about it ? Do I have to manually translate all the displayed messages with some JS ?
Thankx.
This validation and error messages come from HTML5 and language is based on your browser settings.
If you want to force english try adding this into your template:
<meta http-equiv="Content-Language" content="en">
Actually, you're doing right. It's juste because this is not a Symfony message, so you can't translate it.
This message come from your browser. Only displayed when an input has required attribute.

TYPO3 Powermail | I don't get a mail after opening the confirmation link

I made a newsletter form with double opt-in in powermail.
There is no problem in the standard language (german).
When I fill it out on my english page I get a confirmation mail.
Opening the link inside opens the confirmation page with no error but there is no mail afterwards.
The german and english form / configuration are identical.
I tried changing the sender and receiver values but nothing works.
I appreciate any help, advice or idea :)
TYPO3 Version 8.7.9
Powermail Version 6.1.0
Try to not use config.sys_language_mode=strict. At the moment the situation is that powermail always stores mails with sys_language_uid=0. If you are using the strict mode for language fallback in general, powermail is not able to read the answers in a different language.
This behaviour isn't that easy to fix.
After some research I found this Extension which lead me to this github Issue:
https://extensions.typo3.org/extension/powermail_optin_fix/
https://github.com/einpraegsam/powermail/issues/213
This Extension solved my problem!
DI Michael Ganner wrote:
When using OptIn on translated pages, the {powermail_all} marker in
the 2nd mail and 2nd confirmation page (after clicking the
confirmation-link) is empty. Reason: The answers of the mail are not
loaded in other languages than the default one.
I "solved" the issue quick and dirty by adding the function
'gugler_addAnswers' to the FormController. This function is called in
FormController->optinConfirmAction():

TYPO3 & tt_news - internal Link without language parameters

i have a Problem regarding TYPO3 and the extension tt_news.
I have a multilingual Site with 2 Languages, english and german. The news on the site are generatet by the extension tt_news - everything is working fine except one thing:
When i put an internal direct link in the news body, the language parameter is lost. So when the user klicks on the Link, it always comes back to the default language. How can i make TYPO3 generate the links with the selected language parameter, or how can i add them?

Create "multilanguage" site without redundant text in typo3

I'm not a big typo3 expert nor have I access to typoscript options at the typo3 instance I'm working with (It's a very big site and I don't have the authorization to do so). So I hope this question fits on stackoverflow (Please don't hate me if it does not, I'll happily post this on another site)
What I'm trying to achieve is:
My website has two possible translations (German and English). I see
that it's possible to switch languages during surfing through
clicking the "German"/"English"-Button
On the website are also informations about our staff (who may not be speaking german)
If one staff member doesn't speak german, I copy redundantly their english profile on the german translation mode (that it appears, because otherwise it doesn't - might be no good style, but it's better than not having them appear at all)
I'm not happy with these kind of redundancy since it means that I have to do the same action twice on the exactly same content. Does there exist a possibility in the backend of typo3 where I can set that the german translation shall be the exact same as the english content?
I hope my question is clear, thanks a lot for your help.
As you say you don't have access to typoscript templates etc, I guess you are not an integrator/developer in this project, but an editor.
Your only way to achieve an automatic "fallback" behaviour is asking the person who takes care of the site's configuration to set that up for you.
But if that's not possible, you can still use the "insert records" content element (german: "Datensatz einfügen") to avoid duplicate entries.
This content type is not in the wizard when you create a new content element. But you can create a text element and then change the type to "insert records". Now you can select another record which is then mirrored here:
You'll have a similar amount of work when setting it up, but you won't have redundant text, which is way better.
If this content type isn't available either, I would insist on the administrator enabling it for editors - it's very useful to maintain a site's content healthy.
Would be helpful to see your TypoScript configuration. Maybe theres something wrong with the sys_language_mode. Given that the sys_language_uid of english is 0 (which means its default language) and german is 1, the default behaviour should be, that german translations are shown, if available. If a translation is not available the default version of a content element is shown. However, you can change this behaviour with Typoscript:
config.sys_language_mode = content_fallback ; 5,3,1
This will set the content fallback of an content element (which is triggered if no translation exists) to sys_language_uid 5, if its not available in that language sys_language_uid 3 will be displayed etc.
Maybe your installation is set to
config.sys_language_overlay = hideNonTranslated
This will hide non-translated content-elements. Remove this entry to enable content fallback again.
You can always check the current Typoscript in the Template module via the TypoScript Object Browser. However, to really get help you need to share your TypoScript language configuration. The behaviour you describe is not the default behaviour, so its configured somewhere.

Problems with Typo3 multilanguage website

I am pretty new in Typo3 world.
I am working on this multilanguage website: http://www.fao.org/investment/investment-policy/investment-policy-support-home/en/ of which I have renovated the home page inserting an HTML module and creating some static content into it. Infact if you try to click on a language that is different from the english, still appear the english version homepage
I have a problem: the website is a multilanguage website but I can't show 3 different home page version (english verion, french version and spanish version).
I have do the following operation:
In the Typo3 backend I have selected my home page and (selecting the Default value for the Language field of the page I have inserted a Plain HTML element in the central columns. Then I have insert my custom HTML code in this module selecting Default value for the Language field of this Plain HTML module
then I have do the same operations for french and spanish version (inserting the right content) selecting the Francais value for the Language field of the page** and selecting*Francais value for the Language field of this Plain HTML module*
But in this way don't work and for any chosen language content appears in English.
Why? Where is the problem? How can I solve?
Tnx
Andrea