-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Translation helper improvement (added html parameter) #9696
Translation helper improvement (added html parameter) #9696
Conversation
app/helpers/application_helper.rb
Outdated
@@ -154,12 +154,12 @@ def current_page?(page) | |||
'is-active' if request.path == page | |||
end | |||
|
|||
def translation(key, options = {}) | |||
def translation(key, options = {},html = true) |
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.
Space missing after comma.
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.
Silly me
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.
Don't take codeclimate bot /too/ seriously, it needs to learn to be friendlier! But thank you!
Codecov Report
@@ Coverage Diff @@
## main #9696 +/- ##
=======================================
Coverage ? 81.89%
=======================================
Files ? 98
Lines ? 5928
Branches ? 0
=======================================
Hits ? 4855
Misses ? 1073
Partials ? 0 |
Ah it looks like perhaps the conflicts need to be resolved to trigger the tests? |
Thanks, this is looking great so far! |
Code Climate has analyzed commit 89935c4 and detected 0 issues on this pull request. View more on Code Climate. |
This looks great @imajit 🎉 ...and thanks for replacing the |
The issue you have referenced #9696 has been closed, is there another main planning issue you can reference? |
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.
LGTM
No, I guess it got closed when I tagged it in a different PR. |
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.
@imajit LGTM 🎉
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.
Looking Great 🎉 thanks @imajit
merged..lets confirm on stable after build.. thanks everyone |
* Changed translation function * Adding space Co-authored-by: imajit <[email protected]>
* Changed translation function * Adding space Co-authored-by: imajit <[email protected]>
Part of #9686
Fixes #7798 #9494
As the translation function was called inside the HTML tag, there were rendering issues; I fixed it by adding an
HTML = true
optional parameter in the function, now we can passhtml=false
in cases where the function is called inside the HTML tag.Current UI
After changes