qTranslate for WP 3.0

Having Problems? Need Help? Post here!

Re: qTranslate for WP 3.0

Postby ARbar » Fri Aug 20, 2010 7:54 am

Can I finally upgrade all sites to WP 3.0.1 and using qtranslate? Or better to continue to use WP 2.9.2 in order to use qtranslate without fear?
Thanks.
ARbar
 
Posts: 3
Joined: Fri Aug 20, 2010 7:52 am

Re: qTranslate for WP 3.0

Postby stukka » Sat Aug 21, 2010 3:08 pm

@ARbar: yes it's working. there's a version for wp3.0 out. and there's a small fix for wp3.0.1 >>http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=1630

but does anyone has an idea how to fix the german time output?
hui3003 wrote:
Person wrote:Edit: Actually, it appears that the offending line is in the qtrans_convertDateFormatToStrftimeFormat function. The percentages are getting doubled here (line 144 of qtranslate_utils.php):
$date_parameters[] = '#%#'; $strftime_parameters[] = '%%';


Person wrote:If you remove one of those %'s at the end, then the parsing is corrected.


Hi Person. Super tip from you!
I had the same problem and I deleted this doble %% at the end of the line 144. Now is it in the English Language correct, but in the German Language it is allways broken. It shows :
Donnerstag, 05UTCThu, 05 Aug 2010 14:19:34 +0000 5. August 2010


hmmm.... from where came this error? Functions.php? I dont know what to delete there.
:cry:
stukka
 
Posts: 5
Joined: Fri Jul 30, 2010 6:38 pm

Re: qTranslate for WP 3.0

Postby yeysus » Sun Aug 29, 2010 7:15 pm

Hi. Thanks for the work with qTranslate. I am trying to setup a new blogging site, the multilingual capability is a must. After trying it hard with drupal and joomla, I came across your qTranslate for wordpress and indeed your implementation is the one that best fits my use case requirements. I consider the problems with the "Read more" link and some other things as minor, however the date output ("F j,Y by author" in the posts if using strftime instead of date, or "%A %B %e%q, %Y at %I:%M %p" in the comments if using emulated date function) is a major problem for me. Is there a fix planned soon or has somebody found a decent solution that does not break something else? The solution given above by Person is not fixing it properly. After trying other settings, what I did so now it works more or less (Spanish months show in uppercase for comments and lower case for posts, German and English are OK) was to delete all my 3 active languages date and time formats. I don't know if this breaks something else so I would prefer an "official" fix. Thanks for your time.

My settings:

Array
(
[enabled_languages] => Array
(
[0] => de
[1] => en
[2] => es
)

[default_language] => en
[detect_browser_language] => 1
[hide_untranslated] =>
[auto_update_mo] => 1
[hide_default_language] => 1
[url_mode] => 2
[language_name] => Array
(
[zh] => 中文
[fi] => suomi
[fr] => Français
[nl] => Nederlands
[se] => Svenska
[it] => Italiano
[ro] => Română
[hu] => Magyar
[ja] => 日本語
[vi] => Tiếng Việt
[ar] => العربية
[pt] => Português
[en] => English
[de] => Deutsch
[es] => Español
)

[locale] => Array
(
[zh] => zh_CN
[fi] => fi
[fr] => fr_FR
[nl] => nl_NL
[se] => sv_SE
[it] => it_IT
[ro] => ro_RO
[hu] => hu_HU
[ja] => ja
[vi] => vi
[ar] => ar
[pt] => pt_BR
[en] => en_US
[de] => de_DE
[es] => es_ES
)

[not_available] => Array
(
[zh] => 对不起,此内容只适用于%LANG:,:和%。
[fi] => Anteeksi, mutta tämä kirjoitus on saatavana ainoastaan näillä kielillä: %LANG:, : ja %.
[fr] => Désolé, cet article est seulement disponible en %LANG:, : et %.
[nl] => Onze verontschuldigingen, dit bericht is alleen beschikbaar in %LANG:, : en %.
[se] => Tyvärr är denna artikel enbart tillgänglig på %LANG:, : och %.
[it] => Ci spiace, ma questo articolo è disponibile soltanto in %LANG:, : e %.
[ro] => Din păcate acest articol este disponibil doar în %LANG:, : și %.
[hu] => Sajnos ennek a bejegyzésnek csak %LANG:, : és % nyelvű változata van.
[ja] => 申し訳ありません、このコンテンツはただ今 %LANG:、 :と % のみです。
[vi] => Rất tiếc, mục này chỉ tồn tại ở %LANG:, : và %.
[ar] => عفوا، هذه المدخلة موجودة فقط في %LANG:, : و %.
[pt] => Desculpe-nos, mas este texto esta apenas disponível em %LANG:, : y %.
[en] => Sorry, this entry is only available in %LANG:, : and %.
[de] => Leider ist der Eintrag nur auf %LANG:, : und % verfügbar.
[es] => Disculpa, pero esta entrada está disponible sólo en %LANG:, : y %.
)

[qtranslate_services] =>
[use_strftime] => 3
[date_format] => Array
(
[zh] => %x %A
[fi] => %e.&m.%C
[fr] => %A %e %B %Y
[nl] => %d/%m/%y
[se] => %Y/%m/%d
[it] => %e %B %Y
[ro] => %A, %e %B %Y
[hu] => %Y %B %e, %A
[ja] => %Y年%m月%d日
[vi] => %d/%m/%Y
[ar] => %d/%m/%Y
[pt] => %d de %B de %Y
[en] =>
[de] =>
[es] =>
)

[time_format] => Array
(
[zh] => %I:%M%p
[fi] => %H:%M
[fr] => %H:%M
[nl] => %H:%M
[se] => %H:%M
[it] => %H:%M
[ro] => %H:%M
[hu] => %H:%M
[ja] => %H:%M
[vi] => %H:%M
[ar] => %H:%M
[pt] => %H:%M hrs.
[en] =>
[de] =>
[es] =>
)

[flag] => Array
(
[zh] => cn.png
[fi] => fi.png
[fr] => fr.png
[nl] => nl.png
[se] => se.png
[it] => it.png
[ro] => ro.png
[hu] => hu.png
[ja] => jp.png
[vi] => vn.png
[ar] => arle.png
[pt] => br.png
[en] => gb.png
[de] => de.png
[es] => es.png
)

[flag_location] => plugins/qtranslate/flags/
[ignore_file_types] => gif,jpg,jpeg,png,pdf,swf,tif,rar,zip,7z,mpg,divx,mpeg,avi,css,js
[cookie_enabled] => 1
[language] => en
)
yeysus
 
