Translating WP with __() and sprintf()
<p>I'm trying to translate WP theme. I have this code:</p>

<pre><code>$translation = __( get_color(), 'textdomain' );
</code></pre>

<p>It works, I get color dynamically from get_color() function, and it translates well. But when I use "Theme Check" plugin I get error for this code.</p>

<p>I need to use this instead:</p>

<pre><code>$translation = sprintf( __( '%s', 'textdomain' ), get_color() );
</code></pre>

<p>But in that case my placeholder %s doesn't translates, and I get original color name (not translated).</p>

<p>What I'm doing wrong? Thank you.</p>