Anonymous User
(@anonymized-3085)
Thread Starter
hatul
(@hatul)
I read it of course.
I I wrote like in the codex but the translation not working.
Anonymous User
(@anonymized-3085)
<?php load_plugin_textdomain( 'my-plugin', false, dirname( plugin_basename( __FILE__ ) ) ); ?>
according to your first post you just used:
load_plugin_textdomain('wp-hebdate')
Thread Starter
hatul
(@hatul)
thanks, I checked it and it not working.
I added load_plugin_textdomain('wp-hebdate', false, dirname( plugin_basename( __FILE__ ) ) ); but the srings still in English.
Anonymous User
(@anonymized-3085)
have you uploaded the mo file as well as the po file?
What’s your language file named? Translation files have a specific naming scheme, which differs for plugins and themes…
If for example you were loading the french translation for the above text domain the name is expected be.. wp-hebdate-fr_FR.mo …
Still problems, try the demo plugin i posted on my blog, and see if that helps clear up your understanding.
http://t31os.wordpress.com/2010/06/09/wordpress-plugin-translation/
NOTE: Download link is in the third paragraph down, and it’s a very basic and bare bones example simply to show how to do simple translation.
Thread Starter
hatul
(@hatul)
The file called simply he_IL.mo
Thread Starter
hatul
(@hatul)
I changed file name to wp-hebdate-he_IL.mo and the tranlation loaded.
thanks