Skip to content

gui: Remove unused strings from translations - #8288

Merged
calmh merged 4 commits into
syncthing:mainfrom
tomasz1986:tomasz86/gui/remote-unused-translations
Aug 10, 2022
Merged

calmh merged 4 commits into
syncthing:mainfrom
tomasz1986:tomasz86/gui/remote-unused-translations

Conversation

@tomasz1986

Copy link
Copy Markdown
Member

These strings no longer exist in the GUI, hence there is no need to keep
them in the translation json files either.

Signed-off-by: Tomasz Wilczyński [email protected]

These strings no longer exist in the GUI, hence there is no need to keep
them in the translation json files either.

Signed-off-by: Tomasz Wilczyński <[email protected]>
@acolomb

acolomb commented Apr 17, 2022

Copy link
Copy Markdown
Member

Would it hurt to keep them? Should they ever get reintroduced, the existing translations can be used again, if any are present (haven't checked).

@tomasz1986

Copy link
Copy Markdown
Member Author

Maybe, but the reason why they're not present is usually because they've been replaced with different (or better) ones 😉. Keeping dead strings like that means that translators will likely waste their time on something that isn't even used (and this is even if they're already translated, e.g. when trying to improve existing translations, etc.).

"Anonymous Usage Reporting": "Anonymous Usage Reporting",
"Anonymous usage report format has changed. Would you like to move to the new format?": "Anonymous usage report format has changed. Would you like to move to the new format?",
"Apply": "Apply",
"Are you sure you want to continue?": "Are you sure you want to continue?",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This one for example looks like it might be a good candidate for reusing. I'd rather waste some translators' time on these few strings than dumping the effort of past contributors.

If it were easy to resurrect the translations from Git history later, this would not matter much. But I'm afraid it won't be that easy, especially with Transifex involved.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, there are some that perhaps may re-appear later, but when it comes to the longer sentences, it's rather unlikely. Some of the others are simply outdated, e.g. the 2014-2019 copyright notice.

For the record, the translate script doesn't remove unused strings automatically, but there has already been a case historically where all unused strings were removed, and that happened in ec718e7. The strings listed to remove in this PR are those that have become obsolete since that time point.

calmh added 3 commits August 2, 2022 10:10
* release:
  lib/ur: Properly initialize map in failure data (fixes syncthing#8479)
* main: (94 commits)
  build: bump actions/setup-go from 2.2.0 to 3.2.1 (syncthing#8492)
  build: Let dependabot suggest updates to GitHub actions (syncthing#8490)
  update: Go version in update-docs-translations action (syncthing#8489)
  gui, man, authors: Update docs, translations, and contributors
  cmd/syncthing: Refactor CLI code to allow passing CLI arguments via function parameter (syncthing#8485)
  build: Update quic-go for Go 1.19 (syncthing#8483)
  lib/ur: Properly initialize map in failure data (fixes syncthing#8479) (syncthing#8480)
  lib/ur: Properly initialize map in failure data (fixes syncthing#8479)
  gui, man, authors: Update docs, translations, and contributors
  docs: Clarify docker network mode limitations (syncthing#8472)
  lib/config: Use net.JoinHostPort instead of string manipulation (syncthing#8470)
  lib/api: Fix inverted logic in string comparison
  lib/model: Use bytes.Equal instead of converting to string (syncthing#8469)
  all: Add build constants for runtime.GOOS comparisons (syncthing#8442)
  cmd/strelaysrv: Fix superfluous else statements (syncthing#8468)
  all: Fix nested `if` with `else if` (syncthing#8467)
  all: Unused errors
  lib/fs: Consolidate append in test
  lib/api: Further (final?) unused parameters removal
  cmd/syncthing: Incorrect error handling
  ...
@calmh
calmh enabled auto-merge (squash) August 10, 2022 06:30
@calmh
calmh merged commit 28c660e into syncthing:main Aug 10, 2022
@tomasz1986
tomasz1986 deleted the tomasz86/gui/remote-unused-translations branch August 13, 2022 13:12
calmh added a commit to calmh/syncthing that referenced this pull request Aug 16, 2022
* main:
  lib/model: Skip paused folders in aggregated completion loop (fixes syncthing#8219) (syncthing#8220)
  gui: Remove unused strings from translations (syncthing#8288)
calmh added a commit to calmh/syncthing that referenced this pull request Aug 18, 2022
* main: (256 commits)
  cmd/syncthing: Use os.executable in monitor, only fallback to PATH (syncthing#8502)
  all: Modernize error wrapping (syncthing#8491)
  gui, man, authors: Update docs, translations, and contributors
  cmd/syncthing: Work around binary in current dir restriction (fixes syncthing#8499) (syncthing#8500)
  lib/fs: Cache user lookups (syncthing#8496)
  all: Make scanning ownership opt-in (syncthing#8497)
  lib/model: Skip paused folders in aggregated completion loop (fixes syncthing#8219) (syncthing#8220)
  gui: Remove unused strings from translations (syncthing#8288)
  gui, api: Show internal config and state paths (fixes syncthing#8323) (syncthing#8324)
  build(deps): bump github.com/go-ldap/ldap/v3 from 3.4.1 to 3.4.4 (syncthing#8475)
  build: bump actions/setup-go from 2.2.0 to 3.2.1 (syncthing#8492)
  build: Let dependabot suggest updates to GitHub actions (syncthing#8490)
  update: Go version in update-docs-translations action (syncthing#8489)
  gui, man, authors: Update docs, translations, and contributors
  cmd/syncthing: Refactor CLI code to allow passing CLI arguments via function parameter (syncthing#8485)
  build: Update quic-go for Go 1.19 (syncthing#8483)
  lib/ur: Properly initialize map in failure data (fixes syncthing#8479) (syncthing#8480)
  lib/ur: Properly initialize map in failure data (fixes syncthing#8479)
  gui, man, authors: Update docs, translations, and contributors
  docs: Clarify docker network mode limitations (syncthing#8472)
  ...
@calmh calmh added this to the v1.21.0 milestone Aug 23, 2022
@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Aug 10, 2023
@syncthing syncthing locked and limited conversation to collaborators Aug 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants