From a63b2174be4bb897d717034ed42e2b7676645deb Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 30 Mar 2023 20:11:20 -0700 Subject: feat(translation): add translation header --- content/static/translate.gmi | 11 ----------- content/static/translations.gmi | 13 +++++++++++++ content/templates/partials/footer.hbs | 2 +- 3 files changed, 14 insertions(+), 12 deletions(-) delete mode 100644 content/static/translate.gmi create mode 100644 content/static/translations.gmi (limited to 'content') diff --git a/content/static/translate.gmi b/content/static/translate.gmi deleted file mode 100644 index 4542114..0000000 --- a/content/static/translate.gmi +++ /dev/null @@ -1,11 +0,0 @@ -# Translate - -This Gemini capsule contains a **global** translation engine (using DeepL)! - -To translate any page into your language of choice, just add the "translate" query parameter to the URL. - -For example, to translate this page into French, you would go to: - -=> /translate?language=fr Try it! - -Before visiting a page in another language, make note of your Gemini client. Not all Gemini clients have support for other typefaces, encodings, etc., so languages with non-Latin alphabets may not display correctly. diff --git a/content/static/translations.gmi b/content/static/translations.gmi new file mode 100644 index 0000000..3442a00 --- /dev/null +++ b/content/static/translations.gmi @@ -0,0 +1,13 @@ +# Translations + +This Gemini capsule contains a **global** translation engine (using DeepL)! + +To translate any page into your language of choice, just add the "translate" query parameter to the URL. + +For example, to translate this page into French, you would go to: + +=> /translations?language=fr Try it! + +Before visiting a page in another language, make note of your Gemini client. Not all Gemini clients have support for other typefaces, encodings, etc., so languages with non-Latin alphabets may not display correctly. + +Also, note that translating a page is a multi-pass process: all the link contents are individually translated, as well as the page itself. More so, the translation API that is being used is remote, so there is a delay in the translation process. If your client looks like it's frozen, it may just be taking a while to translate the page. diff --git a/content/templates/partials/footer.hbs b/content/templates/partials/footer.hbs index 4be4242..6990471 100644 --- a/content/templates/partials/footer.hbs +++ b/content/templates/partials/footer.hbs @@ -24,7 +24,7 @@ Hits: {{ hits }} => http://fuwnme4wbs5x36jjf2usedw2zscozwhazykhyfkjsmudtb7egs3mb7yd.onion Tor => http://fuwn.i2p/?i2paddresshelper=umaux4l3q3j33pfsz3mzxk6o5c7f6lu47wln5vo5nqvv5nyufgra.b32.i2p I2P -=> /translate Translate this page to your language of choice! +=> /translations Translate this page to your language of choice! Copyright (C) 2021-2022 Fuwn -- cgit v1.2.3