<?php
/**
 * Prompt the user to install a tinymce language after activating
 */

if (elgg_get_config('language') != extended_tinymce_get_site_language()) {
	$message = elgg_echo('extended_tinymce:lang_notice', array(
		elgg_echo(elgg_get_config('language')),
		"https://www.tinymce.com/download/language-packages/",
		elgg_get_plugins_path() . "extended_tinymce/vendor/tinymce/js/tinymce/langs",
		elgg_add_action_tokens_to_url(elgg_normalize_url('action/admin/site/flush_cache')),
	));
	elgg_add_admin_notice('extended_tinymce_admin_notice_no_lang', $message);
}
