Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the cl-locale Reference Manual, version 0.1.1, generated automatically by Declt version 3.0 "Montgomery Scott" on Mon Apr 19 15:00:16 2021 GMT+0.
• Introduction | What cl-locale is all about | |
• Systems | The systems documentation | |
• Modules | The modules documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
(cl-locale:enable-locale-syntax)
(define-dictionary schedule
(:ja-JP #p"i18n/ja_JP/message.lisp")
(:fr-FR #p"i18n/fr_FR/message.lisp"))
(define-dictionary lisp
(:ja-JP #p"i18n/ja_JP/message.lisp"))
(setf (current-dictionary) :schedule)
#i"Schedule"
;=> "Schedule"
(i18n "Schedule" :locale :ja-JP)
;=> "予定"
(let ((*locale* :fr-FR))
#i"Schedule")
;=> "Calendrier"
#i("Comments: ~A" 10)
;=> "コメント: 10個"
; ja_JP/message.lisp
(("Schedule" . "予定")
("Lisping" . "舌足らず"))
; fr_FR/message.lisp
(("Schedule" . "Calendrier"))
Copyright (c) 2011 Eitarow Fukamachi
Licensed
Next: Modules, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The cl-locale system |
Eitarow Fukamachi
LLGPL
Simple i18n library for Common Lisp
# CL-Locale - Simple i18n library for Common Lisp
[](https://travis-ci.org/fukamachi/cl-locale)
[](https://coveralls.io/r/fukamachi/cl-locale?branch=master)
## Usage
(cl-locale:enable-locale-syntax)
(define-dictionary schedule
(:ja-JP #p"i18n/ja_JP/message.lisp")
(:fr-FR #p"i18n/fr_FR/message.lisp"))
(define-dictionary lisp
(:ja-JP #p"i18n/ja_JP/message.lisp"))
(setf (current-dictionary) :schedule)
#i"Schedule"
;=> "Schedule"
(i18n "Schedule" :locale :ja-JP)
;=> "予定"
(let ((*locale* :fr-FR))
#i"Schedule")
;=> "Calendrier"
#i("Comments: ~A" 10)
;=> "コメント: 10個"
## What the difference
* cl-i18n: Does nit support loading multiple locales at the same time.
* cl-l10n: No reader macro predefined. No tools to automatically generate localizable files / language files.
## Dictionary Resource
; ja_JP/message.lisp
(("Schedule" . "予定")
("Lisping" . "舌足らず"))
; fr_FR/message.lisp
(("Schedule" . "Calendrier"))
## License
Copyright (c) 2011 Eitarow Fukamachi
Licensed under the LLGPL License.
0.1.1
cl-locale.asd (file)
src (module)
Modules are listed depth-first from the system components tree.
• The cl-locale/src module |
cl-locale (system)
src/
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
• The cl-locale.asd file | ||
• The cl-locale/src/locale.lisp file | ||
• The cl-locale/src/core.lisp file | ||
• The cl-locale/src/reader.lisp file | ||
• The cl-locale/src/syntax.lisp file |
Next: The cl-locale/src/locale․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
cl-locale.asd
cl-locale (system)
Next: The cl-locale/src/core․lisp file, Previous: The cl-locale․asd file, Up: Lisp files [Contents][Index]
src (module)
src/locale.lisp
Next: The cl-locale/src/reader․lisp file, Previous: The cl-locale/src/locale․lisp file, Up: Lisp files [Contents][Index]
src (module)
src/core.lisp
Next: The cl-locale/src/syntax․lisp file, Previous: The cl-locale/src/core․lisp file, Up: Lisp files [Contents][Index]
core.lisp (file)
src (module)
src/reader.lisp
%enable-locale-syntax (function)
Previous: The cl-locale/src/reader․lisp file, Up: Lisp files [Contents][Index]
reader.lisp (file)
src (module)
src/syntax.lisp
locale-syntax (special variable)
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The cl-locale-asd package | ||
• The cl-locale package | ||
• The cl-locale.core package | ||
• The cl-locale.reader package | ||
• The cl-locale.syntax package |
Next: The cl-locale package, Previous: Packages, Up: Packages [Contents][Index]
cl-locale.asd
Next: The cl-locale․core package, Previous: The cl-locale-asd package, Up: Packages [Contents][Index]
locale.lisp (file)
locale
Next: The cl-locale․reader package, Previous: The cl-locale package, Up: Packages [Contents][Index]
core.lisp (file)
Next: The cl-locale․syntax package, Previous: The cl-locale․core package, Up: Packages [Contents][Index]
reader.lisp (file)
%enable-locale-syntax (function)
Previous: The cl-locale․reader package, Up: Packages [Contents][Index]
syntax.lisp (file)
common-lisp
locale-syntax (special variable)
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions | ||
• Internal definitions |
Next: Internal definitions, Previous: Definitions, Up: Definitions [Contents][Index]
• Exported special variables | ||
• Exported macros | ||
• Exported functions | ||
• Exported generic functions |
Next: Exported macros, Previous: Exported definitions, Up: Exported definitions [Contents][Index]
core.lisp (file)
core.lisp (file)
core.lisp (file)
syntax.lisp (file)
Next: Exported functions, Previous: Exported special variables, Up: Exported definitions [Contents][Index]
core.lisp (file)
reader.lisp (file)
Next: Exported generic functions, Previous: Exported macros, Up: Exported definitions [Contents][Index]
core.lisp (file)
core.lisp (file)
reader.lisp (file)
core.lisp (file)
reader.lisp (file)
Previous: Exported functions, Up: Exported definitions [Contents][Index]
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal special variables | ||
• Internal functions |
Next: Internal functions, Previous: Internal definitions, Up: Internal definitions [Contents][Index]
core.lisp (file)
Previous: Internal special variables, Up: Internal definitions [Contents][Index]
core.lisp (file)
reader.lisp (file)
core.lisp (file)
core.lisp (file)
Read a specified file and return the content as a sequence.
core.lisp (file)
Previous: Definitions, Up: Top [Contents][Index]
• Concept index | ||
• Function index | ||
• Variable index | ||
• Data type index |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | C F L M |
---|
Jump to: | C F L M |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | %
(
C D E F G I M R S |
---|
Jump to: | %
(
C D E F G I M R S |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Jump to: | *
L S |
---|
Jump to: | *
L S |
---|
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | C P S |
---|
Jump to: | C P S |
---|