[wp-trac] Re: [WordPress Trac] #7075: Issues with translating
plugins
WordPress Trac
wp-trac at lists.automattic.com
Mon Jun 2 14:01:58 GMT 2008
#7075: Issues with translating plugins
---------------------+------------------------------------------------------
Reporter: msi08 | Owner: anonymous
Type: task | Status: new
Priority: normal | Milestone: 2.6
Component: General | Version:
Severity: normal | Resolution:
Keywords: |
---------------------+------------------------------------------------------
Comment (by DD32):
This would've been a change from #6938 i think.
> I'm very sure that it always was "wp-content/plugins/my-plugin". But it
stopped working at some time.
Hm.. I'm not sure.[[BR]]
I've been using this myself previously:
{{{
load_plugin_textdomain('add-from-server', PLUGINDIR . '/' .
dirname(plugin_basename(__FILE__)) . '/langs/');
}}}
However that no longer works it seems, This does:
{{{
load_plugin_textdomain('add-from-server', WP_PLUGIN_DIR . '/' .
dirname(plugin_basename(__FILE__)) . '/langs/');
}}}
Not sure why this is.. The changes mentioned in the ticket i referenced to
does not affect it from what i can see.
As a side note, While testing the languages, i used: {{{define ('WPLANG',
'de');}}} however, to get the translation to kick in, this time i had to
use: {{{define ('WPLANG', 'de_de');}}}, Is that normal and i'm remembering
wrong?
--
Ticket URL: <http://trac.wordpress.org/ticket/7075#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list