I dont want to manually type in "my_theme_textdomain" or "my_plugin_textdomain" every time.
so instead of
$hello = __( 'Hello, dear user!', 'my-text-domain' );
I use
$my_txtdomain = "my-text-domain";
$hello = __( 'Hello, dear user!', $my_txtdomain );
I feel like it shouldnt be a problem since $my_txtdomain is essentialy just a string. But is this a bad practice ?
Turns out it is "kind of" a bad practice, but not really. But it will work. You can read the discussion below: https://markjaquith.wordpress.com/2011/10/06/translating-wordpress-plugins-and-themes-dont-get-clever/