From 14221aea7164ed1d0b4a4d6e60c980a519807cbc Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 31 Jul 2022 22:55:03 +0200 Subject: [PATCH] Fix legacy locale references --- app/controllers/manifests_controller.rb | 2 +- app/views/application/_questionbox.haml | 2 +- app/views/question/_question.haml | 2 +- app/views/shared/_question.haml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/manifests_controller.rb b/app/controllers/manifests_controller.rb index c3fc2b44..c151076a 100644 --- a/app/controllers/manifests_controller.rb +++ b/app/controllers/manifests_controller.rb @@ -13,7 +13,7 @@ class ManifestsController < ApplicationController categories: %w[social], lang: I18n.locale, shortcuts: [ - webapp_shortcut(inbox_url, t("views.navigation.inbox"), "inbox") + webapp_shortcut(inbox_url, t("navigation.inbox"), "inbox") ], icons: webapp_icons, theme_color: theme_color, diff --git a/app/views/application/_questionbox.haml b/app/views/application/_questionbox.haml index 665b57da..066a4dcd 100644 --- a/app/views/application/_questionbox.haml +++ b/app/views/application/_questionbox.haml @@ -50,4 +50,4 @@ .col-xs-12.col-sm-10.offset-sm-1.text-center %small= t(".promote.join", app_title: APP_CONFIG["site_name"]) - else - %p= raw t(".required", signup: link_to(t("views.sessions.new"), new_user_registration_path)) + %p= raw t(".required", signup: link_to(t("voc.register"), new_user_registration_path)) diff --git a/app/views/question/_question.haml b/app/views/question/_question.haml index ccf20cc5..b1573adb 100644 --- a/app/views/question/_question.haml +++ b/app/views/question/_question.haml @@ -34,5 +34,5 @@ - if hidden = user_screen_name question.user, author_identifier: identifier, url: false - else - = raw t('views.answerbox.asked', user: user_screen_name(question.user, author_identifier: identifier), time: time_tooltip(question)) + = raw t("answerbox.header.asked", user: user_screen_name(question.user, author_identifier: identifier), time: time_tooltip(question)) .answerbox__question-text= question_markdown question.content diff --git a/app/views/shared/_question.haml b/app/views/shared/_question.haml index 110813de..24018b29 100644 --- a/app/views/shared/_question.haml +++ b/app/views/shared/_question.haml @@ -26,7 +26,7 @@ %i.fa.fa-gears = t("voc.view_in_rails_admin") %h6.media-heading.text-muted.answerbox__question-user - = raw t('views.answerbox.asked', user: user_screen_name(q.user), time: time_tooltip(q)) + = raw t('answerbox.header.asked', user: user_screen_name(q.user), time: time_tooltip(q)) - if q.answer_count > 1 ยท %a{ href: question_path(q.user.screen_name, q.id) }