From 28d5347cf3da0a0e3c192f39b553c0ae6df53a09 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Tue, 8 Oct 2019 02:38:41 +0300 Subject: [PATCH] Singular form for files that has only one line (#8416) --- options/locale/locale_en-US.ini | 1 + templates/repo/view_file.tmpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index d9d27af26f..ca09b6120d 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -681,6 +681,7 @@ stored_lfs = Stored with Git LFS commit_graph = Commit Graph blame = Blame normal_view = Normal View +line = line lines = lines editor.new_file = New File diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 71607bd1f8..e3d346db3e 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -8,7 +8,7 @@
{{if .NumLines}}
- {{.NumLines}} {{.i18n.Tr "repo.lines"}} + {{.NumLines}} {{.i18n.Tr (TrN .i18n.Lang .NumLines "repo.line" "repo.lines") }}
{{end}} {{if .FileSize}}