Lang parameters

On Mon Aug 31, 2020 at 6:08 AM CEST, Sandra Snan wrote:

> I'm OK with a sidecar per file, a sidecar per directory, one big sidecar
> for the entire site, or with renaming the files: for example the server
> gets the request for foo.gmi, it finds foo.en.gmi and serves that up as
> foo.gmi in English. (Or a similar convention, foo.gmi-en, foo-en.gmi,
> foo.en, I can adapt my data to fit what the server wants.) For the
> sidecar solutions, I obv don't want to serve up those sidecars via
> Gemini requests, they're for the server's eyes only.
>
> Any server so far do any one of those four things (with an already
> existing module, plugin, configuration, or out of the box)?

Molly Brown will read settings from files named .molly, which are
analogous to Apache's .htaccess files.  One of the settings which are
valid in these files is `DefaultLang`.  The provided value will be
applied to any .gmi file in the same directory as the .molly file, or
any subdirectory of that directory - though another .molly file deeper
down the path might override this.  This works out of the box, all you
need to do is set `ReadMollyFiles` to True in the main config file to
enable it.

Cheers,
Solderpunk

---

Previous in thread (7 of 11): 🗣️ Sandra Snan (sandra.snan (a) idiomdrottning.org)

Next in thread (9 of 11): 🗣️ Sean Conner (sean (a) conman.org)

View entire thread.