Fix language strings.

This commit is contained in:
2025-11-30 22:49:24 +05:30
parent 5cfb2d8e6d
commit ee156dd11b
2 changed files with 11 additions and 10 deletions

View File

@@ -8,15 +8,15 @@
{{- block "meta" . -}} {{- block "meta" . -}}
<title> <title>
{{- if eq .Data.PageType "/" }} {{- .L.T "global.siteName" -}} {{- if eq .Data.PageType "/" }} {{- .L.T "global.siteName" -}}
{{- else if eq .Data.PageType "glossary" }}{{- .L.T "public.glossaryTitle" -}} {{- else if eq .Data.PageType "glossary" }}{{- .L.Ts "public.glossary" "lang" (title .Data.Glossary.FromLang) -}}
{{- else if eq .Data.PageType "search" }}{{- .L.Ts "public.searchTitle" "query" .Data.Query.Query -}} {{- else if eq .Data.PageType "search" }}{{- .L.Ts "public.searchTitle" "query" .Data.Query.Query "fromLang" .Data.Query.ToLang -}}
{{- else if ne .Data.Title "" }}{{ .Data.Title }} {{- else if ne .Data.Title "" }}{{ .Data.Title }}
{{- end -}} {{- end -}}
</title> </title>
<meta name="description" value=" <meta name="description" value="
{{- if eq .Data.PageType "/" }}Dictionary website {{- if eq .Data.PageType "/" }}{{- .L.T "global.siteName" -}}
{{- else if eq .Data.PageType "glossary" }}Glossary of words. {{- else if eq .Data.PageType "glossary" }}{{- .L.Ts "public.glossary" "lang" (title .Data.Glossary.FromLang) -}}
{{- else if eq .Data.PageType "search" }}{{ .Data.Query.Query }} meaning. {{- else if eq .Data.PageType "search" }}{{- .L.Ts "public.searchDescription" "query" .Data.Query.Query "fromLang" .Data.Query.FromLang "toLang" .Data.Query.ToLang -}}
{{- else if ne .Data.Description "" }}{{ .Data.Description }} {{- else if ne .Data.Description "" }}{{ .Data.Description }}
{{- else }}{{ block "description" . }}{{end}} {{- else }}{{ block "description" . }}{{end}}
{{- end -}}" /> {{- end -}}" />
@@ -37,7 +37,7 @@
<header class="header"> <header class="header">
<div class="row"> <div class="row">
<div class="logo four columns"> <div class="logo four columns">
<a href="/"><img src="/static/logo.svg?v={{ .AssetVer }}" alt="Dictionary logo" /></a> <a href="/"><img src="/static/logo.svg?v={{ .AssetVer }}" alt="Alar" /></a>
<h3 class="intro"> <h3 class="intro">
<p>ಶ್ರೀ. ವಿ. ಕೃಷ್ಣ ಅವರ ಕನ್ನಡ - ಇಂಗ್ಲಿಷ್ ನಿಘಂಟು</p> <p>ಶ್ರೀ. ವಿ. ಕೃಷ್ಣ ಅವರ ಕನ್ನಡ - ಇಂಗ್ಲಿಷ್ ನಿಘಂಟು</p>
“Alar” V. Krishna's Kannada → English dictionary “Alar” V. Krishna's Kannada → English dictionary
@@ -78,7 +78,7 @@
{{ $from := index $d 0}} {{ $from := index $d 0}}
{{ $to := index $d 1}} {{ $to := index $d 1}}
<a href="{{ $.Consts.RootURL }}/glossary/{{ $from.ID }}/{{ $to.ID }}/*" class="tab"> <a href="{{ $.Consts.RootURL }}/glossary/{{ $from.ID }}/{{ $to.ID }}/*" class="tab">
{{ title ($.L.Ts "public.glossary" "lang" "") }} {{ $.L.Ts "public.glossary" "lang" $from.Name }}
</a> </a>
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@@ -4,7 +4,7 @@
"global.btnClose": "Close", "global.btnClose": "Close",
"global.btnDelete": "Delete", "global.btnDelete": "Delete",
"global.btnSearch": "Search", "global.btnSearch": "Search",
"global.siteName": "Dictionary", "global.siteName": "Alar (ಅಲರ್) - Kannada - English dictionary. ಕನ್ನಡ-ಇಂಗ್ಲಿಷ್ ನಿಘಂಟು.",
"public.errorMessage": "An error occurred. Please try later.", "public.errorMessage": "An error occurred. Please try later.",
"public.errorTitle": "Error", "public.errorTitle": "Error",
"public.about": "About", "public.about": "About",
@@ -13,7 +13,8 @@
"public.mainTitle": "Dictionary website", "public.mainTitle": "Dictionary website",
"public.noResults": "No results where found for the query.", "public.noResults": "No results where found for the query.",
"public.noResultsTitle": "No results", "public.noResultsTitle": "No results",
"public.searchTitle": "{query} English meaning - Alar", "public.searchTitle": "{query} {fromLang} meaning - Alar",
"public.searchDescription": "{query} {fromLang} word meanings and definitions in {toLang}",
"public.similarTitle": "Similar words", "public.similarTitle": "Similar words",
"public.playAudio": "Play audio", "public.playAudio": "Play audio",
"public.subTitle": "Kannada-English dictionary", "public.subTitle": "Kannada-English dictionary",