INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Run-Time Translation

Run-Time Translation

(OP)
Greetings Everyone,
I need help with Clarion's Run-time Translation feature. My program is written with english text on the buttons, menus, list-boxes etc.
I need to enable users to switch to German. I have not been able to figure out how this Run-Time translation works in Clarion.
Can anybody explain what one should do or post a simple example. I'm using Clarion 8.

Thanks,
Karl

RE: Run-Time Translation

Hi Karl,

I do not use translation in my applications, but the help would be first place to start. As you can see from the help below, it is fairly simple. I am not sure if there are templates for translation but there are 3rd party products like BoTran (http://www.comsoft7.com/BoTran_Help/index.html) which would make it easier.

CODE

MyTranslations GROUP                    !declare local translations

Pairs          USHORT(4)               !4 translations pairs
               PSTRING('&Sound')       ! item 1 text
               PSTRING('&xSoundx')     ! item 1 replacement text
               PSTRING('&Volume')      ! item 2 text
               PSTRING('&xVolumex')    ! item 2 replacement text
               PSTRING('Preferences')  ! item 3 text
               PSTRING('xPreferencesx')! item 3 replacement text
               PSTRING('OK')           ! item 4 text
               PSTRING('xOKx')         ! item 4 replacement text
             END

Translator           TranslatorClass    !declare Translator object

CODE

Translator.Init                        !initialize Translator object
                                       !add default translation pairs

Translator.AddTranslation(MyTranslations) !add local translation pairs

OPEN(MyWindow)

Translator.TranslateWindow                !translate all window controls
                                          ! and window titlebar 

Regards

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close