Jump to Navigation

Frequently Asked Questions

Here you will find answers to most questions that have been asked about qTranslate.

I’ve found a bug!
Great! Help me and others by telling me when the bug occurs or what you did to make it appear. Don’t forget to tell me what is exactly broken. Write me an email with all that information and I’ll be on my way fixing it.
Is my language supported or included?
Yes, all languages are supported and more and more get included. If yours is not included, you can easily add it through the Language Manager. If you are a native speaker of that language, consider sending me all details so I can add it for others.
Does qTranslate change my database? If yes, what?
Yes, it does. When you access the Configuration page, it will check how long category names can be. WordPress’ default length is 55 characters, which is too short too handle multilingual content. Thats why qTranslate will change it to support up to 255 characters. It won’t alter the database if you already changed it to a different type like text to support even longer texts.
Where do I get .mo files?
.mo files can be found at the WordPress Localization Repository. If you are looking a .mo file for English, here is one.
Where do I find the .mo file for English
Exactly here.
When using English, some texts show up with language tags, why?
You didn’t download and install the .mo file for English.
How do I make the qTranslate Widget pretty?
The qTranslate Widget creates a list, which can be formatted to be vertical or horizontal.
The Code generated looks as follows:
<ul class="qtrans_language_chooser">
<li class="active"><a href="/qtranslate/faq/" class="qtrans_flag qtrans_flag_en"><span>English</span></a></li>
<li class="active"><a href="/de/qtranslate/faq/" class="qtrans_flag qtrans_flag_de"><span>Deutsch</span></a></li>
So to remove bullet points, add this CSS line:
.qtrans_language_chooser { list-style-type:none }
A Horizontal List can be made by adding this CSS line:
.qtrans_language_chooser li { float:left; margin-right:3px }
A border around the flags can be added with:
.qtrans_flag { border:1px solid #b6b6b6 }
The best way if to learn CSS and customize it to match your needs.
All my custom Template Dates don’t work anymore, what’s wrong?
qTranslate will make the_date, the_time, etc. to ignore the format because it uses strftime instead of date. So to prevent date formats being passed to strftime, qTranslate overwrites them. But you can still use custom dates. Simply use one of the following functions (using a strftime format):
qtrans_formatPostDateTime($format) – Returns the creation date and/or time of the post
qtrans_formatCommentDateTime($format) – Returns the posting date and/or time of the comment
qtrans_formatPostModifiedDateTime($format) – Returns the last modification date and/or time of the post
How do I add multilingual content without changing the .mo files?
It’s simple, just use language tags within gettext:
<?php _e("english text"); ?>
The line above will output “english text” if the visitor selected English page and “german text” if the visitor selected German.
What are language tags?
qTranslate uses language tags to identify different languages. They look like this:. 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, you will need to use them.
I want to use language tags to show up as text in a post, how do I do that?
You will need to switch to Code-Mode and manually insert a <wbr></wbr> somewhere in the language tag (both beginning and ending tag!). This will make qTranslate ignore it.
I don’t use Widgets, how can I let qTranslate generated the Language Selector/Switcher?
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:
<?php echo qtrans_generateLanguageSelectCode('both'); ?>
Can qTranslate translate all the other text fields like Blog Title?
Yes, but unfortunately, you will have to use language tags in them.
I have another question not listed here
Try looking in the WordPress Support Forum. I am currently unable to support via email.