Multiple Language support (was Re: [ANN] chess puzzles on gemini)
Sean Conner
sean at conman.org
Wed Dec 2 23:53:34 GMT 2020
It was thus said that the Great Côme Chilliet once stated:
> Hello,
Hello.
> Has anyone worked on content available in multiple language on gemini?
> What is the most common practice, some /en at start/end of path, and links
> at the page bottom to switch language?
I'm working on that right now for GLV-1.12556 [1]. The planned support
(which should be available in an hour or so) is to allow a person to set
both the default language [2] and character set [3][4] server wide, per
host, per directory or per file [5] in the configuration file.
There are other ways of solving this (special file extensions, a map of
filenames to languages, etc.) but that's how I'm solving this particular
issue.
-spc
[1] https://github.com/spc476/GLV-1.12556
[2] No default. If not set, the lang paramter for text/* MIME types
will not be set.
[3] Also no default, and I suspect no one will really use this except
for maybe at the directory or file level for legacy text files. But
as long as I was doing the lang= parameter, I thought I might as
well do the charset= parameter.
[4] These two settings cascade down through the configuration file. You
can set it server wide and override it at the host, directory or
file levels.
[5] Technically, per content handler. The built-in handlers for
GLV-1.12556 include a directory handler, a file handler (so you can
reference individual files not in the main diretory) and
userdirectories.
More information about the Gemini
mailing list