-
Notifications
You must be signed in to change notification settings - Fork 157
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
Escaping translations #3032
Escaping translations #3032
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
9c9e156
to
3fc541c
Compare
Docs about escaping here - owncloud/owncloud-design-system#639 |
@@ -258,7 +258,7 @@ export default { | |||
}, | |||
noResharePermsMessage () { | |||
const translated = this.$gettext('You don\'t have permission to share this %{type}.') | |||
return this.$gettextInterpolate(translated, { type: this.highlightedFile.type }) | |||
return this.$gettextInterpolate(translated, { type: this.highlightedFile.type }, false) |
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.
does it hurt keeping "true" here ? just wondering
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.
The only values we are getting here are "file" and "folder" so don't see much value in keeping it there.
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.
👍
Description
Don't escape translations in case they contain resource name or user name. Escape everything else.
How Has This Been Tested?
Types of changes
Checklist: