<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: WordPress theme localization</title>
	<atom:link href="http://wpml.org/2009/05/wordpress-theme-localization/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpml.org/2009/05/wordpress-theme-localization/</link>
	<description>The Plugin for Building Multilingual WordPress Sites</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:38:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Jason</title>
		<link>http://wpml.org/2009/05/wordpress-theme-localization/comment-page-1/#comment-55683</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 07 Apr 2011 12:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?p=1470#comment-55683</guid>
		<description>Hi,
       What values I need to put in the textdomain value.any value or specific.please guide me .I recieved messages file not found infront of all my all translations.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
       What values I need to put in the textdomain value.any value or specific.please guide me .I recieved messages file not found infront of all my all translations.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Louise</title>
		<link>http://wpml.org/2009/05/wordpress-theme-localization/comment-page-1/#comment-32292</link>
		<dc:creator>Louise</dc:creator>
		<pubDate>Sun, 19 Dec 2010 10:44:02 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?p=1470#comment-32292</guid>
		<description>I was just having a problem but I found the answer myself while writing the question so I thought I&#039;d share anyway.

I was following the steps above which are quite clear and well written.
Number (1) using echo seemed like a good way to go, and using the hybrid theme as a base for my custom theme there are already examples of how to code this, so I copied the code already in hybrid theme which was:
&lt;code&gt;  &lt;/code&gt;
This string &#039;Apologies, but no results were found.&#039; was already showing up in the WPML plugin management screen so I knew it was working correctly.
I then copied, pasted, and changed it
&lt;code&gt;  &lt;/code&gt;

Then I searched the &quot;string translation&quot; tab in the WPML plugin management screen for &#039;this is some test text&#039; but it didn&#039;t show up, nor did it show up when I tried to export a .po file.

&lt;b&gt;The answer was&lt;/b&gt;, I needed to get the plugin to rescan the files to pick up the new string &#039;this is some test text&#039;.

The &lt;b&gt;rescan button&lt;/b&gt; is not in the &quot;String Translation&quot; tab. You need to go to the &quot;Theme and Plugins Localization&quot; tab and press &quot;scan the theme for strings&quot; after you have written all the _e calls into your custom theme. I hope this helps someone else. It might be kind to put it in the main article for others who might be at a similar low skill level as I.

