Translations doesn't work for Text Input fields #264
Replies: 3 comments 1 reply
-
Hi @whoiscado, Sorry for the trouble you're experiencing with Freeform. I'm just trying to understand what your setup is. In my testing, this works fine to translate field labels and options this way. Can you share what your template code looks like? And are you sure you have the language for that version of the site specified correctly ( |
Beta Was this translation helpful? Give feedback.
-
Hey @kjmartens, thanks for your answer. <label class="form-check-label" for="{{ field.idAttribute }}-{{ index }}">
{{ option.label|t|raw }}
</label> That's what it looks like, if that's what you mean?! Yes, everything else works fine. Whether it's the language selection, the craft translations or even the selection fields in the Freeform form.
Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hey @kjmartens, I changed it, but it didn't fix the error. Just to clarify: If I now create a This behavior makes no sense to me and seems to me as if some error already exists there. :D Thanks a lot for your efforts! |
Beta Was this translation helpful? Give feedback.
-
Hey!
state of the website:
German website with an English translation. I have one
freeform.php
file in the folder/translations/en/
with the translation of my German form to English.The view of the form works fine on the English site.
problem:
However, on the German site, the English translation is displayed to me. Except for the checkbox and selection items, all the text input fields have english labels. The checkbox and selection labels are in German like they're written in the form in the freeform backend.
Possible solution
: I create anotherfreeform.php
in theen
folder. But the value to be translated must be different in some way. It cannot be the same on both sides, otherwise the completefreeform.php
file will be ignored.How can this be and how can I make it so....
freeform.php
contain the same thing on both pages?Thanks for any help!
Beta Was this translation helpful? Give feedback.
All reactions