[wp-trac] [WordPress Trac] #18960: Localised installs no longer receiving translations for bundled themes
WordPress Trac
wp-trac at lists.automattic.com
Tue Oct 18 06:40:43 UTC 2011
#18960: Localised installs no longer receiving translations for bundled themes
-----------------------------+------------------
Reporter: dd32 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.3
Component: Upgrade/Install | Version: 3.2
Severity: blocker | Resolution:
Keywords: has-patch |
-----------------------------+------------------
Comment (by scribu):
> The patch uses {{{WP_LANG_DIR/themes/$domain/$locale.mo}}}
That is incorrect. The patch uses uses
{{{WP_LANG_DIR/themes/$theme_slug/$locale.mo}}}
The textdomain does need to be unique, but not the filenames. So you could
have both a plugin and a theme with different textdomains, but with the
same slug.
Something else I was thinking about was that it might be good to include
the domain in the file's name, rather than having separate directories, so
that it's always clear which domain you're handling. That's how it works
for plugins.
So, the path would look like this:
{{{WP_LANG_DIR/themes/$domain-$locale.mo}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18960#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list