Aug 092010
 
I have followed the same steps described in my article on how to publish new WordPress posts on my Facebook Page via twitter, and following the publication of the “Info” page I found this on Twitter:
 <!--:it-->Info<!--:--><!--:en-->Info<!--:--> http://is.gd/e98rO #fb

Everything worked … but, I forgot qTranslate was installed to manage the two languages of the blog.

I was already thinking that this would have cost me a lot of time when I found this very useful post Tuning Tools for Twitter to Work With Multilingual WordPress Blogs using qTranslate.”

So looking at the code, I found in Twitcategory the corresponding piece of code change:

twitcategory.php Line 303

$proto = str_replace( "[title]", $post->post_title, $proto );

With (changes in red)

$proto = str_replace( "[title]", __($post->post_title), $proto );

This will activate the function gettext, which will publish the title in the language selected as default (in my case Italian).

Popular Posts:
{"cc_re__cc_re__cc_by_sa_3_0": ["-opensource-com'>Google recently released gRPC as open source | Opensource.com</a></li></ul></div></aside><!--widget end -->\t\t</div>\r\n\t\t<!-- /#sidebar-b -->\r\n</div>\n\t</div><!-- /container -->\r\n\r\n</div><!--/wrapper -->\r\n<footer>\n\t<div id='page-footer'>\n\t\t<div class='col-control'>\n\t\t<div id=\"cred\">\n\t\t<table>\n\t\t\t<tr>\n\t\t\t\t<td class=\"cred-left\">\u00a9 2013 <a href='http://www.linuxaria.com'>Linuxaria</a></td>\n\t\t\t\t<td class=\"cred-center\">All site content, except where otherwise noted, is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/3.0/\">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.</td>\n\t\t\t\t<td class=\"cred-right\"><a href=\"http://aquoid.com/news/themes/suffusion/\">Suffusion theme by Sayontan Sinha</a></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>\n\t\t</div>\n\t</div>\n\t</footer>\n<!-- 34 queries, 5MB in 0.797 seconds. -->\n<!-- location footer -->\n<script type='text/javascript' src='http://cdn.linuxaria.com/wp-content/plugins/si-captcha-for-wordpress/captcha/si_captcha.js?ver=1.0'></script>\n<script type=\"text/javascript\">\r\n//<!["], "copyright__copyright__copyright": [" Tuning Tools for Twitter to Work With Multilingual WordPress Blogs using qTranslate.\u201d\n\nSo looking at the code, I found in Twitcategory the corresponding piece of code change:\n\ntwitcategory.php Line 303\n\n$proto = str_replace( \"[title]\", $post->post_title, $proto );\n\nWith (changes in red)\n\n$proto = str_replace( \"[title]\", __($post->post_title), $proto );\n\nThis will activate the function gettext, which will publish the title in the language selected as default (in my case Italian).\n\nPopular Posts:", " Tuning Tools for Twitter to Work With Multilingual WordPress Blogs using qTranslate.\u201d\n\nSo looking at the code, I found in Twitcategory the corresponding piece of code change:\n\ntwitcategory.php Line 303\n\n$proto = str_replace( \"[title]\", $post->post_title, $proto );\n\nWith (changes in red)\n\n$proto = str_replace( \"[title]\", __($post->post_title), $proto );\n\nThis will activate the function gettext, which will publish the title in the language selected as default (in my case Italian).\n\nPopular Posts:"]}