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

QTranslate for Custom Post Type [closed]

Using tags is pretty straightforward. All data in qTranslate is stored between special <!–:lang–>content<!–:–> tags, wherein lang is the code for the language, like en, ru, de, etc. The post edit UI is altered via qTranslate’s heavy JavaScript. The JavaScript parses the content for preset fields and creates new controls. Before saving the same JavaScript … 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(); }

Is there a way to localize role labels?

I don’t know the function you mention either, but I would venture to guess that that applies to default roles only anyhow. Still, the link you posted does contain a pointer in the right direction. It speaks of “dummy gettext calls”, which is exactly what you have to do. In the following we will adjust … Read more

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<!–:–>’); ?>

Multi-language permalink in qtranslate

In qTranslate settings in admin panel open advanced options and check the radio button for using language prefixes after domain name. I assume you have French listed in Languages settings of the plugin correct. You may expect dates shown incorrectly after that, use php date function to fix that in your particular language settings (edit … Read more

Disable qTranslate by post type in admin + disable per page / post ID on front-end [closed]

Following snippet will disable it for post_type post (modify array below to affect other post_types): function qtrans_disable() { global $typenow, $pagenow; if (in_array($typenow, array(‘post’)) && // post_types where qTranslate should be disabled in_array($pagenow, array(‘post-new.php’, ‘post.php’))) { remove_action(‘admin_head’, ‘qtrans_adminHeader’); remove_filter(‘admin_footer’, ‘qtrans_modifyExcerpt’); remove_filter(‘the_editor’, ‘qtrans_modifyRichEditor’); } } add_action(‘current_screen’, ‘qtrans_disable’); Similarly you can disable it for specific post IDs. … Read more