Lang parameters
Philip Linde
linde.philip at gmail.com
Sun Aug 30 17:27:51 BST 2020
Hi Sandra,
On Sun, 30 Aug 2020 18:15:35 +0200
Sandra Snan <sandra.snan at idiomdrottning.org> wrote:
> The protocol says that servers can emit lang paramenters but it's
> difficult for the server to figure out the value of that parameter since
> it's not in the gmi files. Have others figured out a best practice for
> this?
You can use a sidecar file, like .htaccess for web servers. For example,
if you have cheval.gmi (in french) and horse.gmi (in english) you could
have a file beside them that lists the language parameter for each file.
$ cat .language
horse.gmi: fr
cheval.gmi: en
Another approach is to have language extensions in the filename, for
example horse.gmi.en and cheval.gmi.fr and let the server interpret the
extensions to decide on the language parameter.
I think web servers like Apache 2 support both of these methods in
some form, so taking a look at how Apache 2 does it might be useful.
--
Philip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20200830/0c88c53f/attachment.sig>
More information about the Gemini
mailing list