Translation of labels (txt variables) in templates

Viewing 2 posts - 1 through 2 (of 2 total)
#71018

Evzen Stein
Member

Text variables in templates are not translated. If you change the textdomain from “wpdmpro” to “download-manager” within of the next piece of code, the translation will work.
In library class.Package.php in the function fetchTemplate

        //Replace all txt variables
        foreach ($txtmatches[0] as $nd ► $scode) {
            $scode = str_replace(array('[', ']'), '', $scode);
            $vars[$scode] =  __($txtmatches[1][$nd], "download-manager");
        }

Regards
est

#71329

Shahjada
Keymaster

Yes, we already have updated the text domain for the next update :).

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Translation of labels (txt variables) in templates’ is closed to new replies.