Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Downloads
Search: 

Automated Language Translator - ver. 1.50
Greg Reichert, GLR Software
The Locale class automatically translates captions, tooltips, and statusbar text from one language to an alternate language with the use of the internet, then stores the translation for future use and faster translations. Now with 8 languages and uses 11 web-sites for the best and fastest possible translations. Version 1.50 has a administration dialog, and can translate Menus, Reports and Label captions.
Created on
20 years ago
Downloads
2236
File type
General information
Description
With applications being distributed around the world, the need for an application to display in different languages is becoming more a request from clients. This little class came be added to any Visual FoxPro form and when the form is opened, it will translate all the Captions, ToolTips, and StatusBarText properties to the desired language. It does this by querying the internet sites like Google and Dictionary.com. Once a phrase is translated, the translation is stored in a table called Locale.dbf. This provides a fast translation the next time the form is opened. --------------------------------------------- Version History --------------------------------------------- 1.50.00:00260 04/04/2004 * Fixed problem with menu resetting to english after report preview, with work-around. 1.50.00219: 03/25/2004 * The each application can now have thier own language. The current locale is stored in the registry in the following location: HKEY_CURRENT_USER\Software\Locale\\ * The seperate program file "Create_Locale_Tables.prg" recreates and populates the Locale tables. In do so, it empty's the Locale.dbf table. 1.50.00206: 03/02/2004 Pre-release * Create a Admin form to manage the tables. Replace the "Update" button with a button to open this form. * Remove oLocale reference from Locale / Display class. * Add property called "Locale_Original" to replace the Tag usage. * Transverse and translate test in Menus. Requires the _GenMenu to be changed to Locale_GenMenu.prg. * Use connection string to access the tables. This is will allow the Locale database to be VFP, SQL Server, or any other platform. * Allow the translation of literal string labels on Reports and Labels. * Allow the translation of labels and text on Toolbars. * Removed the DBF property, not used anymore. * Tested with FormSets. * New property: Disable_Images: (logical) Turn off the downloading of images and audio when accessing the result web page. * New property: NoTranslation_Attempt. If there are no sites that can translate to dest language, then this flag is true. * New Property: ResetSites: (logical) Resets all siles to give eacha equal chance at translating. * New Property: Translate_Color: (color) The color the text assumes will translation is occuring. If -1, color does not change. * Replace embedded HTML substitution words (ie. & with & ) * Reworked the method of finding objects in objects. This would allow for objects that are addded with AddProperty. * Document the web links about localization in VFP. 1.21.00178: 02/12/2004 * Add Registry method to read and write to the registry. * Remove dependency on Window Script Host to Get and Set the current locale in the registry. 1.20.00177: 02/11/2004 * Replace the WebBrowser control on a form with object reference to InternetExplorer.Application. The original version has been renamed to Locale_old.vcx. * Allow for the _SCREEN to be the main object passed to SetLocale. This will provide the ability to translate all open forms, and toolbars, including the desktop caption. * Move the Ping.prg to a method called Ping. 1.12.00175: 02/09/2004 * Commented out all CLEAR DLLS statements. In VFP 6.0, this statements cleared all DLLS, not just those reported on the statement line. * Changed the LEFT property on the Locale form to -1000 to prevent the form from appearing during startup of the application. * Moved the OnLine check from SetLocale to CallSite method. 1.11.0163: 02/04/2004 * Fixed problem with Page captions not getting translated. * Added feature to test the internet connection. If no connection available no new phrase get translated. 1.11.0161: 02/02/2004 * VFP Version Compatibility: * Change the base container for Locale class from Container to Form. * Replced the "ERROR nError" statement, in the Error method, to a "DODEFAULT(nError, cMethod, nLine)" statement. * Replace the third parameter of the STRTOFILE() statement from "0", to ".F.". * Now properly recur the Pageframe, Page, Button/Command Groups, Grid Column collections. * Corrected the Translated Phrase array for VFP version less then 7.0. Note: Most of the languages were being translated through the InterTran (http://www.tranexp.com:2000/InterTran) has limited monthly access for non- paying customers. Do to the fact that I am not a paying member, I easily surpass their quota each month. So to prevent Locale from dragging while attempting to translate in these languages, I have excluded this site. If you are a member, then changing the Exclude field in the Locale_Source.dbf will allow this site to be accessed. You may have to run the ConvertAll.prg to update Locale.dbf. 1.11.0102: 1/23/2004 * Place the correct Main.prg in the Zip file. 1.11.0101: 9/26/2003 * Minor bug fixes: * Error when passing GetString() an empty string. * Error when the object being translated has the properties Caption, Tooltiptext, or StatusbarText, but type is Hidden. (This is a problem with PEMstatus() ). * If the base language is equal to the translating language, the phrase is still saved in the locale.dbf. This help by establishing a base line of phrases to be processed by the ConvertAll() method at a later date. * New Properties and Methods * Property: lClosePopup: If True, when a translation web-site opens a popup browser window, it get closed automatically. (default: True) * Property: Quite: If True, prevents the WAIT window from being displayed during translation. (default False) * Method: ConvertAll( tlClearOld, tlResetLang ) : Boolean success * Runs all the current base phrase through all the languages in the Locale_Lang.dbf and translates them. * Parameters: * tlClearOld: If True, deletes all the prior translated phrases, but does not remove the base phrases. * tlResetLang: When this method is ran, any single translating language can not be translated, the method excludes the language from being available. This parameter, if True, reset that flag in the Locale_Lang.dbf. 1.10.0000: 9/24.2003 * More data-driven: The web-sites and Languages are cross-referenced to allow for more deversity in obtaining the translation. Now it can translate between different base language and any other destination language (providing a site can perform the translation.) * More Languages: 22 languages. Croatian Czech Danish Dutch English Filipino Finnish French German Hungarian Italian Latin Latin American Spanish Norwegian Polish Portuguese Romanian Serbian Slovenian Spanish Swedish Turkish Welsh * More web-site to gain the translation from. 12 web-sites are used. * Each time that "Locale" is asked to translate a form or container, it attempts to locate the most optimized web-site to perform the translation is the least amount of time. 1.00.0000: 8/26/2003 Initial Release.
Created by
Greg Reichert, GLR Software

