Skip to content

Source string check for strings with max-length: The source string is too long for other languages to fit within the limit. #19542

Description

@emmapeel2

Describe the problem

See: https://github.com/orgs/WeblateOrg/discussions/18353

Many languages need more characters than English, and often the original string is too close to the string limit for most languages to translate.

We have some strings on our project that create lots of frustration because translators cannot fit all the meaning on the space allowed.

Is hard for translators to leave stuff out! Is contra natura!

And many developers are native English speakers blissfully unaware of such matters unless you tell them.

https://ititranslates.com/size-matters-text-length-when-translating-from-english/

Solution brainstorm

So, if a string is allowed 100 characters with max-length, an alert or failing check for mantainers should appear (similar to the "Multiple failing checks" check) when the English string is more than 70 characters. Something like: 'The original string is too long to fit on $max-length when translated to other languages'.

Or maybe we could make (and mantain!) a list of the languages that have more characters than English, and check that the component is translating to those languages before running the check?

Describe alternatives you have considered

No response

Screenshots

No response

Metadata

Metadata

Assignees

Fields

Priority

None yet

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions