IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 674 | 674 | $path = get_template_directory(); |
| 675 | 675 | |
| 676 | 676 | // Load the textdomain according to the theme |
| 677 | | $mofile = untrailingslashit( $path ) . "/{$locale}.mo"; |
| | 677 | $mofile = WP_LANG_DIR . "/themes/{$domain}-{$locale}.mo"; |
| 678 | 678 | if ( $loaded = load_textdomain( $domain, $mofile ) ) |
| 679 | 679 | return $loaded; |
| 680 | 680 | |
| 681 | 681 | // Otherwise, load from the languages directory |
| 682 | | $mofile = WP_LANG_DIR . "/themes/{$domain}-{$locale}.mo"; |
| | 682 | $mofile = untrailingslashit( $path ) . "/{$locale}.mo"; |
| 683 | 683 | return load_textdomain( $domain, $mofile ); |
| 684 | 684 | } |
| 685 | 685 | |