Jump to content
yannick

Pb using qTranslate

Recommended Posts

yannick    0
yannick

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
greenfly    230
greenfly

Hello Yannick 

 

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


The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 

 

Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post


Link to post
Share on other sites
yannick    0
yannick

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
catrina    103
catrina

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.


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
yannick    0
yannick

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
catrina    103
catrina

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?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
yannick    0
yannick

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
yannick    0
yannick

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
catrina    103
catrina

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/


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
yannick    0
yannick

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

Share this post


Link to post
Share on other sites
yannick    0
yannick

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
catrina    103
catrina

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


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
yannick    0
yannick

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
Rob    547
Rob

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


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • mrmyth
      By mrmyth
      Hello:
      I have several sites on Host Gator that have been using Platform Pro. This template was great for me until recently, when after a Word Press update, all the sites just have the page heading and all the rest of the content doesn't display.
      Thanks for your help.
       
    • dadomagico
      By dadomagico
      Hi,in my site http://www.mobiliariofarmacia.es/
      at the top appairs this error:
      /** Outputs the WordPress header. */ require_once(ABSPATH . 'wp-head.php');
      How can i resolve?
      I have updated the theme and also wordpress ma doesn't work
      Please Help me!
    • jillginsberg
      By jillginsberg
      I am unable to log into the Wordpress dashboard for my website. When I try, I get a page of lines saying:
      Warning: Creating default object from empty value in /home/hundreds/hundredsofhundreds.com/wp-content/themes/platformpro/core/library/class.layout.php on line 159 (and line 162, etc)
      I have not posted to my wordpress site in a while, but keep it reasonably updated and haven't made any changes or deleted any important files that I am aware of. Any help much appreciated!
      http://www.hundredsofhundreds.com
    • forwardseven
      By forwardseven
      Hi to those who care to read...just upgraded from the old platform pro to the new DMS, and unfortunately I haven't found the transition that exciting...iboxes that can't link, very limited image options, can't link the boxes/content; Media boxes that won't link, poor customization options, a selection of very limited sections has led me to purchase 3rd party extensions to bring the site to some kind of life...
      I was expecting an improvement in features from platform pro, not a downgrade. Sure construction is kinda a little easier (once you get your head around it) but being able to build a functional site straight out of the box is almost a waste of time... Perhaps I'm just missing something here but I would love to hear what else you guys think about DMS...?
    • digamama
      By digamama
      Hello everyone! 
       
      I'm having an issue with my website (here's the link...screenshot also attached). If you take a look you'll see that the top navigation (the item titled 'Advisory') has one item listed below it ('Case Studies'). That dropdown has additional pages under it, so it's Advisory --> Case Studies --> list of items. The problem is there's a huge vertical gap between the first dropdown option and submenu options. I hope I'm making sense...
       
      Can you please help me find the CSS selector to align the sub-drop down menu? 
       
      [attachment=1607:Screen shot 2013-10-02 at 10.41.25 AM.png]
×