Closed slaFFik closed 7 years ago
Or use fallback, otherwise there will be problem with translations delivered from https://translate.wordpress.org
Example:
/** * Load translations. * Similar to the core function: * * @see load_plugin_textdomain */ protected static function load_translations() { $domain = 'some-domain'; $locale = get_locale(); $mofile = $domain . '-' . $locale . '.mo'; // Try to load from the languages directory first. if ( ! load_textdomain( $domain, WP_LANG_DIR . '/' . $mofile ) ) { // Then try to load from our languages folder. load_textdomain( $domain, __DIR__ . '/../languages/' . $mofile ); } }
@tivnet Separate translation file for this lib, that is loaded from plugin folder?
@slaFFik Loaded from
5b1786acc516c93990bb668e387730eaeabd49a2
Or use fallback, otherwise there will be problem with translations delivered from https://translate.wordpress.org
Example: