aboutsummaryrefslogtreecommitdiff
path: root/mod/tinymce/start.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-07-06 04:36:25 -0700
committerCash Costello <cash.costello@gmail.com>2012-07-06 04:36:25 -0700
commit3cf836cb73e82ba20ff5066df703ed25d5822b20 (patch)
treed926b0be4705730677edc36368f2975242a47a3e /mod/tinymce/start.php
parentb2f46500941a2093734e7672a4de79aabd95b9fc (diff)
parent8e3a2760ef88077aa04dc1905f5bce0348bdb3d7 (diff)
downloadelgg-3cf836cb73e82ba20ff5066df703ed25d5822b20.tar.gz
elgg-3cf836cb73e82ba20ff5066df703ed25d5822b20.tar.bz2
Merge pull request #294 from sembrestels/tiny18n
Fixes #1852. TinyMCE i18n
Diffstat (limited to 'mod/tinymce/start.php')
-rw-r--r--mod/tinymce/start.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/mod/tinymce/start.php b/mod/tinymce/start.php
index 48625f456..6aba837e0 100644
--- a/mod/tinymce/start.php
+++ b/mod/tinymce/start.php
@@ -33,3 +33,15 @@ function tinymce_longtext_menu($hook, $type, $items, $vars) {
return $items;
}
+
+function tinymce_get_site_language() {
+
+ if ($site_language = elgg_get_config('language')) {
+ $path = elgg_get_plugins_path() . "tinymce/vendor/tinymce/jscripts/tiny_mce/langs";
+ if (file_exists("$path/$site_language.js")) {
+ return $site_language;
+ }
+ }
+
+ return 'en';
+}