Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion config/initializers/i18n_defaults.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ class << self
alias original_translate translate

def translate(key, **options)
defaults = { site_name: TeSS::Config.site['title_short'] }
defaults = { site_name: TeSS::Config.site['title_short'],
repository: TeSS::Config.site['repository'] }
original_translate(key, **defaults.merge(options))
end
alias t translate
Expand Down
4 changes: 2 additions & 2 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,11 @@ en:
As such, all content in %{site_name} is available under the CC BY 4.0 licence, and can be accessed through our API
and widgets. The %{site_name} codebase is also available to re-use under the BSD Licence, and can be found on GitHub.
code_license: >
<a href="https://github.com/ElixirTeSS/TeSS/blob/master/LICENSE", target="_blank">BSD 3-Clause<i class="icon icon-md arrow-top-right-icon"></i></a>
<a href="%{repository}/blob/master/LICENSE", target="_blank">BSD 3-Clause<i class="icon icon-md arrow-top-right-icon"></i></a>
data_license: >
<a href="https://creativecommons.org/licenses/by/4.0/", target="_blank">CC-BY 4.0<i class="icon icon-md arrow-top-right-icon"></i></a>
contributions: >
<a href="https://github.com/ElixirTeSS/TeSS/blob/master/CONTRIBUTING.md", target="_blank">contributions<i class="icon icon-md arrow-top-right-icon"></i></a>
<a href="%{repository}/blob/master/CONTRIBUTING.md", target="_blank">contributions<i class="icon icon-md arrow-top-right-icon"></i></a>
gmaps_countries: >
'United Kingdom', 'Spain', 'Portugal', 'France', 'Belgium', 'Ireland', 'Estonia', 'Finland',
'Germany', 'Austria', 'Italy', 'Hungary', 'Czech Republic', 'Estonia', 'Denmark',
Expand Down