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

Replace pgettext with gettext #10225

Merged
merged 2 commits into from
Dec 20, 2023
Merged

Replace pgettext with gettext #10225

merged 2 commits into from
Dec 20, 2023

Conversation

AlexAndBear
Copy link
Contributor

@AlexAndBear AlexAndBear commented Dec 20, 2023

Description

We removed pgettext, since we merge all translations.json files into one global json file for vue-gettext it is not possible to have two translation types, one created via $gettext (e.G {"Copy": "Kopieren"}) and one via $pgettext (e.G {"Copy":{"Action in the files list row to initiate copying resources":"Kopieren"}} in one json file as the keys are identical.

So those compete against each other and one get lost, and lead to a non translated string

Related Issue

Motivation and Context

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropriate):

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:

Open tasks:

  • ...

Copy link

update-docs bot commented Dec 20, 2023

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.

@AlexAndBear AlexAndBear changed the base branch from stable-8.0 to master December 20, 2023 13:57
Copy link

@AlexAndBear AlexAndBear merged commit e58d7d7 into master Dec 20, 2023
@delete-merged-branch delete-merged-branch bot deleted the remove-pgettext branch December 20, 2023 14:49
ownclouders pushed a commit that referenced this pull request Dec 20, 2023
AlexAndBear added a commit that referenced this pull request Dec 20, 2023
@AlexAndBear AlexAndBear mentioned this pull request Dec 20, 2023
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Translations with pGettext won't be translated
3 participants