WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #18960, comment 9


Ignore:
Timestamp:
10/18/11 06:46:52 (2 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18960, comment 9

    v1 v2  
    55The 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. 
    66 
    7 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. 
     7Something else I was thinking about was that it might be good to include the theme slug in the file's name, rather than having separate directories, so that it's always clear which theme you're handling. That's how it works for plugins. 
    88 
    99So, the path would look like this: 
    1010 
    11 {{{WP_LANG_DIR/themes/$domain-$locale.mo}}} 
     11{{{WP_LANG_DIR/themes/$theme_slug-$locale.mo}}}