Re: AFCL International Text Translation
Posted in 1996
Sergio Alexandre Ferreira <sergio@despodata.pt> wrote: >I want to translate menu options and all the english text from de >default of AFCL to Portuguese. > >AFCL have some sort of automatic translation. > >How this translation works ? > Most visual objects that are uApp??? or derived from a uApp??? class (e.g. uAppButton), have a text or title that can be translated. Whenever the setText/setTitle member function is called, an application level (uApp) event is triggered: EVENT userTranslateText( text CHAR(*)) RETURNING CHAR(*) It is necessary to provide a handler for this event to provide the translation functionality that is appropriate for your application. handle uApp::getUApp().userTranslateText with myTranslator Then code your translate handler as you please: huge CASE, read from Message File, read from Database File. A sample handler, u_uponTranslateText, is found in uapp.4gl. Catalin >Do i have to do it for each object or i call my translation function >once in the begining ? > Just once and in one place. Catalin -- ========================================================================= Catalin Badea _/_/_/ _/_/_/ _/_/_/ _/_/_/ _/ _/ _/_/_/ _/ _/ _/ _/ _/_/ _/ Senior Technical Architect _/ _/_/ _/ _/_/_/ _/ _/_/_/ _/ _/ _/ _/ _/ _/ Tecsys Inc. _/ _/_/_/ _/_/_/ _/_/_/ _/ _/_/_/ ===== cat@tecsys.com =========== include system "disclaimer.4gh" ===== == http://www.tecsys.com ==