Text Domain – defined as a constant?

[ad_1]

Dear @timwhitlock,

I am using your plugin since a while on a few domains and with my own plugins and I am really extremely happy with it!!

So far, I always mentioned the text domain explicitly with all strings to be translated.

Recently, I came up with the idea to define a text domain constant. However, Loco Translate will not recognize my strings anymore during .POT-sync as it obviously scans the very files and cannot identify the meaning of the constant.

Is there a way to accomplish that approach?

Thanks in advance for your support. And thanks again for this great and extremely helpful plugin!.

Kind regards

Michael

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer