keepcalculator

06 Numbers and Powers

Why Terminal Game Speaks Portuguese But Outputs English

Card No. 06·31337 · Updated · Standard formula, shown below

The calculator on this card is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

Your terminal game shows Portuguese in its menus and dialogue but prints its output—errors, logs, and command results—in English because the game’s user interface (UI) text and its underlying program output are handled by two separate systems. The UI strings are translated and stored in language files, while the output is generated by the game engine or the operating system’s terminal, which often defaults to English. This split is common in software development, and understanding it explains why you see a mix of languages.

Background: Why Games Mix Languages

Games are built with a separation between the “front end� (what you see and interact with) and the “back end� (the logic and system interactions). The front end includes all the text that appears in menus, buttons, and dialogue—this is what gets translated into Portuguese or any other language. The back end, however, includes system messages, error logs, and command-line output that the game passes to the terminal. These back-end messages are often written in English by the developers and are not part of the translation pipeline. This is not a bug; it is a design choice that prioritizes consistency for developers and system administrators who expect logs in a universal language.

How the Game’s Language Settings Work

Most games detect your system’s locale (the language and region settings of your operating system) and load the corresponding language file. For Portuguese, that file contains strings like “Iniciar� for “Start� or “Opções� for “Options.� The game’s code references these strings by an ID, and the localization system substitutes the correct text. However, when the game needs to communicate with the terminal—for example, to print a debug message or to run a command—it often uses a separate function that writes directly to standard output (stdout) or standard error (stderr). These functions are typically hardcoded in English, because they are meant for developers to read, not for end users. The game may also call external tools (like a package manager or a network utility) that output in English by default, independent of the game’s language setting.

How to Change the Output Language

If you want the terminal output to match the game’s Portuguese interface, you have a few options, but they are not always straightforward.

  • Change the system locale: On Linux, you can set the LANG environment variable to pt_BR.UTF-8 (or pt_PT.UTF-8 for European Portuguese) before launching the game. This may make some system tools and libraries output in Portuguese, but only if they have translations installed. For example, run LANG=pt_BR.UTF-8 ./game in the terminal.
  • Install language packs: Some operating systems and tools require additional language packs. On Debian/Ubuntu, you can install language-pack-pt to get Portuguese translations for many command-line utilities.
  • Check game-specific settings: Some games have a “developer modeâ€� or “verbose loggingâ€� option that lets you choose the log language. Look in the game’s configuration files or launch options for something like --lang=pt or LANGUAGE=pt.
  • Use a wrapper: Tools like gettext can intercept and translate output, but they require the program to support internationalization. This is rarely practical for a game.

Remember that even if you change the locale, the game’s own hardcoded English strings will remain unchanged. The only reliable fix is for the developer to localize the output functions as well.

Common Problems and Misconceptions

A frequent misconception is that the game is “broken� or that the developer forgot to translate the output. In reality, the output is often not meant for the player at all. Another issue is that some games use a separate “console� window for debugging, which is distinct from the main game window. That console might always be in English, even if the game is fully translated. Also, if you are using a terminal emulator (like GNOME Terminal or Konsole), its own interface language is separate from the game’s. The terminal emulator may be in English while the game is in Portuguese, adding to the confusion. Finally, some games have a “language� setting in the game menu, but that setting only affects the UI, not the output. Always check the game’s documentation or forums to see if the output language is configurable.

Comparison: How Other Software Handles This

This mixed-language behavior is not unique to games. Many command-line tools, such as Git or grep, output in English by default, even if the system locale is Portuguese. The difference is that games are interactive and user-facing, so the contrast is more noticeable. Some software, like the GNU coreutils, are fully localized and will output in Portuguese if the locale is set. Others, like many programming language runtimes (Python, Node.js), output error messages in English only, because the messages are part of the code itself. Games often fall into the latter category for their terminal output. There is no industry standard; it depends on the developer’s priorities. For games, the priority is usually the player’s experience in the main UI, not the terminal.

How to Choose the Right Language for Your Needs

If you are a player, you likely want the game in Portuguese and you may not care about the terminal output. If you are a developer or a modder, you might prefer the output in English because it is easier to find help online—most documentation and forums are in English. If you are a system administrator running a game server, you probably want the output in English for consistent logs. To choose, consider who will read the output. If it is only you, set the game to Portuguese and ignore the terminal. If you need to share logs with others, keep the output in English. You can also set the game’s UI to Portuguese and the system locale to English, which is a common compromise. The key is to understand that the two languages are independent.

Costs and Effort of Localizing Output

Translating the UI is a significant investment, but translating terminal output is often seen as unnecessary. The cost is not just translation—it is also testing, because localized output can break scripts that parse the output. For example, a script that looks for the word “Error� will fail if the output says “Erro�. This is why many developers leave output in English. There is also the cost of maintaining the translations across updates. For a small indie game, the developer may not have the resources to localize output. For a large studio, they may intentionally keep output in English for technical reasons. In either case, the player is not paying extra for the output language; it is a technical decision.

Safety and Accuracy in Terminal Output

When you see English output in a Portuguese game, be careful not to rely on automated translations of error messages. If you are troubleshooting, use the exact English message to search for solutions. Do not attempt to change system locale files or environment variables unless you know what you are doing, as incorrect settings can cause other applications to break. Also, be aware that some games may have a “Portuguese� option that is actually Brazilian Portuguese (pt-BR) or European Portuguese (pt-PT); the terminal output may not match the dialect. Always check the locale codes to ensure you are getting the right variant. If you are modifying game files to force a language, back up your files first, and only download language packs from official sources to avoid malware.

Alternatives: What You Can Do Instead

If you cannot change the output language, you have a few alternatives. You can use a terminal emulator that supports translation plugins, though this is rare. You can also use a log viewer that filters and translates known messages, but this is overkill for most players. A simpler alternative is to ignore the terminal output entirely—if the game works, you do not need to read the logs. If you are a developer, you can set your system locale to Portuguese and test how the game behaves, but you may still see English output. The most practical alternative is to accept the mixed language and focus on the game itself. If the output is truly important, contact the developer and request localization of the terminal output; many developers will consider it for a future update.

Frequently Asked Questions

Why is the game menu in Portuguese but the error messages in English?

The menu text is part of the game’s localization files, which are translated. Error messages are often hardcoded in English in the game’s code, because they are meant for developers. The game does not translate these strings, so they appear in English regardless of your language setting.

Can I force the terminal output to be in Portuguese?

Sometimes, by changing your system locale to Portuguese (e.g., LANG=pt_BR.UTF-8), you can get system tools to output in Portuguese. However, the game’s own output will likely remain English unless the developer has localized it. Check the game’s documentation for any language options.

Is this a bug in the game?

Usually not—it is a design decision. The UI and the terminal output are separate components. The developer may have intentionally left the output in English for technical reasons, such as easier debugging or because the output is not meant for players.

Will changing the game’s language setting affect the output?

No, the game’s language setting typically only changes the UI strings. The terminal output is controlled by the game’s code and system locale, not by the in-game language option. You would need to change the system locale or edit the game’s configuration to affect output.

Why do some games have Portuguese output while others don’t?

It depends on the developer’s localization effort. Some games localize everything, including output, while others only localize the UI. The cost and effort of localizing output is often high, so many developers skip it. It is not a reflection of the game’s quality.

How can I get help if the error message is in English?

Copy the exact English error message and search for it online. You will likely find more results in English, and you can use translation tools if needed. Include the game name and version in your search to narrow down results.

Related

Formula used

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →