Hi!<div><br></div><div>Please don't kill me if this is totally inappropriate, but here goes..</div><div><br></div><div>I just posted this on <a href="http://wordpress.org/support/">wordpress.org/support/</a>, it's tagged with and about the plugin WordPress.com Stats:</div>
<div><br></div><div><span class="Apple-style-span" style="font-family: 'Lucida Grande', Verdana, 'Bitstream Vera Sans', Arial, sans-serif; font-size: 12px; color: rgb(51, 51, 51); line-height: 22px; ">Hi! I'm wondering if it's possible to localize this plugin, and how.. I managed to produce a po-file from the stats.php file with Poedit, made som translations and produced mo files, I first named it <code style="font-style: normal; font-weight: normal; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; color: rgb(0, 0, 0); background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(240, 240, 240); background-position: initial initial; background-repeat: initial initial; ">stats-nb_NO.mo</code>, then <code style="font-style: normal; font-weight: normal; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; color: rgb(0, 0, 0); background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(240, 240, 240); background-position: initial initial; background-repeat: initial initial; ">nb_NO.mo</code>, putting it in the<code style="font-style: normal; font-weight: normal; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; color: rgb(0, 0, 0); background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(240, 240, 240); background-position: initial initial; background-repeat: initial initial; ">wp-content/plugins/stats/</code> folder, but no luck.. It doesn't seem to have any function to load a text domain, and all the strings are just <code style="font-style: normal; font-weight: normal; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; color: rgb(0, 0, 0); background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(240, 240, 240); background-position: initial initial; background-repeat: initial initial; ">__('some string')</code>, instead of what you'd expect: <code style="font-style: normal; font-weight: normal; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; color: rgb(0, 0, 0); background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(240, 240, 240); background-position: initial initial; background-repeat: initial initial; ">__('some string', 'wordpress-stats')</code> or something.. If I begin messing with the php file, it'll just get reverted once the plugin is updated, so I'd prefer if there were any other solutions...</span><br clear="all">
<br></div><div>Here is the link: <a href="http://wordpress.org/support/topic/418368?replies=1">http://wordpress.org/support/topic/418368?replies=1</a></div><div><br></div><div>But now I see that someone else posted a similar thread 8 months ago, and it has remained unanswered:</div>
<div><a href="http://wordpress.org/support/topic/317965?replies=1">http://wordpress.org/support/topic/317965?replies=1</a></div><div><br></div><div>So I thought maybe someone here would know the answer?</div><div><br></div>
<div>All the best,</div><div><br></div><div>Peter</div><div>-- <br>+47 920 42 782<br>
</div>