Only if translated literally word for word
This is something humans (i.e., experienced translators) excel at. It is something computers cannot do except at a very basic level — they lack the cultural knowledge and autonomous connection making capability needed.
In Dutch I could translate 'not my cup of tea' in many ways depending on the context. Some examples:
Neutral translation in lieu of additional context: „Dit is niet naar mijn smaak.”
Young person in a social context: „Dit is niet echt mijn ding, nee.”
Middle age manager in a white collar office environment: „Nee, dit is 'not my cup of tea', zeg maar.”¹
Ironic and/or cynical down-to-earth jocular fellow: „Dit is niet mijn kopje thee.”²
1: Note the literal borrowing of English. 2: A literal translation used humorously, knowing full well that this is not 'correct'.
You would, in effect, have to train an artificial intelligence with a brain capable of mimicking ours by raising it as a child in our society (sometimes cheerfully acknowledged by sci-fi writers who employ such characters), and even then you would need to have a brain that processes certain events, happenings, and subtle hints the way a human being roughly does.
Perhaps someone will manage to train one in a suitable manner one day (far far away — not in our lifetime), but I wouldn't want to be responsible for debugging it.
Someone will manage to make one that is good enough for some purposes though. Plenty of semi-gibberish manuals included with products that strongly reek of machine translation these days.
It sounds like total nonsense to me even in english. I know what it means but the entire cultural context surrounding tea is simply not available to me. I don't even drink tea to begin with. Always assumed it was some british thing.
Yes, and it would still sound like total nonsense. I actually know concrete examples from internet culture that are pretty close to that. "I shiggy the diggy". Total nonsense yet becomes second nature after lurking certain forums for a few days.
The cultural context in the "xyzzy of wargbl" case is you made it up to prove a point. If it somehow became popular enough, fully understanding it would require the context of our conversation. It doesn't help explain the word choice since the words were made up to begin with.
Now that I thought about it, the "my cup of tea" thing must mean tea was extremely important to english speakers. Tea drinking must have been integral to their culture. They developed preferences and the concept of one's preferred tea made it into the language as a synonym for preference. Still surprising to me since this never happened to coffee or any other beverage.
Sure you do. At least if you're actually trying to understand what the words mean in the context they're used. I understand your "whatever floats your boat" example, including the cultural context. This tea business is completely foreign to me though.
I have no problem understanding these things. It's easy to infer meaning when they're used in actual conversation. When taken in isolation and without cultural understanding, these idioms sound like those made up sentences used for language practice.