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.
I guess I will create such a function in 0.9.1
Ok,
Added the following function π
transposh_echo
works like
transposh_echo(“hello”,array(“es” => “hola”, “fr” => “bonjour”);
I want to make this for change url in the feeds, no for change words.
In where i need to put transposh_echo?
Thanks.
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.
I put this in the header.php of my theme:
<?php
transposh_get_current_language();
transposh_echo (“http://www.cssblog.es/feed/”, array(“es” => “http://feeds.feedburner.com/CssBlogEs”,”en” => “http://feeds.feedburner.com/CSSBlogEN”,));
?>
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
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 π
Okay i’m going to wait to launch the 0.9.1 for update, i think that you will end the work soon.
Thanks.
Thanks, I hope so too π
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 π
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:
http://feeds.feedburner.com/CSSBlogEN
How i can fix this?
Thanks.
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.
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.
First, open a topic
Second, how about using transposh_get_current_language();