Skip to content

Add Spanish translations#197

Open
oscfdezdz wants to merge 2 commits into
netbirdio:mainfrom
oscfdezdz:es
Open

Add Spanish translations#197
oscfdezdz wants to merge 2 commits into
netbirdio:mainfrom
oscfdezdz:es

Conversation

@oscfdezdz

@oscfdezdz oscfdezdz commented Jun 13, 2026

Copy link
Copy Markdown

Summary by CodeRabbit

  • New Features
    • Added complete Spanish localization for the Android app (navigation, settings, profile management, dialogs, and help text).
  • Bug Fixes
    • Fixed privacy policy label typo so the correct link displays.
    • Corrected a misspelled button label in the server-change success dialog.

@coderabbitai

coderabbitai Bot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 47bfb477-5247-4299-b267-7be49674c8d3

📥 Commits

Reviewing files that changed from the base of the PR and between 295efd5 and eddbb18.

📒 Files selected for processing (3)
  • app/src/main/res/layout/fragment_about.xml
  • app/src/main/res/values-es/strings.xml
  • app/src/main/res/values/strings.xml
✅ Files skipped from review due to trivial changes (3)
  • app/src/main/res/layout/fragment_about.xml
  • app/src/main/res/values/strings.xml
  • app/src/main/res/values-es/strings.xml

📝 Walkthrough

Walkthrough

Adds a complete Spanish resource file values-es/strings.xml (151 strings) and corrects three string key issues: a privacy label reference in fragment_about.xml and two keys in values/strings.xml (privacy and change-server close button).

Changes

Spanish Localization and String Fixes

Layer / File(s) Summary
Spanish UI string resources
app/src/main/res/values-es/strings.xml
Complete Spanish translation file with 151 strings for navigation, connection/peer UI, server-change flow, advanced settings, profile management, and dialogs.
String resource key corrections
app/src/main/res/layout/fragment_about.xml, app/src/main/res/values/strings.xml
Fixes text_privacy reference to @string/about_privacy_policy and corrects about_privacy_policy and change_server_success_close string keys in the default values/strings.xml.

🎯 1 (Trivial) | ⏱️ ~5 minutes

A rabbit taps keys, swift and bright,
I stitched Spanish strings through the night.
Privacy fixed, buttons now close—
Menus sing "Hola" as it goes.
🐇✨ Locales done, and all looks right.

🚥 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 'Add Spanish translations' accurately reflects the primary change: adding a complete Spanish Android resources file with localized UI strings.
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 unit tests (beta)
  • Create PR with unit tests

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.

@coderabbitai coderabbitai Bot left a comment

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.

Actionable comments posted: 1

🧹 Nitpick comments (2)
app/src/main/res/values-es/strings.xml (2)

5-6: ⚡ Quick win

Untranslated placeholder text in navigation header strings.

Lines 5–6 contain English placeholder text from the Android Studio template ("Android Studio" and "android.studio@android.com") that were not translated to Spanish. If these nav_header_* strings are rendered in the UI, they should be translated for consistent localization.

If these strings are actually used in the app UI, consider translating them:

  • Line 5: android.studio@android.com → something like usuario.netbird@example.com
  • Line 6: Android StudioAplicación NetBird or a suitable placeholder

If they are purely metadata and not rendered, this can be deferred or left as-is for consistency with the English values/strings.xml.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/src/main/res/values-es/strings.xml` around lines 5 - 6, The nav header
strings nav_header_title and nav_header_subtitle contain English template
placeholders; update their values in the strings resource to Spanish
translations (or appropriate app-specific placeholders) by replacing
nav_header_title's value "Android Studio" with a Spanish label such as
"Aplicación NetBird" (or your chosen app name) and replacing
nav_header_subtitle's value "android.studio@android.com" with a
Spanish/localized placeholder like "usuario.netbird@example.com"; ensure the
updated text stays within the existing <string name="nav_header_title"> and
<string name="nav_header_subtitle"> entries so localization is consistent.

70-70: Fix misspelled string resource key change_server_success_cloe (cloeclose)

dialog_change_server_success.xml uses @string/change_server_success_icon, @string/change_server_success_title, and @string/change_server_success_desc (and the close button uses @android:string/ok), and there are no code/XML references to either change_server_success_cloe or change_server_success_close. So this won’t currently trigger a runtime MissingResourceException, but the resource key is misspelled/unused—rename it in app/src/main/res/values/strings.xml and app/src/main/res/values-es/strings.xml to prevent future mismatches.

🔧 Proposed fix
-    <string name="change_server_success_cloe">Aceptar</string>
+    <string name="change_server_success_close">Aceptar</string>
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/src/main/res/values-es/strings.xml` at line 70, Rename the misspelled
string resource key change_server_success_cloe to change_server_success_close in
the app's default and Spanish string resources (both strings.xml variants), and
update any code or XML that references the old key to use
change_server_success_close; ensure there are no duplicate keys after the rename
and run a resource sync/clean to validate references.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@app/src/main/res/values-es/strings.xml`:
- Line 30: Rename the misspelled string resource keys and keep usages
consistent: change the key about_privacy_poliy to about_privacy_policy in all
strings.xml files where it appears and update the reference in
fragment_about.xml (the layout uses `@string/about_privacy_poliy`) to
`@string/about_privacy_policy`; for change_server_success_cloe, decide the
intended key (likely change_server_success_close) and if so rename the key in
both app/src/main/res/values/strings.xml and
app/src/main/res/values-es/strings.xml to change_server_success_close and update
any callers (there are currently no callers found, so ensure future usages use
the corrected name), or leave as-is if the original spelling was intentional.

---

Nitpick comments:
In `@app/src/main/res/values-es/strings.xml`:
- Around line 5-6: The nav header strings nav_header_title and
nav_header_subtitle contain English template placeholders; update their values
in the strings resource to Spanish translations (or appropriate app-specific
placeholders) by replacing nav_header_title's value "Android Studio" with a
Spanish label such as "Aplicación NetBird" (or your chosen app name) and
replacing nav_header_subtitle's value "android.studio@android.com" with a
Spanish/localized placeholder like "usuario.netbird@example.com"; ensure the
updated text stays within the existing <string name="nav_header_title"> and
<string name="nav_header_subtitle"> entries so localization is consistent.
- Line 70: Rename the misspelled string resource key change_server_success_cloe
to change_server_success_close in the app's default and Spanish string resources
(both strings.xml variants), and update any code or XML that references the old
key to use change_server_success_close; ensure there are no duplicate keys after
the rename and run a resource sync/clean to validate references.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 13752723-ece9-41e9-902b-bc1a8c579f23

📥 Commits

Reviewing files that changed from the base of the PR and between 0e81e82 and 295efd5.

📒 Files selected for processing (1)
  • app/src/main/res/values-es/strings.xml

Comment thread app/src/main/res/values-es/strings.xml Outdated
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