Posts: 3
Joined: Sun Aug 29, 2010 6:28 pm

Re: qTranslate for WP 3.0

Postby David1 » Tue Aug 31, 2010 5:01 am

Qian can you contact me as your email doesnt work.I want to pay to get my qTranslate working. Thanks
David1
 
Posts: 5
Joined: Mon Jul 05, 2010 9:00 am

Re: qTranslate for WP 3.0

Postby MiniC » Wed Sep 01, 2010 11:18 pm

@yeysus

I'm using WP 3.1 in the german version (with Theme f2) and qtranslate for translations to english and netherlands.
Qtranslate settings is Use emulated date function.
Only in the german articles I have had the problem, that the date and time of the comments are double.
After I delete the optional settings for date and time for german (like you wrote) everything is working perfekt! :idea:

Thank you very much for sharing your solution.

Very best
You only see what you know. J.W. von Goethe
MiniC
 
Posts: 7
Joined: Mon Feb 09, 2009 12:41 am

Re: qTranslate for WP 3.0

Postby Person » Fri Oct 01, 2010 5:53 pm

hui3003 wrote:Hi Person. Super tip from you!
I had the same problem and I deleted this doble %% at the end of the line 144. Now is it in the English Language correct, but in the German Language it is allways broken. It shows :
Donnerstag, 05UTCThu, 05 Aug 2010 14:19:34 +0000 5. August 2010


hmmm.... from where came this error? Functions.php? I dont know what to delete there.
:cry:

You only need to remove 1 percentage (%), not both :

$date_parameters[] = '#%#'; $strftime_parameters[] = '%';
Person
 
Posts: 165
Joined: Tue Jul 21, 2009 6:25 pm

Re: qTranslate for WP 3.0

Postby terje » Sat Oct 02, 2010 1:21 pm

I got my native language (norwegian) and the english language to work by using other codes for Date Format and Time format: (Without changing qtranslate_utils.php)

English, date format:
l, F j, Y

English, time format:
g:i A

Based on this guide: http://codex.wordpress.org/Formatting_Date_and_Time
terje
 
Posts: 1
Joined: Sat Oct 02, 2010 1:19 pm

Re: qTranslate for WP 3.0

Postby christian_gnoth » Sat Nov 13, 2010 6:00 pm

stukka wrote:the post from person worked for me too...
but i got the same german output like hui303
any idea how to fix it ?


you can set the option "use stfrtime instead of date" in the plugin settings page under "Advanced settings" - then the date output should be ok.
christian_gnoth
 
Posts: 16
Joined: Sun Jul 25, 2010 3:19 pm

Re: qTranslate for WP 3.0

Postby gpaulmiller » Thu Feb 17, 2011 3:16 am

I had the same date problem and I deleted one of the double %% at the end of the line 144. Now is it in the English Language correct, but in the German Language is still broken. It shows :
Donnerstag, 05UTCThu, 05 Aug 2010 14:19:34 +0000 5. August 2010

Any ideas?
gpaulmiller
 
Posts: 1
Joined: Thu Feb 17, 2011 3:14 am

Re: qTranslate for WP 3.0

Postby Thomas Krüger » Thu Feb 17, 2011 6:33 am

This are my working settings for german:
Date/Time conversion settings in qTranslate: "Benutze emulierte date Funktion."
Date
Code: Select all
%A, der %e. %B %Y

Time
Code: Select all
%H:%M

In the WP blog page template
Code: Select all
<?php the_time(get_option('date_format')); ?>
Thomas Krüger
 
Posts: 34
Joined: Sat Sep 19, 2009 5:31 am

PreviousNext

Return to qTranslate Support Forum

Who is online

Users browsing this forum: Google [Bot], Google Adsense [Bot] and 8 guests