Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translations: Date/Datetime components warn for translations of "dd-mm-yyyy" & "dd-MM-yyyy HH:mm" #3382

Closed
LaurensBurger opened this issue Aug 18, 2023 · 1 comment · Fixed by #3824
Assignees
Labels
Milestone

Comments

@LaurensBurger
Copy link
Collaborator

LaurensBurger commented Aug 18, 2023

Product versie / Product version

2.1.x - 2.2.x

Omschrijf het probleem / Describe the bug

Date and Datetime components in a form with translations will always show requirements for translations.
This is cause by their placeholders:
"placeholder": "dd-mm-yyyy",
"placeholder": "dd-MM-yyyy HH:mm",

This can only be solved by removing the placeholder.

@LaurensBurger LaurensBurger added bug Something isn't working triage Issue needs to be validated. Remove this label if the issue considered valid. labels Aug 18, 2023
@sergei-maertens
Copy link
Member

sergei-maertens commented Aug 21, 2023

Refinement:

  • placeholder cannot be changed at form design time
  • form design reports that placeholder is missing translation
  • placeholder cannot be translated in translations tab

-> proper solution would be to exclude placeholder from translations, which is hard in the current form builder

postponing this to the new form builder

  • to check: the client-side translation should change when you change locale

@sergei-maertens sergei-maertens added topic: form builder and removed triage Issue needs to be validated. Remove this label if the issue considered valid. labels Aug 21, 2023
@SilviaAmAm SilviaAmAm self-assigned this Jan 22, 2024
@joeribekker joeribekker changed the title Transltions: Date/Datetime components warn for tranlstions of "dd-mm-yyyy" & "dd-MM-yyyy HH:mm" Translations: Date/Datetime components warn for translations of "dd-mm-yyyy" & "dd-MM-yyyy HH:mm" Jan 22, 2024
@joeribekker joeribekker assigned vaszig and unassigned SilviaAmAm Jan 22, 2024
@joeribekker joeribekker added this to the Release 2.6.0 milestone Jan 22, 2024
vaszig added a commit that referenced this issue Jan 29, 2024
In the new form builder (see types as well) Date and Datetime schemas do not have
placeholder as a property. So, this is handled here for the warnings in
the admin.
sergei-maertens pushed a commit that referenced this issue Feb 2, 2024
In the new form builder (see types as well) Date and Datetime schemas do not have
placeholder as a property. So, this is handled here for the warnings in
the admin.

Co-authored-by: @Viicos
sergei-maertens pushed a commit that referenced this issue Feb 2, 2024
In the new form builder (see types as well) Date and Datetime schemas do not have
placeholder as a property. So, this is handled here for the warnings in
the admin.

Co-authored-by: @Viicos
sergei-maertens added a commit that referenced this issue Feb 2, 2024
…-translations-warnings

[#3382] Translation warnings for date,datetime placeholders
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants