Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter Dreagnout

    (@dreagnout)

    How can i do this? I want to do for make a different url for each language. if lang is x show this x url of feed.

    Plugin Author oferwald

    (@oferwald)

    I guess I will create such a function in 0.9.1

    Plugin Author oferwald

    (@oferwald)

    Ok,

    Added the following function ??
    transposh_echo

    works like
    transposh_echo(“hello”,array(“es” => “hola”, “fr” => “bonjour”);

    Thread Starter Dreagnout

    (@dreagnout)

    I want to make this for change url in the feeds, no for change words.

    In where i need to put transposh_echo?

    Thanks.

    Plugin Author oferwald

    (@oferwald)

    You don’t need to put it anywhere, but yes, you will be able to use this function to achieve your result.

    assuming you previously had
    echo “rsslink”;
    somewhere in your theme, you can replace it with
    transposh_echo (“rsslink”, array(“es” => “esrss”,…));

    That’s about it.

    Thread Starter Dreagnout

    (@dreagnout)

    I put this in the header.php of my theme:
    <?php
    transposh_get_current_language();
    transposh_echo (“https://www.cssblog.es/feed/&#8221;, array(“es” => “https://feeds.feedburner.com/CssBlogEs&#8221;,”en” => “https://feeds.feedburner.com/CSSBlogEN&#8221;,));

    ?>

    And it shows this mistake:
    Fatal error: Call to undefined function transposh_echo() in /home/cssbloes/domains/cssblog.es/public_html/wp-content/themes/collective/header.php on line 30

    Plugin Author oferwald

    (@oferwald)

    Hi,

    First, you don’t need the transposh_get_current_language()
    Second, 0.9.1 is not out yet, I have just added this function to the plugin tonight ??

    You can get the latest code from trac.transposh.org, the function is in transposh.php

    But the way you did this seems correct ??

    Thread Starter Dreagnout

    (@dreagnout)

    Okay i’m going to wait to launch the 0.9.1 for update, i think that you will end the work soon.

    Thanks.

    Plugin Author oferwald

    (@oferwald)

    Thanks, I hope so too ??

    Thread Starter Dreagnout

    (@dreagnout)

    Finally y replace the new transposh and it work like a charm now!! Thanks!!

    I only need to fix the google xml sitemap to send the translated url, and it will totally happy with transposh plugin ??

    Thread Starter Dreagnout

    (@dreagnout)

    Ah, I forget to tell you this:

    In the RSS feed of my blog, for example, i have the site in spanish, and i subscribe to english rss feed. I see all the articles in my rss app in english (for example), but when i click the link to see in the browser, it shows the spanish (default) language!!

    You can make a try with this link:

    https://feeds.feedburner.com/CSSBlogEN

    How i can fix this?

    Thanks.

    Thread Starter Dreagnout

    (@dreagnout)

    Mmmm i see that the code tranposh_echo only works in a exactly place, but i want to globalize all the urls and change to other urls without changing each url one by one.

    Thanks.

    Plugin Author oferwald

    (@oferwald)

    Please explain this again…

    I think he means how to make self made language changing menu something like <a href="$transposh_lang_(en)/postid=115"> </a>for self made menu?
    At least i want to know that.

    Plugin Author oferwald

    (@oferwald)

    First, open a topic

    Second, how about using transposh_get_current_language();

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Create "if lang is x, do this"’ is closed to new replies.