-
Notifications
You must be signed in to change notification settings - Fork 86
local index set!
Chris Petersen edited this page Oct 16, 2014
·
3 revisions
local-index-set! sets which language is to be used by the application. This is the index of the column of text to use from within the localization file that has been loaded by (local-load fname). If the index is 0, the keys will just be returned unchanged by (local-get-text str). If the index is 1, the first language from column 1 of the source csv file will be used instead. If the index is 2, the second language will be used, etc.
Parameter | Description |
---|---|
index | The index of the language to use in future calls to (local-get-text str) |
Example: After the localization file is loaded, sets the index to the second language.
./DemoConsole
> (local-index-set! 2)
Now (local-get-text str) will return the text in that language until the index is changed again.
-
- accelerometer
- alist
- audio
- audioaux
- base64
- btle-scan
- camera
- cdb
- cgi
- config
- csv
- curl
- digest
- dmtx
- download
- eventloop
- fcgi
- fft
- generalized-arrays
- gps
- graph
- gyro
- hidapi
- hpdf
- html
- httpsclient
- hybridapp
- json
- lmdb
- ln_core
- ln_glcore
- ln_glgui
- ln_store
- localization
- localization_gui
- localnotification
- magnetometer
- mdns
- mqtt
- mqtt-store
- multitouch
- oauth
- orientation
- p256ecdsa
- png
- portaudio
- pregexp
- pressure
- prime
- pushnotification
- redcap
- rsa
- rtaudio
- rupi
- rotation
- sanestring
- scheduler
- serial
- sets
- settings
- simplexnoise
- sqlite
- ssax
- syntax-case
- timestamp
- ttf
- uiform
- url
- uuid
- vibrate
- videoplayer
- watchdog
- website
- xml
- zip