Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 3 additions & 1 deletion config/initializers/i18n_defaults.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ 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'],
data_license: TeSS::Config.site['data_license'] }
original_translate(key, **defaults.merge(options))
end
alias t translate
Expand Down
8 changes: 4 additions & 4 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,12 @@ en:
%{site_name} is committed to the FAIR principles: making data findable, accessible, interoperable and re-usable.
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>
code_license: > # IT MUST STAY BSD 3-Clause LICENSE FOR EVERY TESS INSTANCE
<a href="%{repository}/blob/master/LICENSE" target="_blank" rel="noopener noreferrer">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>
<a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="noopener noreferrer">%{data_license}<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" rel="noopener noreferrer">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
1 change: 1 addition & 0 deletions config/tess.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ default: &default
logo_email: ''
default_theme: default
repository: 'https://github.com/ElixirTeSS/TeSS'
data_license: 'CC-BY 4.0'
supported_by: 'elixir_supported_by'
widget_example:
home_page: # Configuration for the sections displayed on the front page
Expand Down
Loading