Hello,
I'm using nikola to publish a web page in three languages. Default is hr
(Croatian), additional de (German) and en (English). Now I have an issue
with the galleries funktion and two questions:
-1- How can I rename the "galleries" folder concerning the page
language? I found this for pages in conf.py :
PAGES = (
("pages/*.md", {"en": "pages", "de": "seiten", "hr": "stranice"},
"page.tmpl"),
...
This works as expected an produces this folders:
/
/stranice (Rem: hr is default language)
/de/seiten
/en/pages
But how can I achieve the same for the folder "/galleries"? I tried
diffent versions of something like this -all without success:
GALLERY_FOLDERS = {"en": {"galleries": "en/galleries/" }, "de":
{"galleries": "de/galerien/"}, "hr": {"galleries": "galerije"}}
Looks like no dictionary data type is accepted here. I got build errors
like this:
File
"/home/eric/nikola/lib/python3.8/site-packages/nikola/plugins/task/galleries.py",
line 94, in set_site
if source in appearing_paths or dest in appearing_paths:
TypeError: unhashable type: 'dict'
-2-
Is it possible to give diffrent names to the same gallery folder or how
to replace the title of the gallery with something I can define beside
foldername, depending of language?
Here I have no idea how to start. Perhaps it is not possible at all?
Thank you for your advices!
Eric.
--
You received this message because you are subscribed to the Google Groups
"nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nikola-discuss/190ac4de-16b4-943e-5bf1-8a005820c04a%40euzv.org.