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

Escaping translations #3032

Merged
merged 1 commit into from
Feb 13, 2020
Merged

Escaping translations #3032

merged 1 commit into from
Feb 13, 2020

Conversation

LukasHirt
Copy link
Collaborator

@LukasHirt LukasHirt commented Feb 13, 2020

Description

Don't escape translations in case they contain resource name or user name. Escape everything else.

How Has This Been Tested?

  • test environment: Manually

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@update-docs
Copy link

update-docs bot commented Feb 13, 2020

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.

@LukasHirt LukasHirt force-pushed the tech-debt/escaping-translations branch from 9c9e156 to 3fc541c Compare February 13, 2020 10:17
@LukasHirt
Copy link
Collaborator Author

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)
Copy link
Contributor

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

Copy link
Collaborator Author

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.

Copy link
Contributor

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@PVince81 PVince81 merged commit 6d85da1 into master Feb 13, 2020
@delete-merged-branch delete-merged-branch bot deleted the tech-debt/escaping-translations branch February 13, 2020 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status:Needs-Review Needs review from a maintainer Type:Technical-Debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants