diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-07-06 04:36:25 -0700 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-07-06 04:36:25 -0700 |
commit | 3cf836cb73e82ba20ff5066df703ed25d5822b20 (patch) | |
tree | d926b0be4705730677edc36368f2975242a47a3e /mod/tinymce/activate.php | |
parent | b2f46500941a2093734e7672a4de79aabd95b9fc (diff) | |
parent | 8e3a2760ef88077aa04dc1905f5bce0348bdb3d7 (diff) | |
download | elgg-3cf836cb73e82ba20ff5066df703ed25d5822b20.tar.gz elgg-3cf836cb73e82ba20ff5066df703ed25d5822b20.tar.bz2 |
Merge pull request #294 from sembrestels/tiny18n
Fixes #1852. TinyMCE i18n
Diffstat (limited to 'mod/tinymce/activate.php')
-rw-r--r-- | mod/tinymce/activate.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mod/tinymce/activate.php b/mod/tinymce/activate.php new file mode 100644 index 000000000..953e3c25b --- /dev/null +++ b/mod/tinymce/activate.php @@ -0,0 +1,14 @@ +<?php +/** + * Prompt the user to install a tinymce language after activating + */ + +if (elgg_get_config('language') != tinymce_get_site_language()) { + $message = elgg_echo('tinymce:lang_notice', array( + elgg_echo(elgg_get_config('language')), + "http://www.tinymce.com/i18n/index.php?ctrl=lang&act=download", + elgg_get_plugins_path() . "tinymce/vendor/tinymce/jscripts/tiny_mce", + elgg_add_action_tokens_to_url(elgg_normalize_url('action/admin/site/flush_cache')), + )); + elgg_add_admin_notice('tinymce_admin_notice_no_lang', $message); +} |