Jump to content

Archived

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

elombard

Problem with translation via the pagelines-customize plug-in

Recommended Posts

elombard+    0
elombard

Hello,

 

After posting at the end of a thread that is more than a year old, I realized it did not bump up my question in the front page of the forum, so I've decided to post it as a new topic, which it is.

 

I did just as said in the following thread:

http://forum.pagelines.com/topic/16971-how-to-change-a-text-string-with-poedit/

 

- I installed the pagelines-customize plug-in, activated it, and created a language subfolder.

- I used Poedit to edit my fr_FR.po file and copied the output fr_FR.po and fr_FR.mo files to wp-content/plugins/pagelines-customize/language.

 

After that, my new translation (the hover text for the Flipper section) is not displayed. I tried refreshing the cache to no avail.

 

However, after I overwrote the original fr_FR.po and fr_FR.mo files with the modified ones in wp-content/themes/dms/language, it works right away. So you may wonder, why do I post a question?

 

Well, I had to change directly the DMS theme to make it work, while the customize plug-in remains useless, which means that I will lose my custom translation after the next DMS update which will overwrite files in wp-content/themes/dms.

 

Can you please help and fix the customize plug-in?

 

Best regards,

E.L.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

HI,

 

Use a child theme and see if this resolves your issue, you can use mine here - http://dannyholt.github.io/skeleton/

 

Just create a language folder and add your files. Also, make sure you have changed the language in your wp-config.php file.

  • Like 1

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
elombard+    0
elombard

Hello Danny,

 

Thanks, it worked. While the customize plug-in was not working to load the modified language file, the base child theme was able to load it, and I moved my CSS customizations there. This should protect them from further DMS style updates.

 

Regards,

E.L.

Share this post


Link to post
Share on other sites
elombard+    0
elombard

Oh wait, actually, I sent the post too quickly, as I just realized that switching to the child theme broke the display. It generates a mess on all webpages. I will have to rollback.

Share this post


Link to post
Share on other sites
elombard+    0
elombard

I found the cause. When switching to the child theme, the widgets of my custom sidebars mysteriously get modified. Their contents get shifted from one to the other.

 

To be clear:

- my theme primary sidebar gets the widgets of my custom sidebar #1

- my custom sidebar #1 gets the widgets of my custom sidebar #2

- my custom sidebar #2 gets the widgets of my custom sidebar #3

- my custom sidebar #3 gets the widgets of my theme primary sidebar

 

If I switch back to the main DMS theme, the widgets get back to their original location. Very strange. I could tediously manually set them back to their right place.

Share this post


Link to post
Share on other sites
elombard+    0
elombard

I also had to move my custom CSS code from the style.less to the style.css files of the child theme to make it work because apparently in the CSS generated by the less there was another definition of the .pl-section-pad style that took precedence over my custom one. Moving to the CSS file seems to have given priority to my definition.

 

I could finally make it everything work, but this was a lot of effort and disruption for my website just to protect my minor language customizations from further updates. It would have been simpler if the customization plug-in simply worked.

 

Thanks anyway. 

Share this post


Link to post
Share on other sites

  • Similar Content

    • DonRicardoRVM
      By DonRicardoRVM+
      ¿Where can  I translate the english items "Orders", "Adress", "Payment Methods". "Edit Account" and "Sing Out"of the my account page of the plugin Quickshop? In the po file they are not.
      I think that it have relation with this error: "Your theme version of my-account.php template', '2.6', 'the latest version, which supports multiple account pages and navigation, from WC 2.6.0".

      I use the Frame Work Pagelines´s Child theme for platform 5.

    • Claudio
      By Claudio+
      I have a problem with the typography settings. I set the H1 class with "font-weight: 300;" (Very thin weight), and "font-size: 50px;" (To have considerable evidence of my problem). Unfortunately, as you can see on the screenshots, those setting don't have any incidence on the site, Infact in the home page editor there is a trial title called "Text test", bold, and 26 px approximatly sized.
      Why the typography settings are not transposed on the site? Where I wrong?


    • reklov79
      By reklov79+
      Hi,
      Meganav seems to have a bug if you upload a Logo with a higher resolution (which actually is useful as it looks then sharper on mobile phones). But on mobile the Logo is then larger than on a desktop. Problem is the following code in the meganav style.css. Simply the "height: auto !important" needs to be removed.
      @media (max-width: 480px) { style.css?ver=5.0.14:133 body .meganav-logo img{ height: auto !important; } } But how to achieve that? What is the standard method for customizing that? Overriding via CSS / LESS doesn't work - in this case especially because of the !important derictive used in the original CSS I believe.
      Changing the original CSS is something I don't want to do as it leads into issues when upgrading.
      Btw: I seem not to be the only one with that issue - anyhow, the solution here (not displaying the Logo on mobile) is not acceptable for me.
      Thanks,
      Volker
       
    • fabienfons
      By fabienfons+
      Hi,
       
      I'd like to translate my website in french. (platform 5)
      How can i do ?
      Thanks
      Fabien
    • John Olsson
      By John Olsson+
      I have a problem with the regular textbox in pl5, in this case, the text goes in that container, but it will hide som of the text, as if the container itself won't fit?
      Is this some kind of bug or have I done something stupid, never happend before with pl5 doh, can I do something smart about it?
      Version: Version 5.0.108
      Look here: www.gastronova.co56.se

×