FAQ - Frequently Asked Questions - Look here for Quick Help

Having Problems? Need Help? Post here!

I’ve found a bug!

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

Great! Help me and others by posting it in the Support Forum. Remember to post when the bug occurs or what you did to make it appear. Don’t forget to post what exactly is broken. I'll try to fix it as fast as I can.
Qian Qin
Site Admin
 
Posts: 964
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

Is my language supported or included?

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

Yes, all languages are supported and more and more get included. If yours is not included, you can easily add it through the "Languages" Configuration Page under Settings. If you are a native speaker of that language, consider sending me all details so I can add it for others.
Qian Qin
Site Admin
 
Posts: 964
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

Does qTranslate change my database?

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

This depends on the version you are using. qTranslate 2.x does not modify your database structure. qTranslate 1.x does change your database. 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.
Qian Qin
Site Admin
 
Posts: 964
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

Where do I get .mo files?

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

.mo files can be found at the WordPress Localization Repository. If you are looking a .mo file for English, here is one.
Qian Qin
Site Admin
 
Posts: 964
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

Where do I find the .mo file for English

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

Exactly here.
Qian Qin
Site Admin
 
Posts: 964
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

Some texts show up with language tags, why?

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

You probably don't have the correct .mo files. qTranslate 2.0 downloads automatically from the Wordpress Localisation Repository. But if you have some exotic language, you will need to learn to create one by yourself. See the Wordpress guide "Translating WordPress" for more information.
Qian Qin
Site Admin
 
Posts: 964
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

How do I make the qTranslate Widget pretty?

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

The qTranslate Widget creates a list, which can be formatted to be vertical or horizontal. The Code generated looks as follows (don't copy paste to your website, it won't work, use the widget instead):

Code: Select all
<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>
</ul>


So to remove bullet points, add this CSS line (to your theme's style.css):
Code: Select all
.qtrans_language_chooser { list-style-type:none }


A Horizontal List can be made by adding this CSS line:
Code: Select all
.qtrans_language_chooser li { float:left; margin-right:3px }


A border around the flags can be added with:
Code: Select all
.qtrans_flag { border:1px solid #b6b6b6 }


The best way if to learn CSS and customize it to match your needs.
Qian Qin
Site Admin
 
Posts: 964
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

All my dates don’t work anymore, what’s wrong?

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

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):

Returns the creation date and/or time of the post
Code: Select all
qtrans_formatPostDateTime($format)


Returns the posting date and/or time of the comment
Code: Select all
qtrans_formatCommentDateTime($format)


Returns the last modification date and/or time of the post
Code: Select all
qtrans_formatPostModifiedDateTime($format)
Qian Qin
Site Admin
 
Posts: 964
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

How do I add multilingual content without changing .mo files

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

It’s simple, just use language tags within gettext:
Code: Select all
<?php _e("<!--:en-->english text<!--:--><!--:de-->german text<!--:-->"); ?>

The line above will output “english text” if the visitor selected English page and “german text” if the visitor selected German.
Qian Qin
Site Admin
 
Posts: 964
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

Next

Return to qTranslate Support Forum

Who is online

Users browsing this forum: Google [Bot] and 6 guests