Going from the Netherlands to Budapest I started my journey with Deutsche Bahn. My train also did the split in half and go different directions trick. Was I supposed to learn Dutch, German, and Hungarian in order to buy my train tickets?
I said "travelling TO", and most of the time you do not need to know anything apart from the name of the city... and then I presume you have a smartphone as well. Come on.
What did you do once you arrived in Budapest? Did you do your research or did you get scammed by the taxi mafia as well?
If you travel to Budapest from Berlin you buy the ticket from DB and the crew changes as follows: German, Czech, Slovak, Hungarian. None of the first three crews would speak Hungarian. Luckily all will be able to communicate in English.
(regular announcements oftentimes won't be in Hungarian until you are in Hungary, that depends on the train origin, but I would only expect local+English)
You will be perfectly fine staying in Budapest with just English; you can learn hello, please, and thank you to be polite. This goes for most bigger European cities, outside of France I guess.