From 9ef27a53b1b01075c6fe8ec84ee2aa235f2ca916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marti=C3=B1o=20Rivera=20Dourado?= Date: Wed, 12 Aug 2020 16:58:49 +0200 Subject: [PATCH] Add Galician translation and flag --- data/langFlags.yaml | 2 ++ i18n/gl.toml | 36 ++++++++++++++++++++++++++++++++++++ layouts/partials/head.html | 2 +- 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 i18n/gl.toml diff --git a/data/langFlags.yaml b/data/langFlags.yaml index d4d1be7ad..cda2411e4 100644 --- a/data/langFlags.yaml +++ b/data/langFlags.yaml @@ -9,3 +9,5 @@ nl: nl pt-br: br ru: ru tr: tr +ml: in +gl: es-ga diff --git a/i18n/gl.toml b/i18n/gl.toml new file mode 100644 index 000000000..21e0e8950 --- /dev/null +++ b/i18n/gl.toml @@ -0,0 +1,36 @@ +# Translations for Galician +# https://gohugo.io/content-management/multilingual/#translation-of-strings + +# Generic +# +[translations] +other = "Traducións" + +[postAvailable] +other = "Tamén dispoñible en" + + +# 404.html +# +[archives] +other = "Arquivos" + +[home] +other = "Inicio" + +[notFound] +other = "Vaia, non se atopou a páxina..." + + +# posts/single.html +# +[readingTime] +one = "Un minuto" +other = "{{ .Count }} minutos" + +[tableOfContents] +other = "Táboa de contidos" + +[wordCount] +one = "Unha Palabra" +other = "{{ .Count }} Palabras" diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 93851252f..f02233b3b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -19,7 +19,7 @@ {{ end }} - {{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" true) }}