From af6207095c025493b95fdfc2f61da53fa556ecf4 Mon Sep 17 00:00:00 2001 From: kennethrioja <59597207+kennethrioja@users.noreply.github.com> Date: Fri, 24 Jul 2026 16:52:48 +0200 Subject: [PATCH] feat(about): adding %{repository} instead of hardcoded GitHub repo --- config/initializers/i18n_defaults.rb | 3 ++- config/locales/en.yml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/initializers/i18n_defaults.rb b/config/initializers/i18n_defaults.rb index 57102cba6..c5602a90e 100644 --- a/config/initializers/i18n_defaults.rb +++ b/config/initializers/i18n_defaults.rb @@ -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 diff --git a/config/locales/en.yml b/config/locales/en.yml index 727d7ca70..6578e6ee8 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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: > - BSD 3-Clause + BSD 3-Clause data_license: > CC-BY 4.0 contributions: > - contributions + contributions gmaps_countries: > 'United Kingdom', 'Spain', 'Portugal', 'France', 'Belgium', 'Ireland', 'Estonia', 'Finland', 'Germany', 'Austria', 'Italy', 'Hungary', 'Czech Republic', 'Estonia', 'Denmark',