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

fix: Make translations usable #1408

Merged

Conversation

sveneberth
Copy link
Member

@sveneberth sveneberth commented Feb 7, 2025

  • tr_key must be required, otherwise this makes no sense for mappings
  • longer translations should be supported too
  • tr_key, translations and default_text should not be HTML escaped, sometimes they contains links, or words that should be highlighted with e.g. <strong/>
  • tr_keys are often longer than 50 char, but they should still be searchable
  • Use custom name implementation, instead of the key. (E.g. used for tabs in admin)

* `tr_key` must be required, otherwise this makes no sense for mappings
* longer `translations` should be supported too
* `translations` should not be HTML escaped, sometimes they contains
  links, or words that should be highlighted
* `tr_key`s are often longer than 50 char, but they should still be
  searchable
@sveneberth sveneberth added bug(fix) Something isn't working or address a specific issue or vulnerability Priority: High After critical issues are fixed, these should be dealt with before any further issues. annoying labels Feb 7, 2025
@sveneberth sveneberth added this to the ViUR-core v3.7 milestone Feb 7, 2025
Copy link
Member

@phorward phorward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally somebody who faught the StringBone-ugliness with the HTML!

@phorward phorward merged commit 1d5f7a8 into viur-framework:main Feb 7, 2025
3 checks passed
@sveneberth sveneberth deleted the fix/make_translations_usable branch February 7, 2025 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
annoying bug(fix) Something isn't working or address a specific issue or vulnerability Priority: High After critical issues are fixed, these should be dealt with before any further issues.
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

3 participants