Archived

This topic is now archived and is closed to further replies.

  • 0

Pb using qTranslate


Question

Posted · Report post

Hello,

 

I have a french/english website using Platform Pro and qtranslate.

Everything works fine, except a huge point : how could I translate the boxes and the quicksliders ?

 

Thank you very much for any help - I'm in a black hole.

 

Kind regards,

Yannick

 

 

 

Share this post


Link to post
Share on other sites

16 answers to this question

Posted · Report post

Hi,

 

The problem with editing core files is that if you update or we push an update, the work you did will be lost.

 

When activating the Base Theme, yes, your menu will be messed... but only until you go to Dashboard > Appearance > Menus and select your regular or Primary menu in the Theme Locations under Primary Website Navigation.  Whenever someone selects a new theme, this requires an update.  As soon as it's selected and saved, the menu will look exactly as it did before.

 

The script code you're adding, belongs in the functions.php of the child theme, rather than in header.php.

 

Alternatively, I use Transposh, which seems to integrate much better, and provides the same quality translations (it uses the same source).

Share this post


Link to post
Share on other sites

Posted · Report post

Thank you Catrina. I'll try to deactivating the plugins, but later because I try to fix the problem by duplicating my home page in english.

Now I have another pb : do you think I can add a php var in the link of the menu ?

 

I've tried a php code below :

<?php $lang= $_GET['lang'];?>

 

but my var is still $lang and not "fr" or "en"

 

Yannick

Share this post


Link to post
Share on other sites

Posted · Report post

Where are you putting that code?

Share this post


Link to post
Share on other sites

Posted · Report post

I've put the code in the header.php file in :

 

/wp-content/themes/pagelines/

 

Just under line 39 (for me) :

 

<body <?php body_class( pagelines_body_classes() ); ?>>
<?php $lang= $_GET['lang'];?>

 

Am I wrong ?

 

Yannick

Share this post


Link to post
Share on other sites

Posted · Report post

Editing core files in the theme is not recommended. Please make sure you have the base theme installed and activated if you want to make changes to core files. For further instructions, please see the "Activate the Base Theme" here: http://support.pagelines.me/docs/pagelines-store/store-overview/

Share this post


Link to post
Share on other sites

Posted · Report post

But installing the Base Theme will smash my Pageline framework, no ?

Share this post


Link to post
Share on other sites

Posted · Report post

No, the base theme is intended to work with PageLines Framework.

Share this post


Link to post
Share on other sites

Posted · Report post

I've installed the Base Theme and activated it but everythnong was messy on my menus arrrrgh...

I've desactivate it.

 

I don't kwow what I can do.

Share this post


Link to post
Share on other sites

Posted · Report post

If you don't use base theme, please avoid making edits to your files. Is the qTranslate problem still there?

Share this post


Link to post
Share on other sites

Posted · Report post

Dear Catrina,

 

Yes, the problem is still here.... I've desactivated all the plugins, except qTranslate.

 

So, here is the bad bad solution I've found :

 

I have hardcoded the header.php with this code on the top :

 

 

<?php
 
$currentlang=qtrans_getLanguage();
 
$post = $wp_query->get_queried_object();
$pagename = $post->post_name;
 
if (($currentlang=="en") && ($pagename=="the name of the page I cannot translate in english")) {
wp_redirect ("the name of the page I have duplicated in english/?lang=en');  
 
} else  {
;        
}
 
?>
 
Bouh !
 
But it works.
What do you think ?

 

Yannick

Share this post


Link to post
Share on other sites

Posted · Report post

Hello Yannick 

 

Please can you provide a link to the site you are working on? 

Share this post


Link to post
Share on other sites

Posted · Report post

Hello Martin,

 

Well, I rather not give the url because the dev of the website is a little bit touchy.

May I send it tou you by MP ?

 

Thnak you very much.

Yannick

Share this post


Link to post
Share on other sites

Posted · Report post

You can PM the URL to me.

Share this post


Link to post
Share on other sites

Posted · Report post

When I installed qtranslate on my install, I see the options for translation when I open the box editor and feature editor, so the plugin definitely works on Framework. I'm quite certain you're using Framework instead of PlatformPro because PlatformPro does not have Quickslider. To troubleshoot your issue, please deactivate ALL active non-PageLines plugins and see if the problem persists.

Share this post


Link to post
Share on other sites

Posted · Report post

Thank you Catrina. You're right, I'm using the Pagelines Framework.

Do you mean that the qtranslate options are natively available on the quickslider, boxes, etc ?

 

Yannick

Share this post


Link to post
Share on other sites

Posted · Report post

Yes, that is correct. When I installed qtranslate, the options for it are available it when I edit features and boxes. If they're not showing up on your install, it must be something on your end. Have you already tried deactivating all other active non-PL plugins?

Share this post


Link to post
Share on other sites