On this page:
get-message-formatter
get-localized-string
run+  print-subprogram
8.17.0.6

25 Localization🔗ℹ

 (require denxi/l10n) package: denxi

denxi/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.

  • 'top-level-cli-help: A list of available denxi subcommands

  • 'backwards-racket-version-interval: An error message for when a user expresses a backwards Racket version interval in a syntax class. Mimic this phrasing: “minimum Racket version cannot exceed maximum Racket version”.

  • 'show-command-help: A list of available denxi show subcommands

  • <setting id>: A short description of the named setting.

procedure

(run+print-subprogram l)  any/c

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

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

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