[wp-trac] [WordPress Trac] #37055: Translations for plugin in plugin

WordPress Trac noreply at wordpress.org
Wed Jun 8 20:37:08 UTC 2016


#37055: Translations for plugin in plugin
------------------------------+-----------------------------
 Reporter:  sebastian.pisula  |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  General           |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 why translations for plugins in plugin (load_plugin_textdomain) must have
 domain before locale ?

 `$mofile = $domain . '-' . $locale . '.mo'; `

 I have plugin with domain "my-plugin" and dir `languages` so WP search
 `languages/my-plugin-pl_PL.mo`

 In plugin lang dir should looking for `languages/pl_PL.mo`

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37055>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list