FAQ - Frequently Asked Questions - Look here for Quick Help

Any suggestions on how to improve qTranslate? Post here!

What are language tags or Quicktags?

Postby Qian Qin » Thu Jun 19, 2008 2:40 pm

qTranslate uses language tags to identify different languages. They look like this:
Code: Select all
<!--:en--><!--:-->
. Usually, when you don’t do anything fancy, qTranslate will take care of them for you. But if you want to have multilingual text in your templates or extra fields, you will need to use them.
Quicktags are a shorter form of language tags and look like this:
Code: Select all
[:en]

More information on Quicktags can be found here.
Qian Qin
Site Admin
 
Posts: 964
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

I don’t use Widgets, how do I get a Language Switcher?

Postby Qian Qin » Thu Jun 19, 2008 2:42 pm

Just put qtrans_generateLanguageSelectCode($type) in your Templates. If you set $type = ‘image’, flags will be used, $type = ‘both’ will show flags and language, $type=’dropdown’ will generated a dropdown list instead, default is ‘text’. Example:
Code: Select all
<?php echo qtrans_generateLanguageSelectCode('both'); ?>
Qian Qin
Site Admin
 
Posts: 964
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

Can qTranslate translate other fields like Blog Title?

Postby Qian Qin » Thu Jun 19, 2008 2:43 pm

Yes, but unfortunately, you will have to use language tags in them.
Qian Qin
Site Admin
 
Posts: 964
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

Clicking on the Title/Home-Link resets selected language.

Postby Qian Qin » Sat Dec 20, 2008 11:57 pm

This is a template problem. Your template is using get_option('home') to get the link for the front page, which is BAD! get_option is not supposed to be used in templates. There is a function called bloginfo for templates. Use that instead and everything will work the way it is supposed to.
Qian Qin
Site Admin
 
Posts: 964
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

Dates show up as time when qTranslate is activated.

Postby Qian Qin » Sun Dec 21, 2008 10:23 am

There are 2 Wordpress function for displaying the time of a post. One is called
Code: Select all
the_time();
and the other one
Code: Select all
the_date();
The author of your template used the_time to display a date, which is simply wrong. Change the_time to the_date and you will get the date instead of the time.
Qian Qin
Site Admin
 
Posts: 964
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

How to manually install .mo files

Postby Qian Qin » Tue Jan 06, 2009 9:50 am

Normally, qTranslate will download all .mo files automatically, but if you want to manually manage all .mo files, you can follow the Wordpress Guide "Installing WordPress in Your Language" to install them. I recommend not to set WP_LANG in the wp-config.php file and leave it as
Code: Select all
define ('WPLANG', '');
Qian Qin
Site Admin
 
Posts: 964
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

I am getting "Language is already enabled or invalid!"

Postby Qian Qin » Wed Feb 18, 2009 11:46 am

This will happen if your database isn't ready for multilingual content. You can install the http://g30rg3x.com/utf8-database-converter/ to fix the problem. You can find more information on http://codex.wordpress.org/Converting_D ... acter_Sets.
Qian Qin
Site Admin
 
Posts: 964
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

I can't login anymore after switching the language!

Postby Qian Qin » Mon Mar 09, 2009 12:55 am

This is a WordPress problem, take a look here.
Qian Qin
Site Admin
 
Posts: 964
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

Previous

Return to qTranslate Suggestions Forum

Who is online

Users browsing this forum: No registered users and 3 guests