Loads the plugin’s textdomain.
Description
See also
Source
File: src/torro-forms.php
protected function load_textdomain() { /** This filter is documented in wp-includes/l10n.php */ $locale = apply_filters( 'plugin_locale', get_locale(), 'torro-forms' ); $mofile = WP_LANG_DIR . '/plugins/torro-forms/torro-forms-' . $locale . '.mo'; if ( file_exists( $mofile ) ) { return load_textdomain( 'torro-forms', $mofile ); } $this->load_plugin_textdomain( 'torro-forms' ); }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |