AnsPress_Init::load_textdomain()
Description #
Load translations.
Source #
File: anspress-question-answer.php
public static function load_textdomain() { $locale = apply_filters( 'plugin_locale', get_locale(), 'anspress-question-answer' ); $loaded = load_textdomain( 'anspress-question-answer', trailingslashit( WP_LANG_DIR ) . "anspress-question-answer/anspress-question-answer-{$locale}.mo" ); if ( $loaded ) { return $loaded; } else { load_plugin_textdomain( 'anspress-question-answer', false, basename( __DIR__ ) . '/languages/' ); } }
Expand full source code Collapse full source code View on GitHub: anspress-question-answer.php:590
Add your comment