Translation problems
-
Hi. Your plugin is really nice working but I have problems with translation on web site side.
I downloaded translation files and put them in wp-content/languages/plugins directory. The admin part of plugin is translated on russian, but on page where I put poll using shortcode it is still english and I can’t figure out what is the problem.
I tried to put translation files in directory with plugin and in wp-content/themes/my-theme/languages directory but no result.
If just to echo in any template file some of words that is using in plugin, for example
_e('Votes', 'wp-polls');
it will be print translated. But in plugin it is not.
Also what is strangely is that in plugin translated strings loads throughfunction polls_textdomain() { load_plugin_textdomain( 'wp-polls' ); }
function. And if to call
load_plugin_textdomain( 'wp-polls' )
function it returns ‘true’. So file is visible but it’s not translates on page.
Also I tried to delete wp-polls.pot file but nothing happened.
How do you think what is the problem?
- The topic ‘Translation problems’ is closed to new replies.