Skip to content

Translation/update#921

Merged
Crustack merged 3 commits intomainfrom
translation/update
Mar 16, 2026
Merged

Translation/update#921
Crustack merged 3 commits intomainfrom
translation/update

Conversation

@Crustack
Copy link
Copy Markdown
Owner

@Crustack Crustack commented Mar 15, 2026

Closes #893
Closes #897
Closes #922

Summary by CodeRabbit

  • Documentation
    • Czech translation coverage updated to 96% (336/347).
    • Chinese (Simplified) translation coverage updated to 98% (341/347).
    • Added and expanded localized text for cleanup/migration flows, backup hints, navigation actions (jump to top/bottom), duplicate handling, truncation warnings, month/day labels, theme/action labels, color/default prompts, and text-size preview.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 15, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: dce852b0-a05e-44b9-a6dd-27400b947ad6

📥 Commits

Reviewing files that changed from the base of the PR and between 7587e02 and b6cec20.

⛔ Files ignored due to path filters (1)
  • app/translations.xlsx is excluded by !**/*.xlsx
📒 Files selected for processing (3)
  • TRANSLATIONS.md
  • app/src/main/res/values-cs/strings.xml
  • app/src/main/res/values-zh-rCN/strings.xml

📝 Walkthrough

Walkthrough

This PR updates translation resources: increases translation coverage in TRANSLATIONS.md and adds/updates string and plural entries for Czech (values-cs) and Simplified Chinese (values-zh-rCN). No functional or API surface changes.

Changes

Cohort / File(s) Summary
Translation Metadata
TRANSLATIONS.md
Updated translation coverage percentages: Czech 90% (314/347) → 96% (336/347); Chinese (Simplified) 94% (329/347) → 98% (341/347).
Czech Localization
app/src/main/res/values-cs/strings.xml
Added ~30 new strings and plurals (backup, auto-remove, biometric advice, cleanup/migration texts, navigation: jump_to_top/jump_to_bottom, date/month keys, theme super_dark, duplicate/duplicates, truncation messages, etc.). Updated copy value and simplified unlock label.
Chinese (Simplified) Localization
app/src/main/res/values-zh-rCN/strings.xml
Added multiple UI/navigation strings (change_color_default_message, day, default_color_hint, jump_to_top, jump_to_bottom, make_default, set_as_default_color*, swap_action, of_the_month*, text_size_preview). No removals or behavioral changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰 I hopped through strings both near and far,
Added jumps, months, and cleanup in my jar.
Czech and Chinese now sing in tune,
Translations bright beneath the moon.
Hop—these keys are set; hooray, I’ll nap soon!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'Translation/update' is vague and generic, lacking specific details about which translations were updated or what coverage improvements were achieved. Revise the title to be more specific, such as 'Update Czech and Simplified Chinese translations' or 'Update translations for Czech and Simplified Chinese languages'.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check ✅ Passed The pull request successfully addresses all three linked issues by providing updated Czech translations (#897) and Simplified Chinese translations (#893, #922) with coverage improvements.
Out of Scope Changes check ✅ Passed All changes are directly related to the linked issues: Czech and Simplified Chinese translation updates, plus a TRANSLATIONS.md documentation update reflecting the new coverage percentages.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch translation/update
📝 Coding Plan
  • Generate coding plan for human review comments

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.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@app/src/main/res/values-cs/strings.xml`:
- Line 47: Remove the embedded "\n" escapes from user-visible Czech strings so
they don’t render stray blank lines: edit the string resource named
"biometric_backup_advice" to drop the trailing "\n" and similarly remove any
leading/trailing "\n" escapes from each plural item under
"notes_too_big_truncating" in the Czech locale (the plural entries around the
250–275 region) so the messages render without extra blank lines.
- Line 352: The Czech strings.xml removed the older text-size labels required by
NotallyXPreferences.kt; restore localized entries for the two resource names
used there (text_size_note_editor and text_size_overview) so those keys remain
available until the code switches to the new key (text_size). Update the values
in values-cs/strings.xml to include <string
name="text_size_note_editor">…</string> and <string
name="text_size_overview">…</string> (localized Czech text) so
R.string.text_size_note_editor and R.string.text_size_overview referenced by
NotallyXPreferences.kt continue to resolve.

In `@app/src/main/res/values-zh-rCN/strings.xml`:
- Line 341: The locale file is missing the two resource keys referenced by
NotallyXPreferences.kt (R.string.text_size_note_editor and
R.string.text_size_overview); add string entries for "text_size_note_editor" and
"text_size_overview" (with appropriate Simplified Chinese translations, e.g.,
matching "文本大小") to the strings.xml alongside the existing "text_size" key so
the preference rows resolve to the localized strings instead of falling back to
the default locale.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 20a6ec8c-1dc3-43a2-8ead-9fe9afbe3d86

📥 Commits

Reviewing files that changed from the base of the PR and between f734488 and 6a0cbe1.

⛔ Files ignored due to path filters (1)
  • app/translations.xlsx is excluded by !**/*.xlsx
