Jump to content


Photo

Pb using qTranslate

platform pro qtranslate

Best Answer Rob , 13 May 2013 - 09:31 PM

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

Go to the full post


  • Please log in to reply
16 replies to this topic

#1 yannick

yannick

    Member

  • Members
  • 14 posts
  • Country: Country Flag

Posted 13 May 2013 - 01:00 PM

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

 

 

 



#2 greenfly

greenfly

    Advocate

  • Members

  • 3268 posts
  • LocationManchester, England
  • Framework Version:latest
  • Country: Country Flag

Posted 13 May 2013 - 01:09 PM

Hello Yannick 

 

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



#3 yannick

yannick

    Member

  • Members
  • 14 posts
  • Country: Country Flag

Posted 13 May 2013 - 01:12 PM

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



#4 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 13 May 2013 - 02:06 PM

You can PM the URL to me.



#5 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 13 May 2013 - 02:26 PM

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.



#6 yannick

yannick

    Member

  • Members
  • 14 posts
  • Country: Country Flag

Posted 13 May 2013 - 02:43 PM

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



#7 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 13 May 2013 - 02:49 PM

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?



#8 yannick

yannick

    Member

  • Members
  • 14 posts
  • Country: Country Flag

Posted 13 May 2013 - 03:32 PM

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



#9 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 13 May 2013 - 03:36 PM

Where are you putting that code?



#10 yannick

yannick

    Member

  • Members
  • 14 posts
  • Country: Country Flag

Posted 13 May 2013 - 03:39 PM

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



#11 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 13 May 2013 - 03:51 PM

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.pagel...store-overview/



#12 yannick

yannick

    Member

  • Members
  • 14 posts
  • Country: Country Flag

Posted 13 May 2013 - 04:31 PM

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



#13 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 13 May 2013 - 04:39 PM

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



#14 yannick

yannick

    Member

  • Members
  • 14 posts
  • Country: Country Flag

Posted 13 May 2013 - 04:45 PM

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.



#15 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 13 May 2013 - 06:37 PM

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



#16 yannick

yannick

    Member

  • Members
  • 14 posts
  • Country: Country Flag

Posted 13 May 2013 - 07:41 PM

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



#17 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 13 May 2013 - 09:31 PM   Best Answer

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







Also tagged with one or more of these keywords: platform pro, qtranslate