Skip to content

Portuguese Brazil addition strings.xml#159

Open
Sanzin61 wants to merge 1 commit intoparallelcc:mainfrom
Sanzin61:patch-1
Open

Portuguese Brazil addition strings.xml#159
Sanzin61 wants to merge 1 commit intoparallelcc:mainfrom
Sanzin61:patch-1

Conversation

@Sanzin61
Copy link
Copy Markdown

@Sanzin61 Sanzin61 commented Apr 6, 2026

Adding the pt-BR strings values

Adding the pt-BR strings values
@qodo-code-review
Copy link
Copy Markdown

Review Summary by Qodo

Add Brazilian Portuguese translations to strings.xml

📝 Documentation

Grey Divider

Walkthroughs

Description
• Translate all English strings to Brazilian Portuguese
• Update 24 string resource values with pt-BR translations
• Maintain app functionality with localized UI text
Diagram
flowchart LR
  EN["English strings.xml"] -- "translate to pt-BR" --> PTBR["Portuguese Brazil strings.xml"]
Loading

Grey Divider

File Changes

1. app/src/main/res/values/strings.xml 📝 Documentation +22/-22

Translate strings to Brazilian Portuguese

• Translated 24 string resource values from English to Brazilian Portuguese
• Updated UI labels, descriptions, settings, and system messages
• Maintained XML structure and translatable attributes
• Preserved non-translatable entries like app_name and language codes

app/src/main/res/values/strings.xml


Grey Divider

Qodo Logo

@qodo-code-review
Copy link
Copy Markdown

qodo-code-review bot commented Apr 6, 2026

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX Issues (0)

Grey Divider


Action required

1. English locale strings broken 🐞 Bug ≡ Correctness
Description
The PR overwrites the base resources in values/strings.xml with pt-BR text, so any locale that falls
back to default resources (including English) will render Portuguese UI. Because the app explicitly
supports selecting Locale.ENGLISH and applies it via Configuration.setLocale, choosing “English” in
Settings will still resolve to these Portuguese base strings.
Code

app/src/main/res/values/strings.xml[R4-25]

+    <string name="tile_label">Circular para Pesquisar</string>
+    <string name="xposed_description">Ative o Circular para Pesquisar em qualquer dispositivo Android 9–16</string>
+    <string name="title_activity_settings">Configurações</string>
+    <string name="trigger_failed">Falha ao ativar!</string>
+    <string name="app_settings">Configurações do App</string>
+    <string name="default_trigger_delay">Atraso padrão de ativação</string>
+    <string name="tile_trigger_delay">Atraso do Atalho de ativação</string>
+    <string name="vibrate">Vibrar</string>
+    <string name="async_trigger">Ativação Otimizada</string>
+    <string name="module_settings">Configurações do Módulo</string>
+    <string name="access_xposed_service_failed">Falha ao acessar o serviço Xposed</string>
+    <string name="system_trigger_service">Serviço de ativação do sistema</string>
+    <string name="trigger_by_long_press_home_button">Ativar pressionando o botão de início</string>
+    <string name="trigger_by_long_press_gesture_handle">Ativar pressionando a barra de gestos</string>
+    <string name="device_spoof_for_google">Simular dispositivo para o Google</string>
+    <string name="manufacturer">Fabricante</string>
+    <string name="brand">Marca</string>
+    <string name="model">Modelo</string>
+    <string name="device">Dispositivo</string>
+    <string name="about">Sobre</string>
+    <string name="language">Idioma</string>
+    <string name="follow_system">Seguir o sistema</string>
Evidence
values/strings.xml is the default resource set and now contains Portuguese strings for core UI
labels. The app’s language selector includes an English option (Language.English -> Locale.ENGLISH)
and SettingsActivity forces resources to that locale via a locale-specific configuration context;
with the default strings replaced, the English locale will display Portuguese text from the base
resources.

app/src/main/res/values/strings.xml[4-25]
app/src/main/java/com/parallelc/micts/config/AppConfig.kt[5-18]
app/src/main/java/com/parallelc/micts/ui/activity/SettingsActivity.kt[80-87]
app/src/main/java/com/parallelc/micts/ui/activity/SettingsActivity.kt[146-156]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`app/src/main/res/values/strings.xml` (base/default strings) was changed to Portuguese (pt-BR). Base resources are the fallback for many locales and for the app’s English option, so this makes “English” (and other fallbacks) show Portuguese.

