Skip to content
Dustin edited this page Sep 2, 2014 · 5 revisions

local-load reads a csv file using (csv-read file) and creates a localization table with the first column as the keys and each other column for a different language. Then when (local-get-text str) is called with a str that matches one of the keys, it returns one of the strings depending on which language was most recently set by (local-index-set! index).

Parameter Description
fname The name of the localization csv file in the application's main directory.

Example

Example: A csv file is loaded.

./DemoConsole 
> (local-load "localization.csv")

Clone this wiki locally