Permalink
Browse files

fix(developers): replaced get_language with get_current_language

fixes #7252
  • Loading branch information...
jdalsem committed Apr 8, 2016
1 parent c7c5779 commit b6bcc5796ebe6da491371619014386dc11dc3003
Showing with 5 additions and 5 deletions.
  1. +5 −5 mod/developers/start.php
View
@@ -110,16 +110,16 @@ function developers_setup_menu() {
* Adds debug info to all translatable strings.
*/
function developers_decorate_all_translations() {
- $language = get_language();
+ $language = get_current_language();
_developers_decorate_translations($language);
_developers_decorate_translations('en');
}
/**
* Appends " ($key)" to all strings for the given language.
- *
+ *
* This function checks if the suffix has already been added so it is idempotent
- *
+ *
* @param string $language Language code like "en"
*/
function _developers_decorate_translations($language) {
@@ -135,11 +135,11 @@ function _developers_decorate_translations($language) {
/**
* Clear all the strings so the raw descriptor strings are displayed
- *
+ *
* @deprecated Superceded by developers_decorate_all_translations
*/
function developers_clear_strings() {
- $language = get_language();
+ $language = get_current_language();
$GLOBALS['_ELGG']->translations[$language] = array();
$GLOBALS['_ELGG']->translations['en'] = array();
}

0 comments on commit b6bcc57

Please sign in to comment.