WizzardMaker / AirlineTycoon

Source code of Airline Tycoon based on the GOG source code release
https://www.gog.com/game/airline_tycoon_deluxe
Other
26 stars 9 forks source link

made it compatible with Polish files #54

Open Lili1228 opened 7 months ago

Lili1228 commented 7 months ago

In NewGamePopup.cpp and Sim.cpp, synced the default starting airports with each other, changed the default airport in English (and "Polnisch! Krank!", I love this original comment xD) to Berlin since it's spelled the same in both languages, changed the Dutch airport to Amsterdam while I'm here. In NewGamePopup.cpp, in OnChar, deduped the whitelist check by putting it before all ifs. In Sim.cpp, added Polish spellings of cities for New York, Rio, Tokio mission.

I want to make the Polish translation work with Polish diacritics, which requires small changes in CStdRaum::OnChar, KLACKER::PrintAt, NewGamePopup::OnChar, Options::OnChar, GerToUpper, GerToLower.

However, it requires a rewrite of the input system because currently it receives keys, not characters. To paraphrase myself from Discord: you type a character by pressing RAlt+a. The game receives SDLK_RALT, SDLK_RALT and a. In Polish keyboard, this is ą. In the international US keyboard, it's á.