Wolfram Language & System 10.3 (2015)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

TranslationOptions

TranslationOptions{opt1val1,opt2val2,}
is an option for Style and Cell that controls how code translations are displayed.

DetailsDetails

  • The following suboptions can be specified:
  • "BaseStyle""Translation"style to use for rendering translations
    "ContentEnabled"Falsewhether translations are enabled for given content
    "Enabled"Truewhether translations are enabled
    "HighlightStyle""SelectedTranslation"style to use for rendering a translation that is highlighted
    "Language"Automatictarget language for translation
    "Margins"{{5,3},{8,4}}margins to apply around the translation
  • can take a style name or a list of style names and options, which it will use to determine properties of the rendered translations such as font, size, and color.
  • applies style attributes that are layered on top of whenever the translation is highlighted. The translation may be highlighted by mousing over it or by placing the text cursor within the keyword to be translated.
  • determines whether the translations will be shown. also determines whether translations will be shown. The style typically has "ContentEnabled"->Automatic set, which allows it to follow the notebook or global level settings of .
  • determines which language to target for the translations. "Language"->Automatic indicates that the current value of the global Language option should be used.
  • determines the margins in points surrounding the translation themselves. top is the distance from the top of the translation to the bottom of the line being translated. bottom is the distance from the bottom of the translation to the leading space that precedes the next line. Translations next to one another may overlap; left indicates how much white space a translation creates to the left of its starting point, and right indicates how much white space a highlighted translation creates to the right of its ending point.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Enable a Japanese translation on an output:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2015
(10.2)