images with captions in other languages

  • images with captions in other languages

    Hello I have an image and want when you hover over it to show subtitles in language that is selected. Changing the language I've ever done and it works with the example of Pinsane, but the pictures I could not do, anyone have any ideas? or can help me?

    grateful

    cordially *wink*

  • HI, JOB1, THANKS

    THE CODE IS RUNNING IS PARTLY BECAUSE THE MESSAGE APPEARS TRANSLATED, BUT WHEN YOU CLICK ON THE DOWN MENU
    THAT I ENJOY THE SAME PLUGINS img1, img2 ... (BUT WITH ANOTHER IMAGE & PHRASE) is always the last translation has been done. I THOUGHT TO
    REMOVE ALL A PHRASE, I TRY AND FAILED PRHASES CLEAR OF IMAGES.

    SORRY MY LACK OF KNOWLEDGE, AND MY ENGLISH

    THANK YOU FOR HELP *wink*

    HERE PART FILES IN SEQUENCE, AND SAME FILES IS IN INCLUDE BEFORE CALL.


    ***---- File Name "Menus.xml"

    <include url="show-images.xml" />

    <plugin name="menu-cultural"
    url="%SWFPATH%/img-cultural-br.png"
    alpha="1"
    onhover=""
    parent="fundo-menu"
    x="55"
    y="150"
    align="top left"
    scale="0.85"
    zorder="100"
    keep="true"
    blendmode="screen"
    onclick="action("menu-cultural");"
    />


    <plugin name="menu-esportivo"
    url="%SWFPATH%/img-cultural-br.png"
    alpha="1"
    onhover=""
    parent="fundo-menu"
    x="55"
    y="150"
    align="top left"
    scale="0.85"
    zorder="100"
    keep="true"
    blendmode="screen"
    onclick="action("menu-esportivo");"
    />
    .... <!-- more plugins here -->

    ***---- end of file -------******

    ***---- File Name "show-images.xml"


    <include url="cultural-legenda.xml" />

    <action name="menu-cultural">
    set(plugin[img1].visible,true);
    set(plugin[img1].url,panos/lagos/mirante_p.png);
    set(plugin[img1].onhover,showtext(get(phrase[get(name)].language[get(language)].text));); // PART EXEMPLO PINSANE

    set(plugin[img2].visible,true);
    set(plugin[img2].url,panos/lagos/caravelas_p.png);
    set(plugin[img2].onhover,showtext(get(phrase[get(name)].language[get(language)].text)););
    </action>

    .... <!-- more images here -->

    ***---- end of file -------******


    ***---- File Name "Cultural-legenda.xml"

    <phrase name="img1" >
    <language name="english" text="Belvedere in Buzios" />
    <language name="portuguese" text="Mirante em Búzios" />
    <language name="spanish" text="Mirante en Buzios" />
    </phrase>

    <phrase name="img2" >
    <language name="english" text="Beach of the caravels in Buzios" />
    <language name="portuguese" text="Praia Caravelas em Búzios" />
    <language name="spanish" text="de la playa carabelas en Buzios" />
    </phrase>

    <!-- more translate here -->

    ***---- end of file -------******


    ***---- File Name "make-images.xml"

    <plugin name="img1"
    url=""
    keep="true"
    visible="false"
    enabled="true"
    parent="img00"
    handcursor="false"
    capture="false"
    children="true"
    zorder="90"
    alpha="1"
    blendmode="normal"
    smoothing="true"
    align="top left"
    edge="top left"
    x="0" y="0"
    ox="0" oy="0"
    rotate="0"
    scale="1"
    onover=""
    onhover=""
    onout="" ondown="" onup=""
    />


    <plugin name="img2"
    url=""
    keep="true"
    visible="false"
    enabled="true"
    parent="img00"
    handcursor="false"
    capture="false"
    children="true"
    zorder="90"
    alpha="1"
    blendmode="normal"
    smoothing="true"
    align="top left"
    edge="top left"
    x="0" y="0"
    ox="0" oy="0"
    rotate="0"
    scale="1"
    onover=""
    onhover=""
    onout="" ondown="" onup=""
    />

    <!-- more plugins here -->

    ***---- end of file -------******

  • I have another way to make that really simple

    on each plugin you want translate put a onhover like this

    Code
    ...
    onhover="showtext(get(text1))"
    ...


    for translation you make for each language a action

    on the onstart of the xml you put the action for the language you to charge on the first time
    if you want change language call the action for this language

    *g* *cool*

  • Hello job1 I tried it your way, but did not show the texts was null in all images, note that I tried to doin two ways Plugin [img1] and direct img1 and both did not work, what am I doing wrong?

    thanks for the help



    I put the your code in the file "cultural-legenda.xml" is file change pictures and legends and all images is defined in file "make-images.xml"



    if(plugin[band-por].alpha == 1,
    set(plugin[img1],Mirante em Búzios);
    set(plugin[img2],Praia Caravelas em Búzios);
    set(plugin[img3],Praia de João Fernandes em Búzios);
    set(plugin[img4],Praia de Ferradura em Búzios);
    ,
    );
    if(plugin[band-eua].alpha == 1,
    set(img1,Belvedere in Buzios);
    set(img2,Beach of the caravels in Buzios);
    set(img3,João Fernandes Beach in Buzios);
    set(img4,Ferradura Beach in Buzios);
    ,
    );

    if(plugin[band-esp].alpha == 1,
    set(img1,Belvedere in Buzios);
    set(img2,de la playa carabelas en Buzios);
    set(img3,La playa João Fernandes en Buzios);
    set(img4,La playa Ferradura en Buzios);
    ,
    );

    set(plugin[img1].visible,true);
    set(plugin[img1].url,panos/lagos/mirante_p.png);
    set(plugin[img1].onhover,showtext(get(img1)););


    set(plugin[img2].visible,true);
    set(plugin[img2].url,panos/lagos/caravelas_p.png);
    set(plugin[img2].onhover,showtext(get(img2)););


    set(plugin[img3].visible,true);
    set(plugin[img3].url,panos/lagos/jfernandes_p.png);
    set(plugin[img3].onhover,showtext(get(img3)););


    set(plugin[img4].visible,true);
    set(plugin[img4].url,panos/lagos/ferradura_p.png);
    set(plugin[img4].onhover,showtext(get(img4)););

  • It's better to make three actions for this

    you can put also into actions your images if they are not the same for each language

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!