Files
Wieland Lindenthal c2819c466d improve code climate
2019-01-30 15:57:05 +01:00

10 lines
262 B
Ruby

module OpenProject
module GlobalSearch
def self.tab_name(tab)
I18n.t("global_search.overwritten_tabs.#{tab}",
default: I18n.t("label_#{tab.singularize}_plural",
default: tab.to_s.humanize))
end
end
end