|
BoTran2Special is a Code template for doing any miscellaneous translating jobs you may find laying around<g>.
Example1, some add on browse header sort templates will change the browse back to default text when applied. In this case you add the code template after the browse is sorted, and translate the browse.
Example 2, you add a 3rd party or other procedure that does not have "ABC translator" calls built in, then add the Translate Entire window code template to the procedure after the window is opened.
What to translate
Control = select the control to translate.
Start From lowest created control End at highest created control(or higher, it is very forgiving<g>) Increment by +1 or -1 depending on Order.
Basic How it works: BoTran2 takes the "Default text" , or date format, or picture, for a control, ToolTip, Message, Browse Header, "whatever" and looks it up in a queue or file in the "default language" portion. If a translation exists in the "chosen language", BoTran2 replaces the default string with the replacement string. If BoTran2 does not find the "default text" in the queue or file, BoTran2 will add it to the File and the queue (if you have that feature enabled). This is why you should not "Translate" already "Translated" text, as it will start adding them all to the BTL file as Default Text strings.
BoTran2 always does a CLIP(LEFT('MyText')) so it ignores extra blank spaces. BoTran2 is not Case sensitive, so File = file = fiLe = filE, etc. But &File <> File <> File: and all are separate entries in "default text"
When using BoTran2 always do conditional assignment of text this way, so we always have default text to translate. This example shows hand code to translate the text calling the BTStr method.
IF MyVariable = 3 ?MyButton{PROP:TEXT} = ' Doctor' ELSE ?MyButton{PROP:TEXT} = ' Nurse' END ?MyButton{PROP:TEXT} = Translator.BTStr(?MyButton{PROP:TEXT}) |