]> git.ipfire.org Git - thirdparty/systemd.git/commit
journal: implement message catalog
authorLennart Poettering <lennart@poettering.net>
Thu, 15 Nov 2012 22:03:31 +0000 (23:03 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 15 Nov 2012 22:09:07 +0000 (23:09 +0100)
commitd4205751d4643c272059a3728045929dd0e5e800
treec9931806e99d42789fc5ce3fc03e17285b9bb208
parent59f432ea6d6d441d0af7c76c37e80730c8df473a
journal: implement message catalog

The message catalog can be used to attach short help texts to log lines,
keyed by their MESSAGE_ID= fields. This is useful to help the
administrator understand the context and cause of a message, find
possible solutions and find further related documentation.

Since this is keyed off MESSAGE_ID= this will only work for native
journal messages.

The message catalog supports i18n, and is useful to augment english
language system messages with explanations in the local language.

This commit only includes short explanatory messages for a few example
message IDs, we'll add more complete documentation for the relevant
systemd messages later on.
13 files changed:
.gitignore
Makefile.am
catalog/systemd.catalog [new file with mode: 0644]
man/journalctl.xml
src/journal/catalog.c [new file with mode: 0644]
src/journal/catalog.h [new file with mode: 0644]
src/journal/journalctl.c
src/journal/libsystemd-journal.sym
src/journal/sd-journal.c
src/journal/test-catalog.c [new file with mode: 0644]
src/shared/logs-show.c
src/shared/logs-show.h
src/systemd/sd-journal.h