Comments
More downloads created from this member
Greg Reichert, GLR Software
Image be able to manage an array (or any list of data) using a SQL statements. Well with this little tool you can. Query allows you to select, update, delete, and even insert data into array, collection, cursors, file directories, most any list of data. And it can be extended too. Yes; you can cr...
Created on
17 years ago
Downloads
2193
File type
Freeware
Rating
5.00/5.00
Greg Reichert, GLR Software
I would like to indroduce a new utility from the on going series of LifeCycle. FUnit is a NUnit like utility for unit testing and coverage analysis for object orientated applications. You write you test cases in the method that will be tested. Then run the FUnit utility. It will scan the application...
Created on
17 years ago
Downloads
538
File type
Freeware
Rating
5.00/5.00
Greg Reichert, GLR Software
Automatally closes a form after N seconds of inactivity from the user. Based on Timer class and monitors the current position of the cursor and mouse. Just drop the control on any form, and set the desired duration of the delay.
Created on
18 years ago
Downloads
2154
File type
Freeware
Greg Reichert, GLR Software
The purpose of LifeCycle - Build Phase utility is to provide a central application to automated as much of the built process as possible without have to clone code, or replicate the procedure for different projects. It also provides the means to schedule automated builds for daily builds. The util...
Created on
18 years ago
Downloads
598
File type
Freeware
Greg Reichert, GLR Software
AuthCode, or Authentication Code, is an add-on form that makes the application into an evaluation copy type. The user can use the application until either an expiration date or count runs out, or they have registered it by entering an authentication code. At which time the application will stop aski...
Created on
19 years ago
Downloads
2562
File type
Freeware
Rating
4.00/5.00
Greg Reichert, GLR Software
This object encapsulates the SYS() and SET() functions in methods of a class. This allows the developer to use these function by named instead of sum number. Plus it provides more readability of the source code. 12/15/2005: Included classes the encapsulate the SysMetric(), FontMetric(), Home(), and ...
Created on
19 years ago
Downloads
894
File type
Freeware
Greg Reichert, GLR Software
This tiny control resizes controls on forms. Just drop this control on any form. Set the TAG properties of the controls you wish to resize to a combination of T,L,H,W. And place a Thisform.Refresh() statement in the form's Resize event. That is all there is to it. Now work properly in VFP 6.0.
Created on
19 years ago
Downloads
2506
File type
Freeware
Greg Reichert, GLR Software
Multiple Project Hooks is a ProjectHook class that allow for chaining more then one projecthook class per project manager. If you have different projecthook class that do different tasks, and you want then all to be a part of the current project you are working on, you normally would have to combin...
Created on
19 years ago
Downloads
627
File type
Freeware
Greg Reichert, GLR Software
This routine uses Google's spelling correction feature of their search engine to perform spell checking. When a mis-spelled word is submitted, Google attempts to correct the spelling and persents it as a phrase near the top of their result page. The corrected phrase is always after the term "Did y...
Created on
20 years ago
Downloads
671
File type
Greg Reichert, GLR Software
The purpose of this application is insure that the local copy of the application, and it dependent files, are always up to date. The remote copies of the application can be located either on LAN/WAN server, HTTP web server, a FTP site, or even a Email attachment. In addition, the AppStart can instal...
Created on
20 years ago
Downloads
2423
File type
Greg Reichert, GLR Software
This control is a simple treeview using the WebBrowser control and a HTML file to drive a VFP form. The tree itself is a standard html outline using the "UL"/"LI" tags. What make this the simplest, is that the only one OnClick event is established, and that is at the first (or root) "UL" tag.
Created on
20 years ago
Downloads
3005
File type
Rating
5.00/5.00
Greg Reichert, GLR Software
This object, when dropped on a form, automatically sets the colors and other properties of all the controls on the form to those that match the same properties on the Style object. Set the properties value once on the Style control, and when the form is ran, then all the controls with the same prop...
Created on
20 years ago
Downloads
1571
File type
Freeware
Greg Reichert, GLR Software
Monitor and remotely terminate running application from across the network. Great for those times you need to force users out of applications they have left running. Also, the administrator can check for dead applications or those that are reporting they are in a critical section of the program, lik...
Created on
20 years ago
Downloads
4146
File type
Freeware
Greg Reichert, GLR Software
Have your clients ever ask to have their forms remember their position and size? This neat little control does just that. Now works with VFP 9.0 Anchors. Just drop it on any form, and it will remember its position and shape. The properties are saved in the registry for each user that can log on ...
Created on
20 years ago
Downloads
2088
File type
Freeware
Greg Reichert, GLR Software
Link update only. Have you ever needed a Mover control, but space is limited. This control provides many of the same features as the Mover control, but all in the same space of a single listbox. There are several different demos of this in the download. Also, a couple of the demos use a slider con...
Created on
21 years ago
Downloads
1973
File type
Rating
5.00/5.00
Greg Reichert, GLR Software
Link adjustment only. Auto hide any form behind the VFP desktop, pop it back out when the mouse is hovering over it. The AutoHide class can be dropped on any form to provide the ability for the form auto hide itself behind the VFP border. This is similar to other autohide feature found in windows d...
Created on
21 years ago
Downloads
2244
File type