Improve selection of name to display in data browser

If the user is logged in then consider all their preferred
languages rather than just the UI language, and use the full
locale matching algorithm instead of just checking parents.

Fixes #2636
This commit is contained in:
Tom Hughes 2020-06-04 17:25:13 +01:00
parent bf22c69286
commit 768a792a61
2 changed files with 24 additions and 2 deletions

View file

@ -151,4 +151,10 @@ class BrowseHelperTest < ActionView::TestCase
create(:node_tag, :node => node, :k => key, :v => value)
end
end
private
def current_user
nil
end
end