🐣 Mobile Eggbert

Localization

Overview

UI strings are localized using a simple switch-based system in MyResource.cpp / MyResource.hpp. The active language is selected at runtime based on the device locale or a settings value.

Supported Languages

LanguageCodeNotes
FrenchFRThe game's original language. Used as the fallback when no other match is found.
EnglishENFull translation of all UI strings.
GermanDEFull translation of all UI strings.

String Categories

The following types of strings are covered by MyResource:

  • Level names — displayed on the level complete screen and ranking
  • Button labels — text on UI buttons (Play, Settings, Buy, etc.)
  • Menu text — headers and descriptions in settings / pause menus
  • Status messages — HUD text, pause overlay text
  • Cheat code names — display names for the 22 cheats (separate from Tables::CheatCodes)

Adding a Language

To add a new language:

  1. Add a new branch to the switch statement in MyResource.cpp for each string key
  2. Add the language code to the detection logic at the top of MyResource.cpp
  3. Test every screen (Init, Pause, Settings, Win, Lost, Ranking, Resume, Trial)
No Translation File Format Strings are hardcoded directly in C++ switch statements in MyResource.cpp, not loaded from external files. There is no .po / .json / .resx localization file format to manage.