Custom Meta Field not Working with qTranslate [closed]

Less complicated is to use the plugin’s Quicktags and use the Gettext functions to print the content in the site. [:en]English[:pt]Português Quicktags docs Another option is to do just like qTranslate interface does with the post titles: Create one custom field for each language in your meta box: qTrans documentation is not consolidated, so analyzing … Read more

Is it possible to get a different header.php on language switch with qtranslate? [closed]

Following the codex about the get_header function You must have an archive header-de.php in your template. Create one for each language you have and adjust the switch accordingly. <?php if(function_exists(‘qtrans_getLanguage’)) { $lingo = qtrans_getLanguage(); switch ($lingo) { case ‘de’: get_header(‘de’); break; default: get_header(); break; } } else { get_header(); }

How to translate content in category.php or index.php with qtranslate?

Most correct way to do this would be to use WordPress translations. You should replace this static text with: <?php _e(‘YOUR TEXT’, ‘your_text_domain’); ?> And add text domain to your theme. More on this topic: http://codex.wordpress.org/I18n_for_WordPress_Developers You can also… … use qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage function. Just use it like so: <?php echo qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage(‘<!–en:–>Latest News<!–:–><!–fr:–>dernières Nouvelles<!–:–>’); ?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)