Skip to content
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

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.

Clone this wiki locally