Only display one language on a single post/page
-
I have a single page on my website that always must use English translations of some labels which are correctly translated in other pages.
Original labels are in it_IT and are correctly translated in many languages via .po files and WP __() function.
What I’m trying to do is this
define('WPLANG', 'en_US'); echo __("Contenuto", 'context');
or
setlocale(LC_ALL, 'en_US'); echo __("Contenuto", 'context');
Instead of displaying en_US translation for “Contenuto” the one for the actual (URI based) language is given.
I think some script enabled by Qtranslate-x, which correctly works on “regular” pages, is stopping me from setting the en_US locale.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Only display one language on a single post/page’ is closed to new replies.