-
- Notifications
You must be signed in to change notification settings - Fork 6.2k
Fix localization texts that contain semicolon #2900
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 #2900 +/- ## ======================================= Coverage 27.05% 27.05% ======================================= Files 89 89 Lines 17650 17650 ======================================= Hits 4775 4775 Misses 12189 12189 Partials 686 686 Continue to review full report at Codecov.
|
Would it make more sense to just update the |
@ethantkoenig it's not under our control |
modules/templates/helper.go Outdated
return setting.DisableGitHooks | ||
}, | ||
"TrN": TrN, | ||
"UnescapeBS": func(str string) string { |
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.
"BS"? I agree, but maybe we can name it better? 😂
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.
BackSlash :) any suggestions for better name? :)
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.
UnescapeLocale? It also took me a few minutes to figure out what BS stood for
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.
I thought it actually stood for bullshit 😂 I agree with @ethantkoenig that it should be UnescapeLocale
🙂
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.
It can stand for that also :) It can be also temporary fix if unknwon fixes that in go-ini library to support such escape as it is per ini file format. That is why I did not want it to be so intrusive
LGTM |
One alternative is to wrap the |
@ethantkoenig @bkcsoft fixed to better name As for replacing |
@lafriks If this is just a temporary hack until |
@ethantkoenig done |
LGTM |
Fixes #2887