From 4bb6ee71f0f0a45d70fed048444f0b1ae0f4ded0 Mon Sep 17 00:00:00 2001
From: Earl Warren <contact@earl-warren.org>
Date: Mon, 6 Nov 2023 18:16:34 +0100
Subject: [PATCH] [GITEA] Tidy up archive modal (squash) ctx.Locale

---
 templates/repo/settings/options.tmpl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index 8d1e1bcaa4..ad46953ae5 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -988,8 +988,8 @@
 					<input type="hidden" name="action" value="{{if .Repository.IsArchived}}unarchive{{else}}archive{{end}}">
 					<input type="hidden" name="repo_id" value="{{.Repository.ID}}">
 					<div class="text right actions">
-						<button class="ui cancel button">{{.locale.Tr "settings.cancel"}}</button>
-						<button class="ui red button">{{.locale.Tr "repo.settings.archive.button"}}</button>
+						<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
+						<button class="ui red button">{{ctx.Locale.Tr "repo.settings.archive.button"}}</button>
 					</div>
 			</form>
 			</div>