Project

General

Profile

Support #5250

Improve language priority feature

Added by Yannick Warnier about 7 years ago. Updated over 6 years ago.

Status:
Needs more info
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
24/07/2012
Due date:
% Done:

10%

Estimated time:
Spent time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

It appears like the language priority feature redefines the way the language is set on the platform and that, in some cases, it might redefine the language in a confusing way. Check this before th release to avoid a disaster.


Files

2012-07-27_1746.png (19.4 KB) 2012-07-27_1746.png Hubert Borderiou, 27/07/2012 17:44

History

#1

Updated by Hubert Borderiou about 7 years ago

I think I understand it... but it is not obvious
Isn't it for some very specific cases ?
In the state of the tool, you may choose the same option for every langage priority (see attached)
I suppose it is not usefull to be able to do this.
It could help me to understand if this was forbidden.

#2

Updated by Yannick Warnier about 7 years ago

  • Subject changed from Check language priority feature before release to Improve language priority feature
  • Status changed from Assigned to New
  • Assignee deleted (Yannick Warnier)
  • Target version changed from 1.9 Stable to 1.9.2

OK, thank you. Changing the name of the issue and moving to 1.9.2 for improvements

#3

Updated by Julio Montoya about 7 years ago

  • Status changed from New to Assigned
  • Assignee set to Julio Montoya

I'm going to check this one

#4

Updated by Julio Montoya about 7 years ago

  • Status changed from Assigned to Needs more info
  • Assignee deleted (Julio Montoya)
  • % Done changed from 0 to 10

What's the difference between "Langue de l'utilisateur" and "Langue choisie par l'utilisateur" ?

It seems that the "Langue choisie par l'utilisateur" is saved in a session, but what's is the idea behind that?

I found this piece of code in main_api


function api_get_language_from_type($lang_type){
    global $_user;
    global $_course;
    $toreturn = false;
    switch ($lang_type) {
        case 'platform_lang' :
            $temp_lang = api_get_setting('platformLanguage');
            if (!empty($temp_lang))
                $toreturn = $temp_lang;
            break;
        case 'user_profil_lang' :
            if (isset($_user['language']) && !empty($_user['language']) )
                $toreturn = $_user['language'];
            break;
        case 'user_selected_lang' :
            if (isset($_SESSION['user_language_choice']) && !empty($_SESSION['user_language_choice']) )
                $toreturn = ($_SESSION['user_language_choice']);
            break;
        case 'course_lang' :
            if ($_course['language'] && !empty($_course['language']) )
                $toreturn = $_course['language'];
            break;
        default :
            $toreturn = false;
        break;
    }
    return $toreturn;
}

#5

Updated by Yannick Warnier about 7 years ago

  • Target version changed from 1.9.2 to 1.9.4
#6

Updated by Yannick Warnier almost 7 years ago

  • Target version changed from 1.9.4 to 1.9.6
#7

Updated by Yannick Warnier over 6 years ago

  • Target version deleted (1.9.6)

Also available in: Atom PDF