[wp-trac] Re: [WordPress Trac] #7075: Issues with translating plugins

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 10 00:17:12 GMT 2008


#7075: Issues with translating plugins
-----------------------+----------------------------------------------------
 Reporter:  msi08      |        Owner:  anonymous
     Type:  task       |       Status:  closed   
 Priority:  normal     |    Milestone:  2.6      
Component:  General    |      Version:           
 Severity:  normal     |   Resolution:  fixed    
 Keywords:  has-patch  |  
-----------------------+----------------------------------------------------
Changes (by sambauers):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 See [8065]

 Usage is now backward compatible and the previous comment here does not
 apply.

 This will now look for the language file relative to ABSPATH just like
 before:

 {{{
 load_plugin_textdomain( 'foo-domain', PLUGINDIR . '/' .
 dirname(plugin_basename(__FILE__)) . '/lang' );
 }}}

 To search for a language file relative to WP_PLUGIN_DIR you simply supply
 a third argument like so:

 {{{
 load_plugin_textdomain( 'foo-domain', false,
 dirname(plugin_basename(__FILE__)) . '/lang' );
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7075#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list