WordPress.org

Ready to get started?Download WordPress

Forums

Transposh WordPress Translation
[resolved] [Plugin: Transposh - translation filter for wordpress] default language for specific templates? (11 posts)

  1. deepbevel
    Member
    Posted 3 years ago #

    I'm trying to come up with a workaround for translating links that open in iframes. Is it possible to have page and post templates default to a specified pre-selected language? I'm hoping transposh will eventually have a solution for translating in iframes, but I need something to fall back on just in case.

    Thanks

    http://wordpress.org/extend/plugins/transposh-translation-filter-for-wordpress/

  2. Ofer Wald
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,

    There is a solution for iframes, the iframe source should contain the full url of the website, and with the patch I provided you with, it will be rewritten and used correctly

    you can always directly specify the language in the iframe source with the lang param at the end of the url

    Good luck

  3. deepbevel
    Member
    Posted 3 years ago #

    But my links which open pages in the iframe are in a flash menu, does it not matter?
    here's my iframe code, it has the full website url.

    <p><iframe name="main" src="http://www.foursticks.net/TravelBlog3000/slider/your-most-recent-trip" width="100%" height="800" </iframe></p>

    Are you saying I can specify the language in this code? that would work for me, I'd just make a separate page for each language. can I see an example of how to add the language to the code?

    Thanks

  4. Ofer Wald
    Member
    Plugin Author

    Posted 3 years ago #

    Hello,

    Although the patch should have done that, any format of the two below will work:

    <p><iframe name="main" src="http://www.foursticks.net/TravelBlog3000/slider/your-most-recent-trip?lang=es" width="100%" height="800" </iframe></p>

    <p><iframe name="main" src="http://www.foursticks.net/TravelBlog3000/es/slider/your-most-recent-trip" width="100%" height="800" </iframe></p>

  5. Ofer Wald
    Member
    Plugin Author

    Posted 3 years ago #

    Naturally something went wrong, wanted to bold out the changes before, so its the ?lang=es on the first and the /es on the second... no tags intended

  6. deepbevel
    Member
    Posted 3 years ago #

    That did it, thanks so much!

  7. Ofer Wald
    Member
    Plugin Author

    Posted 3 years ago #

    happy to hear that, good luck

  8. deepbevel
    Member
    Posted 3 years ago #

    Unfortunately, the iframe only remains in the given language for links inside the iframe. If I open pages from a flash movie outside the iframe it goes back to English.
    I don't know if I understood your answer as to whether page and post templates can be coded to use certain languages every time and stay in those languages. That seems to be my only alternative. I wouldn't know how to code flash to work with Transposh.

    Thanks

  9. deepbevel
    Member
    Posted 3 years ago #

    Okay, I just tried adding the "es" to the link in flash, it works! so now I need a flash movie/menu for each language.. oh well, better than a separate site for each language!

    thanks again!

  10. Ofer Wald
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,

    I guess you can convince the flash movie to get the parameter for the language externally

    This will probably reduce the need for separate flash files

  11. deepbevel
    Member
    Posted 3 years ago #

    hmm, yeah I was initially hoping it would take that paramater from Transposh. Otherwisw the user would have to somehow tell the flash links what language, I can't think of how that could be set up. I could have a single flash menu with links in each language, but my menu is a bit unusual, it's a map of the U.S., might get a bit cluttered and confusing.
    I suppose I'll make seperate maps for now untill I can get a better solution.
    So is it not possible to have a page template in a specific languge? that would be easier than 5 flash maps. Each will have as many as 500 links.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic