I am working on a theme and I want to make it available for translating. I have not been including a text domain on translated text because I don't know what the text domain is going to be yet. I figured, until I can come up with a name for my theme I should just use a function to output my text domain name instead of hard coding it on translated text.
EXAMPLE:
This is the traditional way of adding a text domain:
echo _e('Hello', 'my-theme-name');
my approach is like this:
function text_domain() {
define('TEXT_DOMAIN', 'my-theme-name', true );
echo TEXT_DOMAIN;
}
and using like this:
echo _e('Hello', text_domian());
...and when I do come up with a name for my theme I can just update it in one place instead a bunch of times in every file.
THE QUESTION IS: Is this an ok way to do it and will I encounter problems getting my theme approved by the WordPress theme review team?