i18n/i18n

Types

Translator = object
  language*: string
  ctx*: Context
  Source Edit

Procs

proc loadTranslate(stream: Stream; filename = "[stream]"): TableRef[string,
    StringTableRef] {...}{.raises: [IOError, OSError, Exception, ValueError, KeyError],
                      tags: [ReadIOEffect, RootEffect, WriteIOEffect].}
  Source Edit
proc loadTranslate(filename: string): TableRef[string, StringTableRef] {...}{.inline,
    raises: [IOError, OSError, Exception, ValueError, KeyError],
    tags: [ReadIOEffect, RootEffect, WriteIOEffect].}
  Source Edit
proc loadTranslate(app: Prologue; filename: string) {...}{.inline,
    raises: [IOError, OSError, Exception, ValueError, KeyError],
    tags: [ReadIOEffect, RootEffect, WriteIOEffect].}
  Source Edit
proc setLanguage(ctx: Context; language: string): Translator {...}{.inline,
    raises: [], tags: [].}
  Source Edit
proc translate(t: Translator; text: string): string {...}{.inline,
    raises: [KeyError], tags: [].}
  Source Edit
proc Tr(t: Translator; text: string): string {...}{.inline, raises: [KeyError],
    tags: [].}
  Source Edit
proc translate(ctx: Context; text: string; language: string): string {...}{.inline,
    raises: [KeyError], tags: [].}
  Source Edit
proc Tr(ctx: Context; text: string; language: string): string {...}{.inline,
    raises: [KeyError], tags: [].}
Helper function for translate.   Source Edit