if (function_exists('qts_language_menu') ) qts_language_menu('dropdown');qts_language_menu($type, $args);
$type = 'text', 'image', 'dropdown', 'both'
$args = array(
'id' => 'qts-lang-menu', // ID of html oputput
'class' => 'qts-lang-menu', // class / classes of the html output
'short' => false // if true, display text as short 'English' -> 'en'
)
global $qtranslate_slug;
$qtranslate_slug->get_current_url('en');CarlosSanz wrote:If you want to print a language switcher menu, call this function:
- Code: Select all
if (function_exists('qts_language_menu') ) qts_language_menu('dropdown');
Arguments of this function are:
- Code: Select all
qts_language_menu($type, $args);
$type = 'text', 'image', 'dropdown', 'both'
$args = array(
'id' => 'qts-lang-menu', // ID of html oputput
'class' => 'qts-lang-menu', // class / classes of the html output
'short' => false // if true, display text as short 'English' -> 'en'
)
If you want to know the current url in other language, you can do:
- Code: Select all
global $qtranslate_slug;
$qtranslate_slug->get_current_url('en');
<?php echo qtrans_generateLanguageSelectCode('text'); ?>gfaw wrote:
The Plugin works well, but my lanugage selector doesn't work with it. I don't use a wigdet but have put this code:
- Code: Select all
<?php echo qtrans_generateLanguageSelectCode('text'); ?>
I dont have a clue where and how I should get my hands on.
Does anybody have an idea?
<?php if (function_exists('qts_language_menu') ) qts_language_menu('text'); ?>baga wrote:gfaw wrote:
The Plugin works well, but my lanugage selector doesn't work with it. I don't use a wigdet but have put this code:
- Code: Select all
<?php echo qtrans_generateLanguageSelectCode('text'); ?>
I dont have a clue where and how I should get my hands on.
Does anybody have an idea?
Use this code instead:
- Code: Select all
<?php if (function_exists('qts_language_menu') ) qts_language_menu('text'); ?>
gfaw wrote:baga wrote:gfaw wrote:
The Plugin works well, but my lanugage selector doesn't work with it. I don't use a wigdet but have put this code:
- Code: Select all
<?php echo qtrans_generateLanguageSelectCode('text'); ?>
I dont have a clue where and how I should get my hands on.
Does anybody have an idea?
Use this code instead:
- Code: Select all
<?php if (function_exists('qts_language_menu') ) qts_language_menu('text'); ?>
Sorry, but this doesn't work for me. I tried it before - it destroys the layout of the page and also requires new formatting in css.
Return to qTranslate Suggestions Forum
Users browsing this forum: No registered users and 2 guests