only source text, not translated showing up
-
Hi, I just installed this plugin and thought “awesome! exactly what I need”. But unfortunately it doesn’t seem to do what it’s supposed to -> translate.
I created a template file with a test text, saved it, translated it, saved again (.po/.mo files were created by the plugin) and used
_e('this is a test message');
to output my translated test message in a template file.Guess what’s showing up? “This is a test message”.
I googled and re-read your FAQ several times, asked in wordpress IRC chat, no help in sight. While I did this I added different stuff..
My functions.php contains now
load_theme_textdomain( 'bla', get_template_directory() . '/languages' )
and in my template file..
echo get_locale() _e('this is a test message', 'bla');
get_locale() returns “de_DE” (the language I used for the translation and that is in po/mo file). I called my textdomain ‘bla’
I tried to rename the files to ‘bla-de_DE’ AND placed them in the global language directory.
That all didn’t help. Any clues what’s going wrong here?
- The topic ‘only source text, not translated showing up’ is closed to new replies.