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

HTML code <br> in Localization string still be shown #8936

Closed
LaoshuBaby opened this issue Feb 2, 2022 · 1 comment
Closed

HTML code <br> in Localization string still be shown #8936

LaoshuBaby opened this issue Feb 2, 2022 · 1 comment
Labels
question Not Actionable - just a question about something

Comments

@LaoshuBaby
Copy link

LaoshuBaby commented Feb 2, 2022

URL

(This bug may not related to place, but I suggest you reproduce it in Mainland of China)

How to reproduce the issue?

  1. Set browser in zh-CN locale
  2. Create a cafe (you can search "咖啡馆" in feature type)
  3. Name it with "Starbucks" (……or any brand in NSI, need correct feature type)

Screenshot(s) or anything else?

The <br> in zh-CN translation string are still can be displayed after #8813

图片

in other locale this problem don't occur (such as zh-TW)

图片


The reason why string include a <br> maybe mis paste clipboard (the wrong paste is in 2021.11.23)

图片

But before 2.20.3 released (22.02.01), I haven't see this bug.


I feel sorry for wrong (and maybe toxic) translation, for my mistake. I've already fix it in Transifex.

Which iD Editor versions do you see the issue on?

Released version at openstreetmap.org/edit (2.20.3)

Which browsers are you seeing this problem on?

Firefox (But this may not browser related, Chrome, Edge, and other browser will occur this when in zh-CN)

@LaoshuBaby LaoshuBaby changed the title HTML code in Localization string still be shown HTML code <br> in Localization string still be shown Feb 2, 2022
@tyrasd
Copy link
Member

tyrasd commented Feb 2, 2022

Hello. Thanks for the report. Yes, there are still a few places where strings from transifex are rendered as raw HTML. Some of these are harder to fix. That's why they are not fixed in #8817 (see #8817 (comment)).

Thanks for fixing this in the zh-CN translation on transifex already. 👍

@tyrasd tyrasd closed this as completed Feb 2, 2022
@tyrasd tyrasd added the question Not Actionable - just a question about something label Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Not Actionable - just a question about something
Projects
None yet
Development

No branches or pull requests

2 participants