[I18N] Variable makes translation difficult

Open Beginner friendly
#269 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript

Research direction

Start in src/components/GeneralSettingsSection.vue at lines 218 and 235, then inspect other uses of the mode variable and the translation keys. Separate the complete and partial wording where needed so Hungarian translations can control capitalization, while preserving the existing meanings and uses elsewhere.

Written by the indexing model from the issue text.

Description

There are these two strings:
https://github.com/nextcloud/backup/blob/0776f9df3de2f808ca94bed1502675409edf1f52/src/components/GeneralSettingsSection.vue#L218
and
https://github.com/nextcloud/backup/blob/0776f9df3de2f808ca94bed1502675409edf1f52/src/components/GeneralSettingsSection.vue#L235

AFAIK the {mode} can be complete or partial, and these variables are used elsewhere too, and this makes translation difficult in Hungarian, as {mode} will be the first word of the translation, so I'd need these with capitalized first letters, but it I do that, it'll break at other places.

If possible, this should not be a variable in the i18n string, but spelt out in two different strings.

Dominant language
PHP
Stars
272
Forks
37
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nextcloud/backup

All issues in nextcloud/backup

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.