Skip to content

Commit

Permalink
Fixed issue: Relevane equation hints not translated
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed May 23, 2013
1 parent 0a72143 commit 2501624
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion application/controllers/AdminController.php
Expand Up @@ -121,7 +121,8 @@ protected function _sessioncontrol()
if (empty(Yii::app()->session['adminlang']))
Yii::app()->session["adminlang"] = Yii::app()->getConfig("defaultlang");

$this->lang = new Limesurvey_lang(Yii::app()->session['adminlang']);
global $clang; // Needed so EM can localize equation hints until a better solution is found
$this->lang = $clang = new Limesurvey_lang(Yii::app()->session['adminlang']);
Yii::app()->setLang($this->lang);

if (!empty($this->user_id))
Expand Down
2 changes: 0 additions & 2 deletions application/core/Survey_Common_Action.php
Expand Up @@ -336,8 +336,6 @@ protected function _renderWrappedTemplate($sAction = '', $aViewUrls = array(), $
function _questionbar($iSurveyID, $gid, $qid, $action = null)
{
$clang = $this->getController()->lang;


$baselang = Survey::model()->findByPk($iSurveyID)->language;

//Show Question Details
Expand Down

1 comment on commit 2501624

@Shnoulle
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you :)

Working

Attach the bug : http://bugs.limesurvey.org/view.php?id=7264

Please sign in to comment.