On 5/18/26 15:12, Christian Lohmaier wrote:
Hi Ilmari, *,
On Thu, May 14, 2026 at 11:04 AM Ilmari Lauhakangas
<[email protected]> wrote:
In the LibreOffice site .pot file we have currently:
#: data/footer.toml:0 i18n/en-us.toml:0
msgid "Blog"
msgstr ""
I would like to split it, so translators can completely control what is
in the header (maybe they want to link somewhere else than some blog):
[…]
But if I do this, `hugo gettext-extract pot` will always put it back
together again. It didn't help that I added a description to the source.
Is there a way to solve this?
Traditionally gettext uses the message context flag to disambiguate
same/identical strings.
https://www.gnu.org/software/gettext/manual/html_node/Contexts.html
So the po entries should end up with a msgctxt "clarifying context" to
make the string unique - that being said doesn't seem like
hugo-gettext would support that/at least no obvious way..
Yes, I didn't update the thread, but in a patch I commented that I found
this and I have delegated adding support to hugo-gettext to a colleague.
Ilmari
--
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