title: qTranslate ignores language in url
body: <p>I want to create a website written in two languages. I used qTranslate and it seems to be working okay. But, I have couple of conditional elements in my theme, like:</p>
  
  <pre><code>&lt;li&gt;&lt;a href="/&lt;?php if(qtrans_getLanguage()=='en') { ?&gt;en&lt;?php } else { ?&gt;pl&lt;?php } ?&gt;&gt;&lt;/li&gt;
  </code></pre>
  
  <p>Which detects if either language is <code>pl</code> or <code>en</code> and creates the link according to that. But, when I click the link <code>http://localhost/en/something</code> for example, it ommits <code>en</code> and loads <code>http://localhost/something</code> with default language. What can I do to change it?</p>
  
  <p>edit: this happens only on custom post types.</p>