On this page:
get-message-formatter
get-localized-string
run+  print-log
8.0

23 Localization

 (require xiden/l10n) package: xiden

xiden/l10n uses messages to communicate with the user according to the value of (system-language+country). Currently, the only supported locale is en-US.

Returns a message formatter for translating messages to strings in the user’s locale.

procedure

(get-localized-string sym)  string?

  sym : symbol?
Returns a string for the user’s locale.

procedure

(run+print-log l)  any/c

  l : logged?
Returns the first value from (run-log l).

Before returning control, each message M from run-log is printed using

(write-message M (get-message-formatter) (current-output-port))