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

fix: JS error in page.js when the is a quote in button translation #17152

Merged
merged 2 commits into from Jun 13, 2022

Conversation

FHenry
Copy link
Contributor

@FHenry FHenry commented Jun 12, 2022

When there is a simple quote in translation on button there is an JS error

2022-06-12.12-13-24.mp4

I dig to this because in french translation file for ERPNext some simple quote are "HTML entitsed" with ' some not.

I wonder why and as @marination on this ERPNext translation PR (frappe/erpnext#31232) ask me why I change some simple quote to '. The fact is if there is a bug with simple quote I first want to change all simple quote to ' to avoid all bugs, but this is a bad way to do it.
I think it's better if we can avoid "HTML entitsed" into translation, write translation as we write in books is better.

So I found this in page.js and I propose the PR

@FHenry FHenry requested a review from a team as a code owner June 12, 2022 10:17
@FHenry FHenry requested review from surajshetty3416 and removed request for a team June 12, 2022 10:17
@codecov
Copy link

codecov bot commented Jun 12, 2022

Codecov Report

Merging #17152 (03f4858) into develop (c157564) will decrease coverage by 3.61%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop   #17152      +/-   ##
===========================================
- Coverage    58.53%   54.92%   -3.62%     
===========================================
  Files          777      766      -11     
  Lines        69429    68445     -984     
  Branches      6020     5854     -166     
===========================================
- Hits         40641    37593    -3048     
- Misses       25164    26734    +1570     
- Partials      3624     4118     +494     
Flag Coverage Δ
ui-tests 38.59% <100.00%> (-10.50%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@surajshetty3416 surajshetty3416 added the ignore-flaky-test Failing tests seem to be flaky. It can be ignored. label Jun 13, 2022
@surajshetty3416 surajshetty3416 merged commit 4dc8d0f into frappe:develop Jun 13, 2022
surajshetty3416 added a commit that referenced this pull request Jun 13, 2022
…-17152

fix: JS error in page.js when the is a quote in button translation (backport #17152)
@FHenry FHenry deleted the dev_fix_quote_in_button_name branch June 13, 2022 06:28
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ignore-flaky-test Failing tests seem to be flaky. It can be ignored.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants