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

string incorrectly marked wrong #17

Open
roptat opened this issue Apr 8, 2021 · 2 comments
Open

string incorrectly marked wrong #17

roptat opened this issue Apr 8, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@roptat
Copy link

roptat commented Apr 8, 2021

One of the strings of this app contains illegal characters, except I believe they are correct:

Some character\'s are considered illegal in \'xml\' format and are not acceptable! Please be noted that the entire text will be neglected (or even app crashes in the worst case) when an illegal character is detected!\n\nSome of the prohibited character\'s includes, but not limited to\n& - except for certain words\n< and > -except for certain cases such as <b>, </b>, <i>, </i> etc.\nSingle (\') or double (\") quotation marks without a backward slash (\\) in the front, etc.

The issue seems to be with >b<. This prevents me from translating it properly. Are you interpreting it twice?

How about making all characters legal and escaping when saving the string instead? That would be much less confusing for translators.

@sunilpaulmathew
Copy link
Owner

@roptat
Thanks for raising this issue.

No, the mentioned character will be shown in the app as '< b >' (without space before and after the b). Also, the problem for making all characters legal is the following

The app will currently write to the XML string (saved on the internal directory) when the user clicks the update. If app tries to save a string with illegal characters without that checking, it is very likely that the app will crash or even the string becomes corrupted. I really don't have any better solution to solve this issue at this moment.

@roptat
Copy link
Author

roptat commented Apr 8, 2021

So, how can I translate this string from the app? Right now it says the string contains invalid characters, and refuses to save my translation.

@sunilpaulmathew sunilpaulmathew added the bug Something isn't working label Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants