cl-locale

API Reference

cl-locale

Simple i18n library for Common Lisp

CL-LOCALE

No exported symbols.

Also exports

  • CL-LOCALE.SYNTAX:LOCALE-SYNTAX
  • CL-LOCALE.CORE:*LOCALE*
  • CL-LOCALE.CORE:I18N
  • CL-LOCALE.CORE:I18N-UNFORMATTED
  • CL-LOCALE.READER:I18N-UNFORMATTED-READER
  • CL-LOCALE.CORE:*DEFAULT-LOCALE*
  • CL-LOCALE.READER:I18N-READER
  • CL-LOCALE.CORE:REGISTER-DICTIONARY
  • CL-LOCALE.CORE:CURRENT-DICTIONARY
  • CL-LOCALE.CORE:*DICTIONARY-TABLES*
  • CL-LOCALE.CORE:DEFINE-DICTIONARY
  • CL-LOCALE.READER:ENABLE-LOCALE-SYNTAX

CL-LOCALE.CORE

  • Variable *DEFAULT-LOCALE*
    :en-us
  • Variable *LOCALE*
    cl-locale.core:*default-locale*
  • Variable *DICTIONARY-TABLES*
    (make-hash-table :test 'equal)
  • Method REGISTER-DICTIONARY (name (dict cons) &key (locale *locale*))
    Example: (register-dictionary :schedule '(("Schedule" . "??")) :locale :ja-JP)
  • Method REGISTER-DICTIONARY (name (dict pathname) &key (locale *locale*))
  • Macro DEFINE-DICTIONARY (name &body msg-clauses)
  • Function CURRENT-DICTIONARY
  • Function (setf CURRENT-DICTIONARY) (name)
  • Function I18N (string &key params (locale *locale*) (dictionary (current-dictionary)))
  • Function I18N-UNFORMATTED (string &key (locale *locale*) (dictionary (current-dictionary)))

CL-LOCALE.READER

  • Function I18N-READER (stream char numarg)
  • Function I18N-UNFORMATTED-READER (stream char numarg)
  • Macro ENABLE-LOCALE-SYNTAX

CL-LOCALE.SYNTAX

  • Variable LOCALE-SYNTAX
    (editor-hints.named-readtables:defreadtable cl-locale.syntax:locale-syntax
      (:merge :standard)
      (:dispatch-macro-char #\# #\i #'cl-locale.reader:i18n-reader)
      (:dispatch-macro-char #\# #\l #'cl-locale.reader:i18n-unformatted-reader))

cl-locale-syntax

CL-LOCALE.SYNTAX

  • Variable LOCALE-SYNTAX
    (editor-hints.named-readtables:defreadtable cl-locale.syntax:locale-syntax
      (:merge :standard)
      (:dispatch-macro-char #\# #\i #'cl-locale.reader:i18n-reader)
      (:dispatch-macro-char #\# #\l #'cl-locale.reader:i18n-unformatted-reader))

cl-locale-test

Test system for cl-locale.

No packages.