Custom values are not translated
Custom values are not translated
Custom values are not translated
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
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
qTranslate has an option to hide content which is not available in the specified language. Check the plugin options for “Hide Untranslated Content.”
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(); }
What I normally do when using this combination of plugins is to create one form per language. Easy and effective. You could also try qTranslate quicktags: [:en]English text[:ru]Фамилия. But much probably this will lead to some issues down the road.
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
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<!–:–>’); ?>
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
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