From 05ec92186b9e94571716c9e6ec61a6b3574b8ed6 Mon Sep 17 00:00:00 2001 From: Alex Turchyn Date: Mon, 23 Sep 2024 15:45:47 +0300 Subject: [PATCH] fix i18n --- app/controllers/user_signatures_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/user_signatures_controller.rb b/app/controllers/user_signatures_controller.rb index 1588e935..1200acff 100644 --- a/app/controllers/user_signatures_controller.rb +++ b/app/controllers/user_signatures_controller.rb @@ -9,7 +9,7 @@ class UserSignaturesController < ApplicationController def update file = params[:file] - return redirect_to settings_profile_index_path, notice: I18n.t('Unable to save signature') if file.blank? + return redirect_to settings_profile_index_path, notice: I18n.t('unable_to_save_signature') if file.blank? blob = ActiveStorage::Blob.create_and_upload!(io: file.open, filename: file.original_filename, @@ -24,7 +24,7 @@ class UserSignaturesController < ApplicationController if @user_config.update(value: attachment.uuid) redirect_to settings_profile_index_path, notice: I18n.t('signature_has_been_saved') else - redirect_to settings_profile_index_path, notice: I18n.t('Unable to save signature') + redirect_to settings_profile_index_path, notice: I18n.t('unable_to_save_signature') end end