diff --git a/admin/core/um-admin-notices.php b/admin/core/um-admin-notices.php index deb4a1df..18fa2b84 100644 --- a/admin/core/um-admin-notices.php +++ b/admin/core/um-admin-notices.php @@ -117,15 +117,19 @@ class UM_Admin_Notices { if ( strstr( $locale, 'en_' ) ) return; // really, english! if ( file_exists( WP_LANG_DIR . '/plugins/ultimatemember-' . $locale . '.mo' ) ) return; - if ( isset( $ultimatemember->available_languages[$locale] ) ) { + if ( isset( $ultimatemember->available_languages[ $locale ] ) ) { $download_uri = add_query_arg('um_adm_action', 'um_language_downloader'); + + $hide_locale_notice = get_option('um_hide_locale_notice'); + if ( !$hide_locale_notice ) { + echo '
'; - echo '
'; + echo sprintf(__('Your site language is %1$s. Good news! Ultimate Member is already available in %2$s language. Download the translation files and start using the plugin in your language now. Hide this notice','ultimatemember'), $locale, $ultimatemember->available_languages[$locale], $download_uri, add_query_arg('um_adm_action', 'um_hide_locale_notice') ); - echo sprintf(__('Your site language is %1$s. Good news! Ultimate Member is already available in %2$s language. Download the translation files and start using the plugin in your language now.','ultimatemember'), $locale, $ultimatemember->available_languages[$locale], $download_uri ); + echo '