From cd457d7bcd9177b15af6b88a6b5876d77f7fa6d3 Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Mon, 19 Jun 2017 11:09:12 +0200 Subject: [PATCH] Implemented i18n support for theme strings like Home and Search. --- i18n/en.toml | 17 +++++++++++++++++ i18n/sv.toml | 18 ++++++++++++++++++ layouts/partials/menu.html | 2 +- layouts/partials/pagination.html | 4 ++-- layouts/partials/search.html | 2 +- layouts/partials/tags.html | 2 +- theme.toml | 1 - 7 files changed, 40 insertions(+), 6 deletions(-) create mode 100644 i18n/en.toml create mode 100644 i18n/sv.toml diff --git a/i18n/en.toml b/i18n/en.toml new file mode 100644 index 0000000..139b076 --- /dev/null +++ b/i18n/en.toml @@ -0,0 +1,17 @@ +[menu_home] +other = "Home" + +[pager_next] +other = "Next" + +[pager_prev] +other = "Prev" + +[taxo_tags] +other = "Tags" + +[search_placeholder] +other = "Search" + +[search_title] +other = "Enter the terms you wish to search for." diff --git a/i18n/sv.toml b/i18n/sv.toml new file mode 100644 index 0000000..d77bfac --- /dev/null +++ b/i18n/sv.toml @@ -0,0 +1,18 @@ +[menu_home] +other = "Hem" + +[pager_next] +other = "Nästa" + +[pager_prev] +other = "Föregående" + +[taxo_tags] +other = "Taggar" + +[search_placeholder] +other = "Sök" + +[search_title] +other = "Ange de villkor du vill söka efter." + diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 45246d7..3ea6ae1 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -4,7 +4,7 @@