How to turn on/off foreign-language symbol explanation by executing a command?

Trying to do it by using menu "Mathematica > Preferences > Interface > click the checkbox" in front of "Show code caption" caused my Mathematica front-end to hang with a macOS progressing indicator that never finishes.

  • $\begingroup$ at least closely related: 97290 $\endgroup$ – Kuba Mar 1 '17 at 6:44

Does this work for you?

CurrentValue[$FrontEnd, {TranslationOptions, "Enabled"}] = True;

You can skip this line but if you want to change the default captions language:

CurrentValue[$FrontEnd, {TranslationOptions, "Language"}] = "Polish";
  • $\begingroup$ I'd appreciate that you also explain the fishing -- how to find the command but not only provide the fish. $\endgroup$ – qazwsx Mar 1 '17 at 22:17
  • 1
    $\begingroup$ @qazwsx so the rod is, if something can be changed via preferences dialog it is probably in Options[$FrontEnd] or in Options[$DefaultFrontEnd]. Then I searched for Translation keyword via Crtl+F ;) $\endgroup$ – Kuba Mar 3 '17 at 8:35
  • $\begingroup$ That exactly what should be added in a good and complete answer. $\endgroup$ – qazwsx Mar 4 '17 at 5:44
  • 1
    $\begingroup$ @qazwsx Look at Format -> Option Inspector. Set the first dropdown to Global. All the front end settings are there, and they can be set programmatically using CurrentValue. $\endgroup$ – Szabolcs Mar 4 '17 at 8:43
  • $\begingroup$ I knew that menu option, but at that time, when I tried, the front-end froze and gave me a never ending macOS progress wheel. $\endgroup$ – qazwsx Mar 11 '17 at 17:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.