Heydar
El Presidente
Just Getting Started
Member Likes (0)
Hi, how can I translate this plugin without changing the php file?
Thanks
-tsl-
Responses (5)
Keeper of the Dark Chocolate (joined July 2007) Likes (0)
A quick scan of the widget file shows that it;s setup for translation using the normal wordpress method of po files and all that stuff. Have you tried to translate it? Are you having problems doing so?
edit: I;m looking specifically at this widget here. You mention the lite widget. Is this the widget that you;re looking at?
Member (joined December 2010) Likes (0)
Hi drmike, yes it's the same widget. Ok that sounds great but where can I get hold of the original po file and what should the translated mo file be named like.
Thank you
Member (joined December 2010) Likes (0)
Ok found the name scheme in adwidget-light.php
$mofile = dirname(__FILE__) . "/adlitewidget-$locale.mo";
So, now I just need to find the original po file somewhere...
Member (joined December 2010) Likes (0)
Wow, just fount this page which created a po file from the widgets php file:
http://www.icanlocalize.com/tools/create_po_from_php
Widget is translated now :)
Keeper of the Dark Chocolate (joined July 2007) Likes (0)
Glad you got it worked out.
And thanks for the link. Hadn't seen that one before.
WordPress Questions?
We've got answers!
Find out more »