Ilmari Lauhakangas <[email protected]> writes:

> We do use this render hook for links: 
> https://git.libreoffice.org/infra/libreofficeorg/+/refs/heads/master/layouts/_markup/render-link.html

Ok, cool, maybe the RelPermalink part is the function that does the
translation.

I did some more testing and found that if you do translate the links
then it mostly breaks. It seems that if Hugo can’t recognise the link
as referring to an existing md file then it just leaves the link as is.
So for example if I translate “(/for-business.md)” to
“(/por-entreprenoj.md)” then the link in the final HTML is
“/por-entreprenoj.md” which isn’t going to work. Some links don’t have
the .md on the end and in that case I guess it would on the live website
but on my local test version the links still don’t work because they all
need to start with “/eo/”.

So we need to remind translators *not* to translate the slugs in the
links or it will break.

– Neil

-- 
To unsubscribe e-mail to: [email protected]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/l10n/
Privacy Policy: https://www.documentfoundation.org/privacy

Reply via email to