mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
maint: enforce no-markup policy wrt VIR_WARN-like macros
* cfg.mk (sc_prohibit_gettext_markup): New rule, to enforce this policy. Contrary to most diagnostic-emitting functions, where we require _(...) markup, here, we require that _() *not* be used for certain functions (or function-like macros).
This commit is contained in:
parent
feb93e9830
commit
052893cf66
7
cfg.mk
7
cfg.mk
@ -420,6 +420,13 @@ sc_copyright_format:
|
|||||||
halt='consistently use (C) in Red Hat copyright' \
|
halt='consistently use (C) in Red Hat copyright' \
|
||||||
$(_sc_search_regexp)
|
$(_sc_search_regexp)
|
||||||
|
|
||||||
|
# Some functions/macros produce messages intended solely for developers
|
||||||
|
# and maintainers. Do not mark them for translation.
|
||||||
|
sc_prohibit_gettext_markup:
|
||||||
|
@prohibit='\<VIR_WARN0? *\(_\(' \
|
||||||
|
halt='do not mark these strings for translation' \
|
||||||
|
$(_sc_search_regexp)
|
||||||
|
|
||||||
# We don't use this feature of maint.mk.
|
# We don't use this feature of maint.mk.
|
||||||
prev_version_file = /dev/null
|
prev_version_file = /dev/null
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user