Skip to contents

Internal helper to fetch a multilingual label from label_graphic and optionally format it with sprintf().

Usage

get_label(fun, tag, lang = "en", ...)

Arguments

fun

Character scalar, section/function name in label_graphic (e.g., "common", "plot_uncertainty").

tag

Character scalar, label identifier within the section.

lang

Character scalar, language code (defaults to "en").

...

Additional arguments passed to sprintf() to interpolate values into the template string.

Value

Character scalar containing the retrieved and formatted label, or "" if not found.

Details

Looks up label_graphic[[fun]][[tag]][[lang]]. If the requested language is missing, falls back to English ("en"). If format arguments are provided via ..., sprintf() is applied to format the label template string.

Author

Frédéric Grelot, frederic.grelot.1994_cran@m4x.org