Jump to content


Photo
- - - - -
Open

Workaround: Translating PL Framework with Polylang



  • Please log in to reply
1 reply to this topic

#1 janpeeters

janpeeters

    Advocate

  • Members

  • 304 posts
  • LocationBreda, The Netherlands
  • Country: Country Flag

Posted 12 October 2012 - 10:04 AM

Hi,

I've been searching and posting around to get Polylang (a relatively new kid on the block when it comes to translation) to work with Framework. I wanted this because WPML is a paid solution nowadays and because I think its good if WPML gets some competitors. Well Polylang is not yet at that stage, but I got a full translation of Framework with it.

At first the blog title and tagline didn't translate nor user definable strings like 'Continue Reading…' and the 'Posted on [date] by [author]' Metabar, but after some communication with Chouy (his name on WP forums) the Polylang dev fixed this as follows.

At the moment you can translate Framework by installing the latest Polylang build 0.9.3.1.

Then you create a php file with the following code:
The code pulls the Metabar and Continue Reading strings from Pagelines settings so that you can translate them manually

Please Login or Register to see this Hidden Content


You can also find it here:

Please Login or Register to see this Hidden Content



And you save the file e.g. with name polylang_plframework.php in your WP plugin folder and activate it.

This creates two new strings up in the Strings Translation page in Polylang for the 'metabar' and the 'continue reading' string.
Translate the strings to your liking and you are all set.

Of course this is a workaround. In another thread I'm trying to find out how Pagelines Framework works with WPML so that the Polylang dev can update his plugin to fully (without workarounds) support Framework. Until this is clear, the workaround above is a quick fix.

Please Login or Register to see this Hidden Content



You can see the proper translation at work at my site:

Please Login or Register to see this Hidden Content



Good luck,

Jan

#2 Rob

Rob

    One Smart Egg

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

Posted 12 October 2012 - 09:18 PM

Thank you Jan. It was very kind of you to share this.