SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Jul 1999
    Location
    St. Louis, MO 63119
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Internationalizing multitags

    I just started using Silk Test 5.0. I have declared my windows. Now I want to internationalize my tags. I have figured out how to replace a tag with a string variable, but when I replace a multitag with a string variable I receive a compile error. Is there any way I can replace the first tag of a multitag with a string variable?

    ------------------
    Heidi
    Heidi

  2. #2
    Junior Member
    Join Date
    Jul 1999
    Location
    Campbell, Ca, USA
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Internationalizing multitags

    When you use multitag, try to declare your STRINGs as (CONST STRING)

    Example:


    const string sFoo = "My Window Caption"

    window Browser ChildMyMainWindowCaption
    multitag "My Main Window Caption"
    sFoo

    ------------------

  3. #3
    Guest

    Re: Internationalizing multitags

    Try using the "tag" statement instead of "multitag". The tag statement will accept expressions (in case you want to use more that just constant values). For example:

    STRING Foo()
    return "foo tag"

    window DialogBox FooDlg
    tag Foo()

    Still need multiple tags? Try this:

    STRING FooEnglish()
    return "foo English tag"

    STRING FooFrench()
    return "foo French tag"

    window DialogBox FooDlg
    tag "{FooEnglish()}|{FooFrench()}"

    Also, if you are testing localized versions of you software, it would probably be a good idea to use window IDs in the tag whenever possible (as opposed to caption text). It has been my experience that the window ID stays constant among the localized versions. Obviously the caption text will almost always change. If you only use caption text were it is absolutely necessary, then the maintenance of adding support for a new language is not as extensive.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 10:43 AM.

Copyright BetaSoft Inc.