Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hacking a menu system
Message
From
03/05/2004 10:45:55
 
 
To
03/05/2004 10:32:30
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00899707
Message ID:
00900388
Views:
24
Hi John,

I'm not "translating", rather writing a set of routines to be called from an app to perform the translation, based on tables (dbfs). The actual translation (tables) will be filled by you, in a language you choose.

As an example, bellow is the translation table for forms:
    Create Table (SetLanguage_Forms) Free ;
           (                            ;
             ObjectKey    C (120),      ;   &&  Object Reference: 'frmFollowMain.grdMyGrid.Column1.Header1'
             Class        C ( 20),      ;   &&  Object Class:     'form', 'commandbutton', ...
             Property     C ( 15),      ;   &&  Object Property:  'Caption', 'ToolTipText'
                                        ;   
             Portuguese   M      ,      ;   &&  Object Property Value in Portuguese
             English      M      ,      ;   &&  Object Property Value in English      
             Spanish      M      ,      ;   &&  Object Property Value in Spanish      
             French       M      ,      ;   &&  Object Property Value in French       
             German       M             ;   &&  Object Property Value in German       
           ) 

    Index On ObjectKey + Property  Tag ObjectKey
This initialization code must be put in the beginning of the "main" program of the app:
 SetLanguageInitialize ("C:\Pointer\FoxProgs\SetLanguage\dbfs", "Test")
And following is the invocation of the form translate routine (in a form's Init method):
        Procedure Init
*                 ----
                  SetFormLanguage (This, "English")
        EndProc
I'm in the very beginning of this work, just geting those issues that should be addressed, while writing some code to experiment.

If you (or anyone else) still have interest maybe we can share some ideas.

Fernando

>What are you translating to??????? I'd be very interested.
>John
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform