/**
  * There is something wrong? Here comes the message...
  * @return bool
  */
 public function has_problems()
 {
     $message = '';
     $options = MslsOptions::instance();
     if (1 == count($options->get_available_languages())) {
         $message = sprintf(__('There are no language files installed. You can <a href="%s">manually install some language files</a> or you could use a <a href="%s">plugin</a> to download these files automatically.'), esc_url('http://codex.wordpress.org/Installing_WordPress_in_Your_Language#Manually_Installing_Language_Files'), esc_url('http://wordpress.org/plugins/wp-native-dashboard/'));
     } elseif ($options->is_empty()) {
         $message = sprintf(__('Multisite Language Switcher is almost ready. You must <a href="%s">complete the configuration process</a>.'), esc_url(admin_url('/options-general.php?page=MslsAdmin')));
     }
     return MslsPlugin::message_handler($message, 'updated fade');
 }
 /**
  * Prints a message that the Multisite Language Switcher needs an
  * active multisite to work properly.
  */
 function plugin_needs_multisite()
 {
     MslsPlugin::message_handler(__('The Multisite Language Switcher needs the activation of the multisite-feature for working properly. Please read <a onclick="window.open(this.href); return false;" href="http://codex.wordpress.org/Create_A_Network">this post</a> if you don\'t know the meaning.', 'msls'));
 }
 /**
  * Verify the static message_handler-method
  */
 function test_message_handler_method()
 {
     $this->expectOutputString('<div id="msls-warning" class="error"><p>Test</p></div>');
     MslsPlugin::message_handler('Test');
 }