Function: erc-retrieve-catalog-entry

erc-retrieve-catalog-entry is a byte-compiled function defined in erc.el.gz.

Signature

(erc-retrieve-catalog-entry ENTRY &optional CATALOG)

Documentation

Retrieve ENTRY from CATALOG.

If CATALOG is nil, erc-current-message-catalog is used.

If ENTRY is nil in CATALOG, it is retrieved from the fallback, english, catalog.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-retrieve-catalog-entry (entry &optional catalog)
  "Retrieve ENTRY from CATALOG.

If CATALOG is nil, `erc-current-message-catalog' is used.

If ENTRY is nil in CATALOG, it is retrieved from the fallback,
english, catalog."
  (unless catalog (setq catalog erc-current-message-catalog))
  (let ((var (erc-make-message-variable-name catalog entry)))
    (if (boundp var)
        (symbol-value var)
      (when (boundp (erc-make-message-variable-name 'english entry))
        (symbol-value (erc-make-message-variable-name 'english entry))))))