Skip to content

Conversation

Copy link

Copilot AI commented Sep 4, 2025

This PR addresses the issue of non-English content throughout the codebase by systematically translating all Portuguese comments, error messages, and documentation to English. This improves code maintainability and accessibility for international contributors.

Changes Made

Python Scripts

  • tools/gen_def.py: Translated all argparse help text, comments, and error messages from Portuguese to English
    • "Gera .def e stubs referenciando um símbolo de blob""Generate .def and stubs referencing a blob symbol"
    • "DLL de origem""Source DLL"
    • "Não foi possível encontrar a DLL de origem""Could not find the source DLL"

Build Configuration

  • CMakeLists.txt: Updated error messages and comments
    • "Falhou calcular REFLECT_SIZE""Failed to calculate REFLECT_SIZE"
    • "símbolos de depuração""debug symbols"

Header Files

  • include/plib/rl/rl_tls.h: Translated TLS-related function comments
  • include/plib/rl/rl_loader.h: Translated struct member documentation
  • include/plib/pe/export_utils.hpp: Updated sanity check comments

Source Files

  • lib/src/rl/rl_tls.cpp: Translated TLS implementation comments
  • lib/src/rl/rl_loader.cpp: Updated loader-specific comments

Key Translation Examples

- // 2) Thread: preparar/desmontar bloco TLS deste módulo para threads que usarão a DLL
+ // 2) Thread: prepare/dismantle TLS block of this module for threads that will use the DLL

- // Sanidade: confirme que o RVA cai dentro do image  
+ // Sanity check: confirm that the RVA falls within the image

- raise FileNotFoundError(f"Não foi possível encontrar a DLL de origem: {args.source_dll}")
+ raise FileNotFoundError(f"Could not find the source DLL: {args.source_dll}")

Testing

  • Verified Python script functionality remains intact after translation
  • Confirmed all help text is now displayed in English
  • Ensured no functional changes to the codebase behavior

This change makes the codebase fully English while maintaining 100% backward compatibility and functionality.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Check all code for references of comments, docs, or code that is not in english and normalize them to english Normalize all Portuguese content to English across codebase Sep 4, 2025
Copilot AI requested a review from Guila767 September 4, 2025 16:51
@Guila767 Guila767 marked this pull request as ready for review September 4, 2025 20:11
@Guila767 Guila767 merged commit ecadb35 into main Sep 4, 2025
1 check passed
@Guila767 Guila767 deleted the copilot/fix-a88a895d-0c69-473f-9bc5-9984ff14555d branch September 4, 2025 20:12
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