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

Pseudolocale add-on respects the length of text being localized #7381

Closed
KadAnna opened this issue Mar 14, 2022 · 3 comments
Closed

Pseudolocale add-on respects the length of text being localized #7381

KadAnna opened this issue Mar 14, 2022 · 3 comments
Assignees
Labels
enhancement Adding or requesting a new feature.
Milestone

Comments

@KadAnna
Copy link

KadAnna commented Mar 14, 2022

Describe the problem

I want to use the pseudolocale add-on for testing if it fits withing the fixed dialog size. The texts and dialog windows are of various size - from a heading in a table to full sentences. At the moment. I can add only a fixed number of charactets, which does not really respect the variability of text that is being localized.

Describe the solution you'd like

I would like to choose flexible number of characters of suffixes, depending on the length of a string. Let us say for a string with less then 10 characers, between 10-30 characters and more then 30 characters, I would choose a suffix of the text's lentgh of 130 %, 120 % and 110% respectively.
We have good experience with using @ as a prefix, and [appropriate number of underscores]@ as suffix.

e.g.
@this is a middle long text__@

Describe alternatives you've considered

No response

Screenshots

No response

Additional context

No response

@nijel nijel added the enhancement Adding or requesting a new feature. label Mar 16, 2022
@nijel nijel added this to the 4.12 milestone Mar 16, 2022
@nijel
Copy link
Member

nijel commented Mar 16, 2022

This is how it will look like:

image

Feedback is welcome.

@nijel nijel closed this as completed in 7db36e4 Mar 16, 2022
@github-actions
Copy link

Thank you for your report; the issue you have reported has just been fixed.

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

@KadAnna
Copy link
Author

KadAnna commented Jun 9, 2022

Thank you for the nice feature! works perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adding or requesting a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants