qTranslate for WP 3.0

Having Problems? Need Help? Post here!

Re: qTranslate for WP 3.0

Postby Person » Thu Jul 08, 2010 3:35 pm

All my time and date formats on posts and comments end up as stuff like %A %e %B %Y. After doing some debugging, I discovered that somehow the percentages in the date formats are getting doubled, so that "%A %B %e%q, %Y" ends up being parsed as "%%A %%B %%e%%q, %%Y", which leads to qTranslate being unable to properly handle the date and time format, resulting in a garbled output. The solution is as simple as adding one line at the top of the qtrans_strftime function in qtranslate_core.php (line 408):

function qtrans_strftime($format, $date, $default = '', $before = '', $after = '') {
$format = str_replace('%%','%',$format);
(...)


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[] = '%%';

If you remove one of those %'s at the end, then the parsing is corrected.
Person
 
Posts: 165
Joined: Tue Jul 21, 2009 6:25 pm

Re: qTranslate for WP 3.0

Postby alank » Mon Jul 12, 2010 8:48 pm

It seems as though the dashboard translation is not working, yet. Tried different themes.
alank
 
Posts: 3
Joined: Tue Feb 02, 2010 7:47 pm

Re: qTranslate for WP 3.0

Postby Violetta » Sat Jul 17, 2010 1:01 pm

Wonderful work, Qian, thanks a lot! I just donated a few Euros - these efforts deserve any support!
I use the plugin on a completely new blog, and (almost) erverythings seems to work perfectly.
Violetta
 
Posts: 6
Joined: Wed Jul 14, 2010 8:27 pm

Re: qTranslate for WP 3.0

Postby cezarneaga » Mon Jul 19, 2010 12:20 pm

i cannot translate Menu Item descriptions. <!--:en--> doesn't save, [:en] saves but doesn't get interpreted. using this trick from here to display them in the navigation. http://www.kriesi.at/archives/improve-y ... nu-output/.
cezarneaga
 
Posts: 1
Joined: Mon Jul 19, 2010 12:12 pm

Re: qTranslate for WP 3.0

Postby anais » Wed Jul 28, 2010 11:02 am

Hi, how/ where do I add the language tags manually please? The main "post screen" only allows me to edit multiple titles and multiple Excerpts, but not multiple post contents.
I'm on qT 2.5.8 and WP 3.0. Thanks.
anais
 
Posts: 1
Joined: Wed Jul 28, 2010 10:56 am

Re: qTranslate for WP 3.0

Postby hui3003 » Thu Aug 05, 2010 9:52 pm

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:
hui3003
 
Posts: 13
Joined: Wed Oct 22, 2008 1:50 pm

Re: qTranslate for WP 3.0

Postby jleonardo » Fri Aug 06, 2010 11:38 am

The qTranslate for WP 3.0 is the latest and stable version for wordpress. It is a compatible version of a best quality. I don't have any idea about the English or a German translation. This is an awesome thread about the qTranslate for the wordpress 3.0 which has a different suggestions and discussions.
jleonardo
 
Posts: 1
Joined: Fri Aug 06, 2010 10:46 am

Re: qTranslate for WP 3.0

Postby stukka » Tue Aug 17, 2010 5:51 pm

the post from person worked for me too...
but i got the same german output like hui303
any idea how to fix it ?
stukka
 
Posts: 5
Joined: Fri Jul 30, 2010 6:38 pm

Re: qTranslate for WP 3.0

Postby zsero » Wed Aug 18, 2010 2:05 pm

qTranslate is still buggy in WP 3.0

1. It inserts <p> </p> before and after every article in all languages!
2. It inserts <p> </p> before and after every line in the 2nd language!

Can someone help how could we fix it?
zsero
 
Posts: 9
Joined: Sun Aug 15, 2010 11:39 am

Re: qTranslate for WP 3.0

Postby zsero » Thu Aug 19, 2010 2:34 pm

If I click HTML mode just before clicking save, the bug is not present. Do you know any quick fix for this?
zsero
 
Posts: 9
Joined: Sun Aug 15, 2010 11:39 am

PreviousNext

Return to qTranslate Support Forum

Who is online

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