Announcement

Collapse
No announcement yet.

Multiple languges in a AMS4 project.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multiple languges in a AMS4 project.

    I’m looking for some info on how to best setup a AMS4 project for multiple languages.
    I know how to use the built in messages and change the language of these with the language xml files but I’m not sure what the best solution is for my own text and messages.

    There’s also the problem with images with text in them.

    I hope someone can direct me in the right way.

    Thanks

    Patrik

  • #2
    Re: Multiple languges in a AMS4 project.

    There are a few different approaches you can take:
    • Use a "launcher" menu that detects the language, and then opens a second language-specific menu...then build one menu for each language.
    • Use one menu, and create a version of each page for each language...name each page with a prefix or suffix to identify the language or language ID or something, so you can jump to pages conditionally with actions like Page.Jump("Page 4 - %language%").
    • Use variables for every message you display, and set all the messages to the appropriate language through actions at the start of the project. (Maybe even read the messages in from text files/INI files/etc., one for each language.) Do the same thing for any images you have...use a variable for the path, and set that path variable to point to the appropriate language-specific image at run time.
    There are other ways, too, but that should give you some ideas. I've never built a multi-language menu myself, so I'm not sure which method would be the easiest or the best. Hopefully someone else will have better advice on the subject. [img]/ubbthreads/images/icons/smile.gif[/img]
    --[[ Indigo Rose Software Developer ]]

    Comment


    • #3
      Re: Multiple languges in a AMS4 project.

      Thanks for you answer.

      I think I will go with your last option.
      I think that will be the most dynamic and best way to do it.
      Especially if I need to add more languages later on but also the administration part will be easier this way.

      Thanks again.

      Patrik

      Comment


      • #4
        Re: Multiple languges in a AMS4 project.

        It seems like I can't set the path of an image object to a variable.

        Can you tell me how to do it?

        PS. Tried to go into the AMS4 project file and change the path there, that didn't work either.

        Comment


        • #5
          Re: Multiple languges in a AMS4 project.

          You can't use a variable in an image path. If you have different images for different languages, you will have to put them on top of eachother and then show one and hide the other based on the language using actions.

          Comment


          • #6
            Re: Multiple languges in a AMS4 project.

            Oops, my bad. Although, you could use a Web Browser Object to display the image based on a path, but that introduces a border, which you may not want.
            --[[ Indigo Rose Software Developer ]]

            Comment

            Working...
            X