Skip to content
Dustin edited this page Mar 26, 2015 · 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). If you wish to have the localization csv file embedded directly in your app, list it in the EMBED file.

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")

See full scenario of procedure calls at local-get-text

Clone this wiki locally