qTranslate in functions.php

Are we talking permalinks here or any URL? If any, create an array( 'en' => 'en_url', 'de' => 'de_url' ); and get the URL by accessing the array using qtrans_getLanguage() index.

If you’re translating internal permalink use the qtrans_convertURL() function.