MCPcopy Create free account
hub / github.com/OpenPrinting/cups / _cupsLangString

Function _cupsLangString

cups/language.c:843–873  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

841 */
842
843const char * /* O - Localized message */
844_cupsLangString(cups_lang_t *lang, /* I - Language */
845 const char *message) /* I - Message */
846{
847 const char *s; /* Localized message */
848
849
850 DEBUG_printf(("_cupsLangString(lang=%p, message=\"%s\")", (void *)lang, message));
851
852 /*
853 * Range check input...
854 */
855
856 if (!lang || !message || !*message)
857 return (message);
858
859 _cupsMutexLock(&lang_mutex);
860
861 /*
862 * Load the message catalog if needed...
863 */
864
865 if (!lang->strings)
866 cups_message_load(lang);
867
868 s = _cupsMessageLookup(lang->strings, message);
869
870 _cupsMutexUnlock(&lang_mutex);
871
872 return (s);
873}
874
875
876/*

Callers 15

cupsdSendErrorFunction · 0.85
send_ipp_statusFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
show_promptFunction · 0.85
cgiTextFunction · 0.85
get_cupsd_confFunction · 0.85
_ppdCreateFromIPP2Function · 0.85
ppd_put_stringFunction · 0.85
snmp_set_errorFunction · 0.85

Calls 4

_cupsMutexLockFunction · 0.85
cups_message_loadFunction · 0.85
_cupsMessageLookupFunction · 0.85
_cupsMutexUnlockFunction · 0.85

Tested by 1

test_stringFunction · 0.68