From f6d7b03205cdc9682e1c0e41d6d7f9dcd247d630 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 14 Jun 2024 22:58:02 -0400 Subject: [PATCH] setup: activate po plugin --- .gitlab-ci.yml | 2 +- ikiwiki.setup | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a324ee3..c9ad032 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ before_script: - - sudo apk add git ikiwiki + - sudo apk add git ikiwiki po4a perl-yaml-tiny - git submodule init - git submodule update diff --git a/ikiwiki.setup b/ikiwiki.setup index 95ae6e2..fbabbc0 100644 --- a/ikiwiki.setup +++ b/ikiwiki.setup @@ -44,6 +44,7 @@ add_plugins: - highlight - typography - sidebar2 +- po # plugins to disable disable_plugins: [] # additional directory to search for template files @@ -401,3 +402,14 @@ global_sidebars: - footer - footer - "*" + +# po plugin +# used to set the "master" language +po_master_language: en|English +# po_slave_languages is used to set the list of supported "slave" languages +po_slave_languages: +- fr|Français +# configures what pages are translatable +po_translatable_pages: '*' +# used to decide how internal links should be generated, depending on web server features and site-specific preferences. +po_link_to: current