Project

General

Profile

Bug #526

Survey language is not translated in the languages list

Added by Yannick Warnier almost 10 years ago. Updated almost 9 years ago.

Status:
Bug resolved
Priority:
Normal
Category:
-
Target version:
Start date:
16/01/2010
Due date:
% Done:

100%

Estimated time:
0.20 h
Spent time:
Complexity:
Easy
SCRUM pts - complexity:
1

Description

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")

History

#1

Updated by Yannick Warnier almost 10 years ago

  • Target version changed from 11 to 1.8.7
#2

Updated by Anonymous over 9 years ago

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

#3

Updated by Anonymous over 9 years ago

  • Target version changed from 1.8.7 to 1.8.7.1
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 1.8.7.1, to avoid eventual bugs caused by this variable removal

#4

Updated by Yannick Warnier over 9 years ago

  • Target version changed from 1.8.7.1 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 trad4all.inc.php

#5

Updated by Yannick Warnier almost 9 years ago

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

Updated by Alberto Torreblanca almost 9 years ago

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

Also available in: Atom PDF