| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > TranslatorClass > TranslatorClass Methods >====== TranslateWindow (translate text for a window) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[translatestring translate text .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[viewmanager.htm|{{btn_next_n.gif|Next page}}]] | | || **TranslateWindow( **[,//window//]// //**), VIRTUAL** {{blk2blue.jpg|blk2blue.jpg}} | **TranslateControls** | Translates text for each control on the WINDOW. | | //window// | The label of the APPLICATION, WINDOW, or REPORT to translate. If omitted, TranslateControl operates on the active target. | The **TranslateWindow **method translates the text for each control on the active target (APPLICATION, WINDOW, or REPORT). The AddTranslation method sets the translation values for the controls. **Implementation:** The TranslateWindow method calls the TranslateControls method, specifying the entire range of controls on the window, except for menus and toolbars. **Example:** **PWindow WINDOW('Preferences'),AT(,,89,34),IMM,SYSTEM,GRAY** **         CHECK('&Sound'),AT(8,6),USE(Sound),VALUE('ON','OFF')** **         PROMPT('&Volume'),AT(31,19),USE(?VolumePrompt)** **         SPIN(@s20),AT(8,20,21,7),USE(Volume),HVSCROLL,RANGE(0,9),STEP(1)** **         BUTTON('OK'),AT(57,3,30,10),USE(?OK)** **        END** **  CODE** **  OPEN(PWindow)** **  Translator.TranslateWindow             !translate all controls** ** ACCEPT                                  ! plus window titlebar** ** END** **See Also:     **[[addtranslation add translation pairs .htm|AddTranslation]], [[translatecontrols translate text for range of controls .htm|TranslateControls]]