Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Globally Changing a Phrase
Message
From
10/10/2003 06:23:52
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00837151
Message ID:
00837313
Views:
36
Allan,
We did something similar and as I can see it went much easier for you :)
For wait windows, messages and menus send your text to a converter. We did something like :
wait window this.oTranslator.Translate('Message Text')
(Couldn't find a way to do that automatically but browsed forms :( as not all were in header files)

For reports :
Copied the report to a temp table, found object types that're label and changed them with oTranslator.Translate(), erased temp table after report ran.

Cetin

>For labels (on forms), couldn't we have the init do a lookup in a table?
>I am aleady using my own message function so I can put the hook in there also.
>That leaves 'wait windows', reports and menus.
>Can you expand on your comment about reports, please?
>
>>>We are distributing a complied application to multiple clients.
>>>One of the clients would like to have all occurances of a particular phrase changed to another phrase. For example, 'Customer Code' should be 'Bill-to Code'.
>>>This phrase should be displayed everywhere such as forms, classes, programs, reports, messages, menus, etc.
>>>We really would prefer not to maintain a separate project for this client (and any other who wants a similar modification).
>>>All suggestions are appreciated.
>>>TIA.
>>
>>For those stored in a table, they should have enough control over the data to make those changes.
>>
>>For report controls, you can also pull from a table, but you wouldn't be able to use the report label, you'd need to use the text field.
>>
>>For any others (captions, messages, etc.), these could be put into a lookup table or XML as well. This gives a little overhead, but more flexibility. Many multilingual apps can work this way.
>>
>>And by using a lookup table, you can allow users to modify labels themselves, if you'd like. [ I'm not sure I would, but it's possible ;) ]
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform