Resources

My Agape try

Your Agape try


Support Forum

Current User: Guest Login Register
Please consider registering

Search 
Search Forums:


 




Conflict with qTranslate

UserPost

7:49 am
July 2, 2009


Mishkin

Member

Falun, Sweden

posts 12

1

Hi again,

There seem to be a conflict between Role Scoper and qTranslate. Upon activating Role Scoper qTranslate no longer is able to parse multilingual titles in Parent Page-dropdown in Write Post, get_page() function call and a couple of other places.

My guess is Role Scoper is executed before qTranslate and somehow breaks qT's parse function.

Is there a fix for this?

2:41 pm
July 6, 2009


Kevin

Admin

posts 1169

2

Mishkin said:

Hi again,

There seem to be a conflict between Role Scoper and qTranslate. Upon activating Role Scoper qTranslate no longer is able to parse multilingual titles in Parent Page-dropdown in Write Post, get_page() function call and a couple of other places.

My guess is Role Scoper is executed before qTranslate and somehow breaks qT's parse function.

Is there a fix for this?


Can you give me some QTranslate configuration help? What exactly does it take to reproduce the multilingual Page Parent bug?

3:59 pm
July 6, 2009


Mishkin

Member

Falun, Sweden

posts 12

3

Of course. Take following steps to reproduce..

- On a new installation of WP 2.8 you activate Role Scoper and setup all pages, including default, to be restricted for Page Contributor and Page Editor.

- Then activate qTranslate, enable a second language under Settings->Languages. Update a page with title and content for the new language.

- Now, when you add a new page, the page parent dropdown contains both the page titles in both languages including tags for parsing.

Disabling Role Scoper solves the problem..

4:17 pm
July 6, 2009


Kevin

Admin

posts 1169

4

Okay, I see what you mean. I just hadn't taken the time to read the disclaimer about activating the QTranslate editor. Now I see the symptom and will look into it.

4:25 pm
July 6, 2009


Mishkin

Member

Falun, Sweden

posts 12

5

Great. Thank you for your time!

7:10 pm
July 6, 2009


Kevin

Admin

posts 1169

6

Mishkin said:

There seem to be a conflict between Role Scoper and qTranslate. Upon activating Role Scoper qTranslate no longer is able to parse multilingual titles in Parent Page-dropdown in Write Post, get_page() function call and a couple of other places.

My guess is Role Scoper is executed before qTranslate and somehow breaks qT's parse function.

Is there a fix for this?


Okay, the page parent translation conflict is now resolved in the updated Role Scoper development snapshot.

Feel free to give me more details on the other symptoms if they're still there.

7:13 am
July 7, 2009


Mishkin

Member

Falun, Sweden

posts 12

7

I have tried your patch and it seems to fix the problem for administrators but not for users with page restrictions.

- If you take the same steps as before and add a group with a page editor role for a, restricted, top level page.

- Assign the new group to a new user and then create a new sub-page to the top level page.

- Now, when you try to add another page (as the restricted user), the page parent dropdown contains language tags.

The language tags are also visible in the Role Scoper administration pages. This could be solved by applying the "the_title" filter on page and post titles which includes the qTranslate parser function.

Again, thank you for your time! I donated a couple of dollars as a token of my appriciation.

9:55 am
July 7, 2009


Kevin

Admin

posts 1169

8

Mishkin said:

I have tried your patch and it seems to fix the problem for administrators but not for users with page restrictions…

The language tags are also visible in the Role Scoper administration pages. This could be solved by applying the "the_title" filter on page and post titles which includes the qTranslate parser function.

Due to Role Scoper's low level nature, there are several situations where it directly queries the database for pages, terms, or (in bulk role administration) posts. These were the sources of non-translation. I've now accompanied each of those direct queries with a filtered query which allows translated titles to be preserved. See the updated Role Scoper development snapshot. Let me know if I missed anything.

Again, thank you for your time! I donated a couple of dollars as a token of my appriciation.


Thank you!

10:45 am
July 7, 2009


Mishkin

Member

Falun, Sweden

posts 12

9

On the profile pages under Scoped Roles, it still prints language tags but except for that it seems to work fine.

