Mitt personliga motto, eventuellt till en tatuering/My personal motto, possibly to be used for a tattoo. Förslag till engelsk översättning/proposed English translation: I hate it when that happens. Hoppas det underlättar/I hope it helps!!
"that" is a kind of "neutral" word very often used in English, but a few times with a specific meaning. I really don't know how to explain that in Swedish, sorry.
Your sentence is also correct, but I think an English speaker would use "that" instead of the second "it".
It's like in expressions : we can say "It's terrible!", but we will probably say: "That's terrible!"