Bug #526

Survey language is not translated in the languages list

Added by Yannick Warnier almost 12 years ago. Updated almost 11 years ago.

Bug resolved
Target version:
Start date:
Due date:
% Done:


Estimated time:
0.20 h
Spent time:
SCRUM pts - complexity:


When creating a new survey, the creation language is never translated in the list of surveys (in a French interface, I see "French" instead of "Fran├žais")



Updated by Yannick Warnier over 11 years ago

  • Target version changed from 11 to 1.8.7

Updated by Anonymous over 11 years ago

I looked into this but couldn't find a way to use langNameOfLang (see Will look at it again later...


Updated by Anonymous over 11 years ago

  • Target version changed from 1.8.7 to
The problem is that there are 2 langNameOfLang in trad4all:
  • One that is an array
  • Another one that is a string

When commenting out the string langNameOfLang, get_lang('NameOfLang') returns the array, which can be used to translate the survey language. The solution would therefore be to remove the string langNameOfLang, which is apparently not used anywhere. Leaving this for the, to avoid eventual bugs caused by this variable removal


Updated by Yannick Warnier about 11 years ago

  • Target version changed from to 1.8.8 stable
  • Complexity changed from Piece of cake to Easy

The problem is still up to date (delayed until 1.8.8 and promoted to "easy").
As Guillaume said, we can probably recover NameOfLang, but this translation doesn't seem to be updated, nor does it seem possible (from what I see inside the get_lang()'s code) to recover the array. In any case, the update should be done around $survey5 inside get_survey_data() in main/survey/survey.lib.php.

I would suggest forgetting about NameOfLang array from now on and just declare the languages with some kind of prefixed variables inside


Updated by Yannick Warnier almost 11 years ago

  • Target version changed from 1.8.8 stable to 1.8.8 alpha
  • Estimated time set to 0.20 h

Updated by Alberto Torreblanca almost 11 years ago

  • Status changed from New to Assigned
  • Assignee set to Alberto Torreblanca

Also available in: Atom PDF