Date: prev next · Thread: first prev next last
2026 Archives by date, by thread · List index


On 5/23/26 11:22, Neil Roberts wrote:
Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> 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.
Or we just drop the .md suffix? Probably it's not needed after all.

Ilmari

--
To unsubscribe e-mail to: l10n+unsubscribe@global.libreoffice.org
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

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.