-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Fix comment box not showing on PR commit replies #5239
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5239 +/- ##
=========================================
Coverage ? 37.39%
=========================================
Files ? 312
Lines ? 46313
Branches ? 0
=========================================
Hits ? 17317
Misses ? 26517
Partials ? 2479 Continue to review full report at Codecov.
|
Hmm.. it's very interesting in the English translation the comment button appears in the following structure (This is presumably the case for every translation that works): <div id="code-comments-...">
<div class="ui comments">...</div>
<button class="comment-form-reply ui green labeled icon tiny button">...</button>
<form class="ui form hide comment-form comment-form-reply" action="..." method="post">...</form>
</div> However, in the Spanish translation it becomes: <div id="code-comments-X">
<div class="ui comments">...</div>
<a href="#issuecomment-X">
<button class="comment-form-reply ui green labeled icon tiny button">...</button>
</a>
<form class="ui form hide comment-form comment-form-reply" action="..." method="post">...</form>
</div> |
OK I think that the locale-es_ES.ini file has a problem. There are likely other problems in that file too. line 459: ...
issues.commented_at=`comentado <a href="#%s"> %s`</a>
... is the cause of this issue. The backtick (`) before the |
Nice find! This might not be the best fix then. It works but it might not be the most efficient. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems as though the translation files may be an issue. See: #5237 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is attempting to fix the problem in the wrong place. The issue lies in the locale file for Spanish and the problem should be fixed in the translation.
If you guys are fine with it, I can use this PR to make those changes. Unless @zeripath you would like to, or if another PR should be raised for this issue. |
The translations should be done via crowdin, as otherwise they will be overwritten by crowdin. |
line 795: auths.tip.facebook also needs adjustment as it has an open double-quote. |
Closing as translation files have been updated. |
Fixes #5237
The form that gets revealed when clicking on the "Reply" button mentioned in #5237, and the button, do not share the same parent. The button ends up getting wrapped in a link which causes this issue.
I have no idea how or why this worked on the English translation though. Didn't dig in that deep. :)