Skip to content

yanqirenshi/world2world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

World2world

Multi language library for messageing.


Underground Resistance ‎– World 2 World

Usage

CL-USER> (in-package :w2w)
#<PACKAGE "WORLD2WORLD">

W2W> (add-expression :msg1 :hiroshima "これはテストじゃけぇね。値は ~a")
#<EXPRESSION {1006936623}>

W2W> (add-expression :msg1 :en "This is test. value is ~a.")
#<EXPRESSION {10069D6E73}>

W2W> (setf (default-world) :hiroshima)
#<WORLD {100551D4D3}>

W2W> (format* t :msg1 1)
これはテストじゃけぇね。値は 1NIL

W2W> (setf (default-world) :en)
#<WORLD {10069D0243}>

W2W> (format* t :msg1 1)
This is test. value is 1.
NIL

Installation

(ql:quickload :world2world)

Data structure

 +---------------+
 | hash-table    |
 |===============|
 | key | package |
 |-----+---------|
 | val | +----------------------+
 +-------| message [object]     |-+
         |======================| |-+
         | code    | [keyword]  | | |
         | default | nil        | | |
         | worlds  | +--------------------+
         +-----------| hash-table         |
           +---------|====================|
             +-------| key | +-------------------------+
                     |     | | world [object]          |
                     |     | |=========================|
                     |     | | code        | [keyword] |
                     |     | | description | [string]  |
                     |     | +-------------------------+
                     |-----+--------------|
                     | val | +------------------------+
                     +-------| expression [object]    |-+
                             |========================| |-+
                             | controller  | [string] | | |
                             | description | [string] | | |
                             +------------------------+ | |
                               +------------------------+ |
                                  +-----------------------+

Author

Copyright

Copyright (c) 2015 Satoshi Iwasaki ([email protected])

License

Licensed under the LLGPL License.

About

Multi language for messageing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published