📒 Files selected for processing (3)
  • TRANSLATIONS.md
  • app/src/main/res/values-cs/strings.xml
  • app/src/main/res/values-zh-rCN/strings.xml

<string name="backup_periodic">Periodické zálohy</string>
<string name="backup_periodic_hint">Pokud tuto možnost povolíte, zálohy budou automaticky vytvářeny ve zvoleném adresáři záloh. Nemusí to fungovat, pokud máte povolený úsporný režim</string>
<string name="behaviour">Chování</string>
<string name="biometric_backup_advice">Před povolením nebo vypnutím biometrického zámku se doporučuje exportovat úplnou zálohu všech poznámek, pro případ, že by šifrování přes biometrický zámek selhalo.\n</string>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Drop the embedded \n escapes from these user-visible messages.

These new values add explicit leading/trailing newlines, so the Czech locale will render stray blank lines in progress and truncation messages.

Suggested fix
-    <string name="biometric_backup_advice">Před povolením nebo vypnutím biometrického zámku se doporučuje exportovat úplnou zálohu všech poznámek, pro případ, že by šifrování přes biometrický zámek selhalo.\n</string>
+    <string name="biometric_backup_advice">Před povolením nebo vypnutím biometrického zámku se doporučuje exportovat úplnou zálohu všech poznámek, pro případ, že by šifrování přes biometrický zámek selhalo.</string>

-    <string name="migration_splitting_notes">\nRozdělování příliš velkých poznámek…\n </string>
+    <string name="migration_splitting_notes">Rozdělování příliš velkých poznámek…</string>

-    <string name="note_text_too_long_truncated">Text překročil délku, zkráceno na %1$d znaků\n</string>
+    <string name="note_text_too_long_truncated">Text překročil délku, zkráceno na %1$d znaků</string>

-    <string name="note_too_big_truncating">Poznámka je příliš velká na uložení, byla zkrácena na %1$s znaků (původně: %2$s)\n</string>
+    <string name="note_too_big_truncating">Poznámka je příliš velká na uložení, byla zkrácena na %1$s znaků (původně: %2$s)</string>

Apply the same cleanup to each notes_too_big_truncating plural item.

Also applies to: 250-275

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/src/main/res/values-cs/strings.xml` at line 47, Remove the embedded "\n"
escapes from user-visible Czech strings so they don’t render stray blank lines:
edit the string resource named "biometric_backup_advice" to drop the trailing
"\n" and similarly remove any leading/trailing "\n" escapes from each plural
item under "notes_too_big_truncating" in the Czech locale (the plural entries
around the 250–275 region) so the messages render without extra blank lines.

<string name="text_default">Výchozí</string>
<string name="text_size_note_editor">Velikost písma (editor poznámek)</string>
<string name="text_size_overview">Velikost písma (přehled)</string>
<string name="text_size">Velikost písma</string>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Keep the old text-size labels localized until the code switches over.

NotallyXPreferences.kt:35-44 still uses R.string.text_size_note_editor and R.string.text_size_overview. Removing those Czech entries here means those settings labels fall back to the default language.

Suggested fix
     <string name="text_default">Výchozí</string>
+    <string name="text_size_note_editor">Velikost písma</string>
+    <string name="text_size_overview">Velikost písma</string>
     <string name="text_size">Velikost písma</string>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<string name="text_size">Velikost písma</string>
<string name="text_default">Výchozí</string>
<string name="text_size_note_editor">Velikost písma</string>
<string name="text_size_overview">Velikost písma</string>
<string name="text_size">Velikost písma</string>
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/src/main/res/values-cs/strings.xml` at line 352, The Czech strings.xml
removed the older text-size labels required by NotallyXPreferences.kt; restore
localized entries for the two resource names used there (text_size_note_editor
and text_size_overview) so those keys remain available until the code switches
to the new key (text_size). Update the values in values-cs/strings.xml to
include <string name="text_size_note_editor">…</string> and <string
name="text_size_overview">…</string> (localized Czech text) so
R.string.text_size_note_editor and R.string.text_size_overview referenced by
NotallyXPreferences.kt continue to resolve.

@Crustack Crustack force-pushed the translation/update branch from 6a0cbe1 to 804f68a Compare March 15, 2026 12:42
@Crustack Crustack force-pushed the translation/update branch from 7587e02 to a0c4c6c Compare March 16, 2026 17:48
@Crustack Crustack merged commit 46e621b into main Mar 16, 2026
1 check passed
@Crustack Crustack deleted the translation/update branch March 16, 2026 17:55
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.

Simplified Chinese translations update Czech translations update Simplified Chinese translations update

1 participant