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:
parent
bf22c69286
commit
768a792a61
2 changed files with 24 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue