Prioritise strings[].name over strings[].community

This commit is contained in:
Adam Hoyle 2021-08-25 22:00:41 +01:00
parent db8d437ae3
commit 9d5fd432ee

View file

@ -29,7 +29,7 @@ class Communities
next unless key == "type" && value == "osm-lc" && id != "OSMF"
strings = resource["strings"]
chapter_name = strings["community"] || strings["name"]
chapter_name = strings["name"] || "!! " + strings["community"]
url = strings["url"]
local_chapters.push({ :id => id, :name => chapter_name, :url => url })
end