My thanks to you :)</description>
		<content:encoded><![CDATA[<p>I was just having a problem but I found the answer myself while writing the question so I thought I&#8217;d share anyway.</p>
<p>I was following the steps above which are quite clear and well written.<br />
Number (1) using echo seemed like a good way to go, and using the hybrid theme as a base for my custom theme there are already examples of how to code this, so I copied the code already in hybrid theme which was:<br />
<code>  </code><br />
This string &#8216;Apologies, but no results were found.&#8217; was already showing up in the WPML plugin management screen so I knew it was working correctly.<br />
I then copied, pasted, and changed it<br />
<code>  </code></p>
<p>Then I searched the &#8220;string translation&#8221; tab in the WPML plugin management screen for &#8216;this is some test text&#8217; but it didn&#8217;t show up, nor did it show up when I tried to export a .po file.</p>
<p><b>The answer was</b>, I needed to get the plugin to rescan the files to pick up the new string &#8216;this is some test text&#8217;.</p>
<p>The <b>rescan button</b> is not in the &#8220;String Translation&#8221; tab. You need to go to the &#8220;Theme and Plugins Localization&#8221; tab and press &#8220;scan the theme for strings&#8221; after you have written all the _e calls into your custom theme. I hope this helps someone else. It might be kind to put it in the main article for others who might be at a similar low skill level as I.</p>
<p>My thanks to you <img src='http://d2salfytceyqoe.cloudfront.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amir</title>
		<link>http://wpml.org/2009/05/wordpress-theme-localization/comment-page-1/#comment-21887</link>
		<dc:creator>amir</dc:creator>
		<pubDate>Tue, 02 Nov 2010 06:53:04 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?p=1470#comment-21887</guid>
		<description>WordPress strips out PHP code. Anyway, this is not the right place for technical discussion. You&#039;re welcome to post it in our &lt;a href=&quot;http://forum.wpml.org&quot; rel=&quot;nofollow&quot;&gt;forum&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>WordPress strips out PHP code. Anyway, this is not the right place for technical discussion. You&#8217;re welcome to post it in our <a href="http://forum.wpml.org" rel="nofollow">forum</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://wpml.org/2009/05/wordpress-theme-localization/comment-page-1/#comment-21684</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Sun, 31 Oct 2010 21:38:54 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?p=1470#comment-21684</guid>
		<description>why i can&#039;t add a php code? i use code tag, but still it doesn&#039;t appear</description>
		<content:encoded><![CDATA[<p>why i can&#8217;t add a php code? i use code tag, but still it doesn&#8217;t appear</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://wpml.org/2009/05/wordpress-theme-localization/comment-page-1/#comment-21681</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Sun, 31 Oct 2010 21:35:37 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?p=1470#comment-21681</guid>
		<description>How can I add translation to this:



??</description>
		<content:encoded><![CDATA[<p>How can I add translation to this:</p>
<p>??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pi-C</title>
		<link>http://wpml.org/2009/05/wordpress-theme-localization/comment-page-1/#comment-10755</link>
		<dc:creator>Pi-C</dc:creator>
		<pubDate>Sat, 31 Jul 2010 23:06:07 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?p=1470#comment-10755</guid>
		<description>Darn it... I just see that somehow the string placeholders got swallowed in the previous posting! However, I just found another -- more simple --  example for the same mistake:

&lt;code&gt;&lt;/code&gt;

This should print

&lt;cite&gt;Posted in General&lt;/cite&gt;

but what I get is 

&lt;cite&gt;GeneralPosted in&lt;/cite&gt;

So, any ideas anybody? :-)</description>
		<content:encoded><![CDATA[<p>Darn it&#8230; I just see that somehow the string placeholders got swallowed in the previous posting! However, I just found another &#8212; more simple &#8212;  example for the same mistake:</p>
<p><code></code></p>
<p>This should print</p>
<p><cite>Posted in General</cite></p>
<p>but what I get is </p>
<p><cite>GeneralPosted in</cite></p>
<p>So, any ideas anybody? <img src='http://d2salfytceyqoe.cloudfront.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pi-C</title>
		<link>http://wpml.org/2009/05/wordpress-theme-localization/comment-page-1/#comment-10676</link>
		<dc:creator>Pi-C</dc:creator>
		<pubDate>Fri, 30 Jul 2010 16:05:07 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?p=1470#comment-10676</guid>
		<description>I have a major problem with the approach to translating texts with parameters:

&lt;code&gt;by &lt;/code&gt;

This works alright for some functions. However, other functions place their output in front of the whole string, not at the position of the &quot;%&quot;. For example,

&lt;code&gt;&lt;?php printf(__(&#039;You have to &lt;a href=&quot;%s/wp-login.php?redirect_to=%s&quot; rel=&quot;nofollow&quot;&gt;log in&lt;/a&gt; to post a comment.&#039;, &#039;wpml_theme&#039;), get_option(&#039;siteurl&#039;), the_permalink()); ?&gt;&lt;/code&gt;

results in something like this:

&lt;code&gt;http://URL/?p=676You have to &lt;a href=&quot;http://URL/wp-login.php?redirect_to=&quot; rel=&quot;nofollow&quot;&gt;log in&lt;/a&gt;  to post a comment.&lt;/code&gt;

Do you know what to do in such a case? </description>
		<content:encoded><![CDATA[<p>I have a major problem with the approach to translating texts with parameters:</p>
<p><code>by </code></p>
<p>This works alright for some functions. However, other functions place their output in front of the whole string, not at the position of the &#8220;%&#8221;. For example,</p>
<p><code>&lt;?php printf(__(&#039;You have to <a href="%s/wp-login.php?redirect_to=%s" rel="nofollow">log in</a> to post a comment.', 'wpml_theme'), get_option('siteurl'), the_permalink()); ?&gt;</code></p>
<p>results in something like this:</p>
<p><code><a href="http://URL/?p=676You" rel="nofollow">http://URL/?p=676You</a> have to <a href="http://URL/wp-login.php?redirect_to=" rel="nofollow">log in</a>  to post a comment.</code></p>
<p>Do you know what to do in such a case?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chester Kuenzi</title>
		<link>http://wpml.org/2009/05/wordpress-theme-localization/comment-page-1/#comment-8214</link>
		<dc:creator>Chester Kuenzi</dc:creator>
		<pubDate>Mon, 07 Jun 2010 09:03:05 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?p=1470#comment-8214</guid>
		<description>I am really curious if this would work as well with the new Wordpress 3.0 that is going to be released this month. Have you tried it with the latest release candidate or do you have any info on that? Thank you.</description>
		<content:encoded><![CDATA[<p>I am really curious if this would work as well with the new WordPress 3.0 that is going to be released this month. Have you tried it with the latest release candidate or do you have any info on that? Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pablo</title>
		<link>http://wpml.org/2009/05/wordpress-theme-localization/comment-page-1/#comment-7837</link>
		<dc:creator>Pablo</dc:creator>
		<pubDate>Sun, 30 May 2010 18:03:14 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?p=1470#comment-7837</guid>
		<description>Hi, why, in line:
&lt;code&gt;Name &lt;/code&gt;
you can use:
&lt;code&gt; &lt;/code&gt;
But there is no echo...
Please help.</description>
		<content:encoded><![CDATA[<p>Hi, why, in line:<br />
<code>Name </code><br />
you can use:<br />
<code> </code><br />
But there is no echo&#8230;<br />
Please help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://wpml.org/2009/05/wordpress-theme-localization/comment-page-1/#comment-7069</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 06 May 2010 08:11:13 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?p=1470#comment-7069</guid>
		<description>Ok, this seems to be the perfect solution for my theme !

But one question. Does it work for text administrable into the theme option ? WPML didn&#039;t found me any strings.


Then, what is the correct way to translate (with gettext) the text directly in the code ?
For example : Search Property ?
Is it __(Search Property)

Thanks for your help !</description>
		<content:encoded><![CDATA[<p>Ok, this seems to be the perfect solution for my theme !</p>
<p>But one question. Does it work for text administrable into the theme option ? WPML didn&#8217;t found me any strings.</p>
<p>Then, what is the correct way to translate (with gettext) the text directly in the code ?<br />
For example : Search Property ?<br />
Is it __(Search Property)</p>
<p>Thanks for your help !</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (Requested URI is rejected)
Database Caching 25/40 queries in 0.007 seconds using apc
Object Caching 560/570 objects using apc
Content Delivery Network via Amazon Web Services: CloudFront: d2salfytceyqoe.cloudfront.net

Served from: wpml.org @ 2012-02-09 03:55:01 -->
