]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #1852 adds readme with language instructions for TinyMCE
authorCash Costello <cash.costello@gmail.com>
Fri, 6 Jul 2012 11:52:28 +0000 (07:52 -0400)
committerCash Costello <cash.costello@gmail.com>
Fri, 6 Jul 2012 11:52:28 +0000 (07:52 -0400)
mod/tinymce/README.txt [new file with mode: 0644]
mod/tinymce/activate.php
mod/tinymce/languages/en.php

diff --git a/mod/tinymce/README.txt b/mod/tinymce/README.txt
new file mode 100644 (file)
index 0000000..2814e93
--- /dev/null
@@ -0,0 +1,10 @@
+Adding a language
+======================
+1. Download the language pack from [TinyMCE][1]
+2. Extract the files from the zip file.
+3. Copy the langs, plugins, and themes directories into mod/tinymce/vendor/tinymce/jscripts/tiny_mce/.
+There are already directories with those names. You do not want to delete those directories.
+Instead, copy the new directories on top of the old ones.
+4. Flush the Elgg caches.
+
+[1]: http://www.tinymce.com/i18n/index.php?ctrl=lang&act=download      "TinyMCE"
index 953e3c25bef08e0008d8d663f2f47d68bdbcea9c..6f5cc8d50bc35481412a974cf6f3c4640d6e1517 100644 (file)
@@ -7,7 +7,7 @@ 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_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);
index 293e68b35c1786fde9acc6d8e54c3cda5afb7cd1..b2702549c642124369821d8f929775dea0ee47a3 100644 (file)
@@ -9,7 +9,7 @@ $english = array(
        'tinymce:remove' => "Remove editor",
        'tinymce:add' => "Add editor",
        'tinymce:word_count' => 'Word count: ',
-       'tinymce:lang_notice' => "Your site language is %s but it isn't installed for TinyMCE. Get it <a target=\"_blank\" href=\"%s\">here</a> and copy it in %s path. Then, <a href=\"%s\">flush the caches</a>.",
+       'tinymce:lang_notice' => "Your site language is %s but it isn't installed for TinyMCE. Get it <a target=\"_blank\" href=\"%s\">here</a> and copy it to %s. Then, <a href=\"%s\">flush the caches</a>. See the TinyMCE README for more details.",
 );
 
 add_translation("en", $english);