## Issue Context
The app exposes a language picker and maps `Language.English` to `Locale.ENGLISH`, then applies it via `Configuration.setLocale(...)` + `createConfigurationContext(...)`. With Portuguese in the base strings file, the English locale will render Portuguese text.

## Fix Focus Areas
- Restore English strings in the base file:
 - app/src/main/res/values/strings.xml[4-25]
- Add a new locale-specific resource file containing the Portuguese translations (pt-BR):
 - app/src/main/res/values-pt-rBR/strings.xml[new file]

## Implementation notes
- Keep `values/strings.xml` as the canonical/default (typically English) set.
- Put the Portuguese translations into `values-pt-rBR/strings.xml`.
- (Optional) If you want Portuguese selectable in the in-app language menu, add a `PortugueseBrazil` entry to `Language` with a dedicated `R.string.portuguese_brazil` label and a `Locale("pt", "BR")` mapping.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

Comment on lines +4 to +25
<string name="tile_label">Circular para Pesquisar</string>
<string name="xposed_description">Ative o Circular para Pesquisar em qualquer dispositivo Android 9–16</string>
<string name="title_activity_settings">Configurações</string>
<string name="trigger_failed">Falha ao ativar!</string>
<string name="app_settings">Configurações do App</string>
<string name="default_trigger_delay">Atraso padrão de ativação</string>
<string name="tile_trigger_delay">Atraso do Atalho de ativação</string>
<string name="vibrate">Vibrar</string>
<string name="async_trigger">Ativação Otimizada</string>
<string name="module_settings">Configurações do Módulo</string>
<string name="access_xposed_service_failed">Falha ao acessar o serviço Xposed</string>
<string name="system_trigger_service">Serviço de ativação do sistema</string>
<string name="trigger_by_long_press_home_button">Ativar pressionando o botão de início</string>
<string name="trigger_by_long_press_gesture_handle">Ativar pressionando a barra de gestos</string>
<string name="device_spoof_for_google">Simular dispositivo para o Google</string>
<string name="manufacturer">Fabricante</string>
<string name="brand">Marca</string>
<string name="model">Modelo</string>
<string name="device">Dispositivo</string>
<string name="about">Sobre</string>
<string name="language">Idioma</string>
<string name="follow_system">Seguir o sistema</string>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

1. English locale strings broken 🐞 Bug ≡ Correctness

The PR overwrites the base resources in values/strings.xml with pt-BR text, so any locale that falls
back to default resources (including English) will render Portuguese UI. Because the app explicitly
supports selecting Locale.ENGLISH and applies it via Configuration.setLocale, choosing “English” in
Settings will still resolve to these Portuguese base strings.
Agent Prompt
## Issue description
`app/src/main/res/values/strings.xml` (base/default strings) was changed to Portuguese (pt-BR). Base resources are the fallback for many locales and for the app’s English option, so this makes “English” (and other fallbacks) show Portuguese.

## Issue Context
The app exposes a language picker and maps `Language.English` to `Locale.ENGLISH`, then applies it via `Configuration.setLocale(...)` + `createConfigurationContext(...)`. With Portuguese in the base strings file, the English locale will render Portuguese text.

## Fix Focus Areas
- Restore English strings in the base file:
  - app/src/main/res/values/strings.xml[4-25]
- Add a new locale-specific resource file containing the Portuguese translations (pt-BR):
  - app/src/main/res/values-pt-rBR/strings.xml[new file]

## Implementation notes
- Keep `values/strings.xml` as the canonical/default (typically English) set.
- Put the Portuguese translations into `values-pt-rBR/strings.xml`.
- (Optional) If you want Portuguese selectable in the in-app language menu, add a `PortugueseBrazil` entry to `Language` with a dedicated `R.string.portuguese_brazil` label and a `Locale("pt", "BR")` mapping.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

@parallelcc
Copy link
Copy Markdown
Owner

As mentioned by AI, translations should be added by creating a separate language directory. Please refer to a similar PR for example: https://github.com/parallelcc/MiCTS/pull/54/changes

Alternatively, you can contribute via Crowdin: https://crowdin.com/project/micts

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.

2 participants