Changeset 2607380
- Timestamp:
- 09/30/2021 04:25:27 PM (4 years ago)
- File:
-
- 1 edited
-
shmapper-by-teplitsa/tags/1.4.6/shmapper.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
shmapper-by-teplitsa/tags/1.4.6/shmapper.php
r2607203 r2607380 63 63 64 64 /** Load textdomain */ 65 function shm_load_plugin_textdomain() { 66 load_plugin_textdomain( 'shmapper-by-teplitsa', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); 65 function shm_load_textdomain_mofile( $mofile, $domain ) { 66 if ( 'shmapper-by-teplitsa' === $domain ) { 67 $locale = apply_filters( 'plugin_locale', determine_locale(), $domain ); 68 if ( 'de_DE' === $locale ) { 69 $mofile = WP_PLUGIN_DIR . '/' . dirname( plugin_basename( __FILE__ ) ) . '/languages/' . $domain . '-' . $locale . '.mo'; 70 } 71 } 72 return $mofile; 67 73 } 68 add_ action( 'plugins_loaded', 'shm_load_plugin_textdomain');74 add_filter( 'load_textdomain_mofile', 'shm_load_textdomain_mofile', 10, 2 ); 69 75 70 76 require_once SHM_REAL_PATH . 'inc/shm-functions.php';
Note: See TracChangeset
for help on using the changeset viewer.