Survey language is not translated in the languages list
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 Anonymous over 12 years ago
- Target version changed from 1.8.7 to 18.104.22.168
- 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 22.214.171.124, to avoid eventual bugs caused by this variable removal
Updated by Yannick Warnier about 12 years ago
- Target version changed from 126.96.36.199 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
Updated by Alberto Torreblanca over 11 years ago
- Status changed from Assigned to Bug resolved
- % Done changed from 0 to 100