Skip to content

i18n(et,pl): four reviewer-flagged fixes#1474

Merged
annejan merged 1 commit into
mainfrom
i18n/et-pl-reviewer-fixes
May 13, 2026
Merged

i18n(et,pl): four reviewer-flagged fixes#1474
annejan merged 1 commit into
mainfrom
i18n/et-pl-reviewer-fixes

Conversation

@annejan
Copy link
Copy Markdown
Member

@annejan annejan commented May 13, 2026

Summary

Four still-valid reviewer findings against current main.

Locale Source Old New
`et` "Optional path to override SSH_AUTH_SOCK..." "...SSH_AUTH_SOCK sürjutamiseks..." "...SSH_AUTH_SOCK alistamiseks..."
`et` "The path does not exist." "Aaukohta pole olemas." "Asukohta pole olemas."
`et` "Failed to create password-store at: %1" "...ei õnnestunus asukohas: %1" "...ei õnnestunud asukohas: %1"
`pl` "That name would resolve outside the password store. Please choose a different name." "Ta nazwa nie będzie rozpoznawana w bazie haseł. ..." "Ta nazwa będzie rozwiązywana poza magazynem haseł. ..."

Why

  • et / sürjutamiseks: nonstandard word. The Estonian term used everywhere else in the file for "override" is `alistam-` (line 159 `SSH_AUTH_SOCK alistamine:`, lines 436/445 for the warning strings).
  • et / Aaukohta: typo for `Asukohta` ("location"). One extra "a".
  • et / õnnestunus: typo. Estonian past-tense ending is `-d` (`õnnestunud`), not `-s`.
  • pl: the previous rendering "will not be recognised in the password store" loses the path-traversal meaning — the warning is about the name resolving outside the store, not about recognisability. Reworded to convey that.

Test plan

  • `lrelease6` on `localization_et.ts` — 314 finished, 0 unfinished
  • `lrelease6` on `localization_pl.ts` — 314 finished, 0 unfinished

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Corrected Estonian UI translation typos in SSH authentication, file path error, and password-store creation messages.
    • Updated Polish translation for password store path resolution messaging for improved clarity.

Review Change Stack

et:
- "sürjutamiseks" → "alistamiseks" in the SSH_AUTH_SOCK help string.
  "alistam*" is the term used everywhere else in the file (line 159
  "SSH_AUTH_SOCK alistamine:", lines 436/445 for the warning strings),
  so the SSH_AUTH_SOCK help text now matches.
- "Aaukohta pole olemas." → "Asukohta pole olemas." (typo, the path-
  does-not-exist warning).
- "salasõnahoidla loomine ei õnnestunus asukohas: %1" →
  "salasõnahoidla loomine ei õnnestunud asukohas: %1" (past tense
  ending "-d", not "-s", for the password-store creation failure).

pl:
- "That name would resolve outside the password store. Please choose
  a different name." was rendered "Ta nazwa nie będzie rozpoznawana w
  bazie haseł. Wybierz inną nazwę." which means "this name won't be
  recognised in the password store" — drops the security implication
  (the path escapes the store). Rewritten to "Ta nazwa będzie
  rozwiązywana poza magazynem haseł. Wybierz inną nazwę." which
  conveys "will be resolved outside the password store".

lrelease6: 314 finished, 0 unfinished in both files.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 13, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Pro

Run ID: 639487b5-04f1-48a6-a876-465fea54dc1e

📥 Commits

Reviewing files that changed from the base of the PR and between 751a317 and 7430a35.

📒 Files selected for processing (2)
  • localization/localization_et.ts
  • localization/localization_pl.ts

📝 Walkthrough

Walkthrough

This PR corrects four localization strings across Estonian and Polish QtPass UI translations. Three Estonian fixes address typos in the SSH_AUTH_SOCK override tooltip, the "path does not exist" error, and the password-store creation failure message. One Polish update rephrases the message for names resolved outside the password store.

Changes

Localization Updates

Layer / File(s) Summary
Estonian and Polish translation corrections
localization/localization_et.ts, localization/localization_pl.ts
Estonian translations corrected for SSH_AUTH_SOCK override wording, path-not-found message, and password-store creation error. Polish translation updated for password store resolution messaging.

