custom text translation as per user selected language

Anyone knows how to translate custom text(messages or responses) written in .inc or .module files as per user selected language i.e English or bangla or Hindi etc. And the translated text is already given just have to use them in t(“”); as per language. i.e as per language t() will get as text.

thank you !

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/30/feed