Translation:
Blessed are You, Lord our G‑d, King of the universe, the True Judge
English
HALACHA WHEN WE DO BARUCH DAYAN HAEMET
- For hearing bad news one should make Dayan Emet. This Bracha should be made with the full intent and accepting soul just like one is happy for good news. [14]
- A great loss of money which causes one pain can warrant Dayan HaEmet. [15]
- One should make Dayan HaEmet with Shem Umalchut upon hearing the passing of a relative which one is obligated to mourn. [16]
- The minhag is say Baruch Dayan HaEmet without Shem Umalchut upon hearing about the passing of a Talmid Chacham unless he was one's Rebbe Muvhak. [17] Nonetheless, upon such bad news one should certainly feel a sense of mourning.[18]
English
BRACHA HATOV HAMAITIV
ברוך אתה ה' אלקינו מלך העולם
שהחינו וקימנו והגיענו לזמן הזה
If it affects a group of people then one says Hatov Vehametiv; "..Who is Good, and bestows good."
ברוך אתה ה' אלקינו מלך העולם
הטוב והמטיב
If one cannot say the Bracha right away - due to an unclean location or hands - then one can say it later, as long as one still feel the joy. Even if the joyful event will probably cause one trouble at a later date, one still says the Bracha.
HALACHA WHEN WE DO HATOV HAMAITIV
- For hearing good news from a reliable source which is good for oneself and for others one should make the Bracha of HaTov VeHaMeitiv. However, for hearing good new which is only good for oneself, one should make Shehecheyanu. [1]
- Nowadays, we minimize the amount of times these Brachot are said.[2] In cases where Halacha certainly obligates a Bracha, if one does make the Bracha even if it’s not the minhag, one has done properly. [3]
- If one didn't make the Bracha at the time one heard about the good or bad news or saw the event because of one's physical uncleanliness or location's uncleanliness, one may still make the bracha later. [4]
English
http://halocho.blogspot.ca/2008/06/halocho-109-what-bracha-does-one-make.html
http://www.halachipedia.com/index.php?title=Bracha_for_good_or_bad_newsEnglish
https://www.chabad.org/library/article_cdo/aid/1582773/jewish/The-Jewish-Blessing-on-Death.htmEnglish