Check translations on placeholders - Mendix Forum

Check translations on placeholders

1

In language/ batch translate and batch replace it should not be possible to enter a translation with more or less or other placeholders ({1} etc)

For example

  1. 'Show {1}' vs 'Toon {1}' is ok
  2. 'Show {1}' vs 'Toon' is wrong
  3. 'Show {1}' vs 'Toon {2}' is wrong
  4. 'Show {1} {2}' vs 'Toon {1} {2}' is ok
  5. 'Show {1}' vs 'Toon {1} {2}' is wrong

 

This should also be checked after import.

 

 

asked
2 answers

Ok in your case I agree, so it should be something of a checking/warning system, leaving the decision to the user.

 

In my opinion translations should be in the platform and should not request a pretty complex data structure including specializations and thus many inner joins requiring more database resources.

Created

I don't completely agree.

Sometimes I have a Translation entity with an attribute for each language in my app. In a specialised entity, I enter those values.

To show the translated content to the user, I simply define all languages as parameters for the caption and for each language, I use a different placeholder.

Generalization:

image.png

Specializations:

image.png

Usage in a page, with NL as active language. And for EN the caption would be {2} etc.

image.png

Created