translate

API Reference

translate

Abstraction layer for translations

TRANSLATE

  • Variable *LANGUAGE*
    nil
    Language for which the translation is done
  • Variable *RESOLUTION-TIME*
    :run-time
    Controlls translation resulution time - maybe be either :run-time or :load-time
  • Function DEFINE-LANGUAGE (name &rest translations)
    Define language NAME with provided TRANSLATIONS If LANGUAGE exists, a continuable error is signalled, which allows either dropping the operation or superseding the language which is already defined. TRANSLATIONS are alternating phrases and their corresponding objects.
  • Function ADD-SINGLE-TRANSLATION (language phrase translation)
    Add TRANSLATION of PHRASE for given LANGUAGE If LANGUAGE doesn't exist, it is implicitly created and a warning is emmited.
  • Function ADD-TRANSLATIONS (language &rest translations)
    Add any number of TRANSLATIONS for the given LANGUAGE
  • Function TRANSLATE (phrase &optional (language *language*))
    Find the translation of PHRASE in the store associated with LANGUAGE If LANGUAGE is NIL, then this is the same as the the IDENTITY function. If the provided LANGUAGE isn't defined, the store is explicitly created. If no PHRASE is defined for a given language, it is stored for later translation and replaced by PHRASE surrunded by curly brackets.
  • Function MISSING-TRANSLATIONS
    Creates a list of phrases which aren't translated for the defined languages. Returns a list of form: ({(LANG ({PHRASE}*))}*)