Skip to content

Add a PT-PT mode for the menus, prompts and summaries - #31

Merged
otzpt merged 3 commits into
mainfrom
feat/pt-pt
Nov 9, 2026
Merged

otzpt merged 3 commits into
mainfrom
feat/pt-pt

Conversation

@otzpt

@otzpt otzpt commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • CODELEARNER_LANG=pt-pt switches every course, the launcher and Libraries to European Portuguese for the menus, module titles, prompts and all 167 module summaries. Pressing l in the launcher sets it for every course started from there.
  • Each course keeps its own strings_pt table, since courses share no code. Commands, identifiers and output inside the text are unchanged.
  • With the variable unset, nothing a course prints changes.
  • CI gains a step that checks the Portuguese menu and a module's summary on each course.

Decisions on the issue's open questions

  • Selected by an environment variable, and a launcher key sets it.
  • Scope is menus and summaries. The lessons themselves stay in English.
  • Answers to question() stay in English, because the questions do.

Checked

CI run 42709163331 on 9474558, Windows and Linux. On Linux the Portuguese menu and a module 1 summary appeared for C, C++, GUI, HTML, CSS, Web JavaScript, Assembly, Rust, Python, Security, JavaScript, Git, C# and Java. The menu appeared for Arduino and Libraries, and the launcher switched language with l.

Not checked

  • MicroPython: its interpreter is not on the runner, so its Portuguese mode has not been run.
  • Accented text on a Windows console, where only the build ran. The launcher switches the console to UTF-8, and a course run directly without the launcher does not.
  • The translations have not been reviewed by a second person.
  • In Assembly, the exercise headers and challenge text stay in English: each is written inside its own module.

Part of #21: the lessons themselves are not translated.

🤖 Generated with Claude Code

otzpt and others added 3 commits November 9, 2026 22:02
CODELEARNER_LANG=pt-pt switches every course, the launcher and Libraries to
European Portuguese for what surrounds the lessons: menus, module titles,
prompts, and all 167 module summaries. Pressing l in the launcher sets it for
every course started from there.

Each course keeps its own strings_pt table, since courses share no code.
Commands, identifiers and output inside the text are left as they are. With
the variable unset nothing a course prints changes. The lessons themselves
and the answers to their questions stay in English.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Portuguese patch had written garbage into ui_heading, so every heading
printed wrongly. The Portuguese check in CI caught it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@otzpt
otzpt merged commit 18216cc into main Nov 9, 2026
3 checks passed
@coderabbitai

coderabbitai Bot commented Nov 9, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 13ee2d3b-5830-44dc-a0ac-4156c4a4a706
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

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