Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
  • Markus Heiser's avatar
    d5ecda99
    [mod] move language recognition to get_search_query_from_webapp · d5ecda99
    Markus Heiser authored
    
    
    To set the language from language recognition and hold the value selected by the
    client, the previous implementation creates a copy of the SearchQuery object and
    manipulates the SearchQuery object by calling function replace_auto_language().
    
    This patch tries to implement a similar functionality in a more central place,
    in function get_search_query_from_webapp() when the SearchQuery object is build
    up.
    
    Additional this patch uses the language preferred by the client, if language
    recognition does not have a match / the existing implementation does not care
    about client preferences and uses 'all' in case of no match.
    
    Signed-off-by: default avatarMarkus Heiser <markus.heiser@darmarit.de>
    d5ecda99
    [mod] move language recognition to get_search_query_from_webapp
    Markus Heiser authored
    
    
    To set the language from language recognition and hold the value selected by the
    client, the previous implementation creates a copy of the SearchQuery object and
    manipulates the SearchQuery object by calling function replace_auto_language().
    
    This patch tries to implement a similar functionality in a more central place,
    in function get_search_query_from_webapp() when the SearchQuery object is build
    up.
    
    Additional this patch uses the language preferred by the client, if language
    recognition does not have a match / the existing implementation does not care
    about client preferences and uses 'all' in case of no match.
    
    Signed-off-by: default avatarMarkus Heiser <markus.heiser@darmarit.de>
Loading