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

Backslash character isn't recognised by the replacements system #5376

Closed
IlDucci opened this issue Feb 8, 2021 · 2 comments
Closed

Backslash character isn't recognised by the replacements system #5376

IlDucci opened this issue Feb 8, 2021 · 2 comments
Assignees
Labels
bug Something is broken.
Milestone

Comments

@IlDucci
Copy link

IlDucci commented Feb 8, 2021

When using the Translation Max Size feature with a .PO file, adding a replacement that contains a backslash () won't get recognised.

I already tried

  • Used both local replacements (adding comments to the .po file) and global replacements (Using the Settings of the Project's Component).
  • Tried to escape the character (writing \)
  • Tried to use quotation marks (writing "\")

To Reproduce the issue

  1. Prepare a font typeface, add the proper font settings.
  2. Have a source string that has a backslash. An example would be: \E0Welcome.
  3. Add a replacement. Example: replacements:"\\E0":"​" (the second quotation marks contain a zero-width space)
  4. Translation Max Size graphical preview won't recognise the element, thus, the element to be replaced is still visible.

Expected behavior

Using my example, the element to be replaced should be replaced with zero-width space, and thus, become invisible.

Screenshots

imagen

Server configuration and status

Docker-based installation of Weblate, version 4.4.2. For more details, the admin of the server might be needed. An old version of the settings can be found here: #4136 (comment)

Additional context

Not that I can think about at the moment.

@IlDucci IlDucci added the question This is more a question for the support than an issue. label Feb 8, 2021
@github-actions
Copy link

github-actions bot commented Feb 8, 2021

This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger. In case your question is already answered, making a donation is the right way to say thank you!

@nijel nijel self-assigned this Feb 9, 2021
@nijel nijel added bug Something is broken. and removed question This is more a question for the support than an issue. labels Feb 9, 2021
@nijel nijel added this to the 4.5 milestone Feb 9, 2021
@nijel nijel closed this as completed in 14581ec Feb 9, 2021
@github-actions
Copy link

github-actions bot commented Feb 9, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken.
Projects
None yet
Development

No branches or pull requests

2 participants