PluginProbe
Yatra – Travel Booking & Tour Operator Software / trunk
Yatra – Travel Booking & Tour Operator Software vtrunk
3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 2.0.10 2.0.11 All 82 releases
← All changes | app/Bootstrap.php +5 -2 3.0.5trunk View file →
@@ -370,10 +370,13 @@
370 370 if (file_exists(WP_LANG_DIR . '/loco/plugins/yatra-' . $locale . '.mo')) {
371 371 load_textdomain('yatra', WP_LANG_DIR . '/loco/plugins/yatra-' . $locale . '.mo');
372 372 }
373 373
374 - // Load from plugin directory (fallback)
375 - load_plugin_textdomain('yatra', false, 'i18n/languages');
374 + // Load from the plugin's own i18n/languages folder (fallback). The 3rd
375 + // arg is relative to WP_PLUGIN_DIR, so it MUST include the plugin folder
376 + // name — a bare 'i18n/languages' resolves to wp-content/plugins/i18n/
377 + // languages (which doesn't exist), so bundled translations never load.
378 + load_plugin_textdomain('yatra', false, dirname(YATRA_PLUGIN_BASENAME) . '/i18n/languages');
376 379 }
377 380
378 381 /**
379 382 * Get container instance