aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-10 15:25:47 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-10 15:25:47 +0000
commita320ca40cded8b45c5aeda4320611603d7b68d08 (patch)
tree787d39f70e5bc16f83f284b13f44cc46f7e1b88b
parent9834cbc09beab5ae5bba001943eef1c6f60c549e (diff)
downloadelgg-a320ca40cded8b45c5aeda4320611603d7b68d08.tar.gz
elgg-a320ca40cded8b45c5aeda4320611603d7b68d08.tar.bz2
A better fix for language pack loading ...
git-svn-id: https://code.elgg.org/elgg/trunk@854 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/languages.php16
1 files changed, 1 insertions, 15 deletions
diff --git a/engine/lib/languages.php b/engine/lib/languages.php
index a9bb46516..caee8ea44 100644
--- a/engine/lib/languages.php
+++ b/engine/lib/languages.php
@@ -72,20 +72,6 @@
}
/**
- * Function to load translation files on system boot. Parameters are standard event API parameters, but unused.
- *
- * @param unknown_type $event
- * @param unknown_type $object_type
- * @param unknown_type $object
- */
- function init_translations() {
- global $CONFIG;
- // register_translations($CONFIG->path . "languages/");
- register_translations(dirname(dirname(dirname(__FILE__))) . "/languages/");
-
- }
-
- /**
* When given a full path, finds translation files and loads them
*
* @param string $path Full path
@@ -100,6 +86,6 @@
}
}
- register_elgg_event_handler("boot","system","init_translations",5);
+ register_translations(dirname(dirname(dirname(__FILE__))) . "/languages/");
?> \ No newline at end of file