Ekoloska Udruga Zrmanja Vrelo
unread,Sep 26, 2020, 3:43:00 PM9/26/20Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nikola-discuss
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.