I'll go through it more thoroughly tomorrow..

Thank you!

11:08 am
July 7, 2009


Kevin

Admin

posts 1169

10

Mishkin said:

On the profile pages under Scoped Roles, it still prints language tags but except for that it seems to work fine.


Okay, that too is now corrected in the updated Role Scoper development snapshot.

2:49 am
July 23, 2009


Mishkin

Member

Falun, Sweden

posts 12

11

Hi Kevin,

I've just discovered that the name of drafts aren't being parsed by qTranslate in the post parent drop down.

5:15 am
August 1, 2009


Kevin

Admin

posts 1169

12

Mishkin said:

Hi Kevin,

I've just discovered that the name of drafts aren't being parsed by qTranslate in the post parent drop down.


On a side note, you can stop QTranslate from putting the language list in every custom column by adding the following code to qtranslate_hooks.php:

add in the top of function qtrans_languageColumn:

if ( 'language' != $column )
	return;

5:21 am
August 1, 2009


Kevin

Admin

posts 1169

13

Mishkin said:

Hi Kevin,

I've just discovered that the name of drafts aren't being parsed by qTranslate in the post parent drop down.


Hmm, are you referring to the page parent dropdown on the Edit Page form? If so, the filtering is working for me. What versions are you running?

5:47 am
August 1, 2009


Kevin

Admin

posts 1169

14

Kevin said:

Mishkin said:

Hi Kevin,

I've just discovered that the name of drafts aren't being parsed by qTranslate in the post parent drop down.


Hmm, are you referring to the page parent dropdown on the Edit Page form? If so, the filtering is working for me. What versions are you running?


Actually, I can confirm this in version 1.0.4.1 but I've already fixed it in the development code. If you don't want to run that, 1.0.5 should be released within the next few days.

5:53 am
August 1, 2009


Mishkin

Member

Falun, Sweden

posts 12

15

Yes, it's the page parent dropdown on the right side when editing a page. I'm using WP 2.8.2, qTranslate 2.4.1 and the Role Scoper 1.0.5-alpha3.

Strangely this is happening on our development site, just the live one.

6:28 am
August 1, 2009


Kevin

Admin

posts 1169

16

Mishkin said:

Yes, it's the page parent dropdown on the right side when editing a page. I'm using WP 2.8.2, qTranslate 2.4.1 and the Role Scoper 1.0.5-alpha3.

Strangely this is happening on our development site, just the live one.


Can you think of any other differences in the blog configurations?

6:30 am
August 1, 2009


Kevin

Admin

posts 1169

17

Mishkin said:

Yes, it's the page parent dropdown on the right side when editing a page. I'm using WP 2.8.2, qTranslate 2.4.1 and the Role Scoper 1.0.5-alpha3.

Strangely this is happening on our development site, just the live one.


Do you mean beta3 (the one currently linked as the dev snapshot)?

6:31 am
August 1, 2009


Mishkin

Member

Falun, Sweden

posts 12

18

It shouldn't be any difference at all. They are both running on the same server with their database cloned, same plugins and same theme.

Only things is the live site is running on main domain while the other one on the subdomain dev.

6:37 am
August 1, 2009


Mishkin

Member

Falun, Sweden

posts 12

19

Version of the plugin says alpha3 in WordPress admin. I downloaded it using the link suggested in post #10.

6:48 am
August 1, 2009


Kevin

Admin

posts 1169

20

Mishkin said:

Version of the plugin says alpha3 in WordPress admin. I downloaded it using the link suggested in post #10.


Just recently or back when post 10 was made?



Reply to Topic: Conflict with qTranslate

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 7 + 6        (Required)

Topic Reply:


 

About the Agapetry forum

Currently Online:

9 Guests

Maximum Online: 88

Forums:

Groups: 2

Forums: 7

Topics: 561

Posts: 2660

Members:

There are 472 members

There are 1 guests


Kevin has made 1169 posts

Top Posters:

metal450 - 98

YikYak - 53

Ragnar - 36

Daisy - 35

LorenW - 33

Administrator: Kevin | Moderators: Kevin