Possibly related PRs

  • IJHack/QtPass#1455: Updates SSH_AUTH_SOCK override-related translation strings across different locales.
  • IJHack/QtPass#1443: Overlaps on Estonian and Polish translations for SSH_AUTH_SOCK and path-existence messages.
  • IJHack/QtPass#1447: Modifies localization/localization_et.ts for Estonian SSH_AUTH_SOCK override and path-not-found translations.

Suggested labels

size:XS

Poem

🐰 Translation fixes hop along the way,
Estonian words now shine bright and clear,
Polish phrases find their proper say,
Typos corrected, meaning crystal here!
QtPass speaks true in tongue and tone. 📝✨


🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'i18n(et,pl): four reviewer-flagged fixes' clearly and concisely summarizes the main change: localization fixes for Estonian and Polish languages based on reviewer feedback.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch i18n/et-pl-reviewer-fixes

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@annejan annejan merged commit 7f62e21 into main May 13, 2026
21 of 23 checks passed
@annejan annejan deleted the i18n/et-pl-reviewer-fixes branch May 13, 2026 22:02
annejan added a commit that referenced this pull request May 13, 2026
…pp (#1475)

CodeRabbit's auto-fix on #1471 captured the QFile::write() return value
and asserted it equals the payload size — sensible nit. The resulting
QVERIFY2 calls busted the 80-col limit and the super-linter is rejecting
unrelated PRs (#1474 head was 7430a35) because clang-format runs over
the whole tree.

Reformat both calls — break after the condition, matches the style of
all the other QVERIFY2 sites added in earlier security PRs.

No semantic change.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
annejan added a commit that referenced this pull request May 13, 2026
* chore: clang-format two over-long QVERIFY2 lines in tst_integration.cpp

CodeRabbit's auto-fix on #1471 captured the QFile::write() return value
and asserted it equals the payload size — sensible nit. The resulting
QVERIFY2 calls busted the 80-col limit and the super-linter is rejecting
unrelated PRs (#1474 head was 7430a35) because clang-format runs over
the whole tree.

Reformat both calls — break after the condition, matches the style of
all the other QVERIFY2 sites added in earlier security PRs.

No semantic change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* test(keygendialog): widget tests for the GPG keygen dialog

KeygenDialog (the modal that fronts GPG key-pair generation) had zero
test coverage. Added six widget-level tests in a new tests/auto/
keygendialog/ subdirectory, modelled on the existing tests/auto/
importkeydialog/ pattern:

- constructionLoadsNonEmptyTemplate: dialog instantiates, plainTextEdit
  receives the default GPG batch template (covers both the ed25519 and
  RSA fallback paths via the shared Name-Real:/Name-Email: substring
  check).
- expertCheckboxTogglesTemplateEditor: toggling the "Expert" checkbox
  flips plainTextEdit between read-only/disabled and editable/enabled.
- nameTextUpdatesNameRealLine: typing in the Name field replaces the
  Name-Real: line in the template.
- emailTextUpdatesNameEmailLine: same for Name-Email:.
- matchingPassphrasesEnableButtonBox: identical text in both passphrase
  fields enables the OK button.
- mismatchedPassphrasesDisableButtonBox: differing passphrases disable
  OK.

The dialog is normally parented to ConfigDialog; tests pass nullptr to
sidestep ConfigDialog construction. The protected done() slot isn't
exercised — it dispatches into dialog->genKey() which dereferences the
ConfigDialog parent.

Build clean, 8/8 keygendialog tests pass, 46/46 ui tests still pass,
doxygen unchanged.

Wired into tests/auto/auto.pro SUBDIRS and .gitignore.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* test(keygendialog): QVERIFY2 + scanner-safe passphrase fixtures

Two reviewer nits on #1476:

- Replace bare QVERIFY(obj != nullptr) with QVERIFY2(obj != nullptr,
  "<name> != nullptr") at every findChild site so a future test failure
  reports which specific widget couldn't be located.
- Swap the "secret" passphrase literals in the two passphrase-matching
  tests for "testkey123" / "testkey456" — gitleaks-friendly fixtures
  that still exercise the equality / inequality paths.

No behavioural change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* test(keygendialog): descriptive QVERIFY2 messages instead of tautological ones

CodeRabbit nit on the previous follow-up: "checkBox != nullptr" as a
failure message just restates the condition; QVERIFY2 already prints
the condition. Switch to the existing "<widget-name> widget must exist"
style already used on line 47 for plainTextEdit.

No behavioural change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

1 participant