Jump to content
mrhinsh

Pagelines & WPML

Recommended Posts

mrhinsh

I am trying to get WPML working on my Pagelines instance. I am interested in getting help from anyone that has tried, especially @claudedagenais who seams to have it working.

My issues are:

  1. How to translate header and footer
  2. How to get the menu to show all nav even if not translated
  3. How to get non-translated posts /pages to show up when only in default language - true for Masonry, Newsfront, and other list showing items...

I have zero skills in PHP and its my site for my company. 

note: Multi-lingual is a business decision and is required. I have vetted all of the multi-lingual options and the only one fit for purpose is WPML. 

Share this post


Link to post
Share on other sites
Andrew

All strings should be translation ready, although I personally haven't implemented WPML. What are you struggling with?

Share this post


Link to post
Share on other sites
mrhinsh

The footer and header's don't translate as they are site specific. Since WPML creates a "Page" and a "Page-es" and a "Page-cn" they all have the same header and footer.

Share this post


Link to post
Share on other sites
claudedagenais

Hi,

Yes, I have WPML working on several sites. The only real problem I have with one site (https://suttontourism.ca/) is that if you use WPML with different domain name (per language) then you won’t be able to connect to the Pagelines editor in the alternate languages. You will have to revert to using subdirectories when wanting to edit and revert back to different domains after you are done.

1- For the header & footer I use WPML Shortcodes to have translatable strings (text or html or whatever). Here is an example to have two different images per language.

[wpml_if lang='en']<img src="pic-en.jpg">[/wpml_if][wpml_if lang=’fr’]<img src="pic-fr.jpg">[/wpml_if]

You could use it for anything. Just add an embed section and put WPML Shortcodes to work in it. It works great and is relatively simple to use.

2- I’ve never tried to do this. If I would have to, I would probably use personalized links.

3- I never did that, but I guess if I would have to do it, I would simply duplicate the initial post in the other language (and probably add a note to say that it is not available in this language). There is an option in WPML to do that.

I also have sites working with Multilingual Press, this is even simpler to use and the sites are faster but we are having a discussion currently about the registration of Pagelines in Wordpress network installations needed for that solution.

Feel free to write me if I can help.

Share this post


Link to post
Share on other sites
mrhinsh

Thanks I really appreciate your input on this.

For #3 I want to use the WPML behaviour where it shows the default language when a translation is not available. I have over 700 technical blog posts and would not ever be translating them all. However my industry is predominantly in English regardless of the local language.

ill be translating all of my marketing content, and perhaps a few choice posts, but the rest will be in English.

WPML has an option to do this and it affects the default post loop behaviour in Wordpress, but Pagelines lists remain blank.

Do you have any idea how I might get this to work?

Another question is if I create an "es" Lang to translate into Spanish, and then add both "es-MS" and "es-ES" will it fall back to "es" for both so I don't need to translate them all...

 

 

Share this post


Link to post
Share on other sites
claudedagenais

For #3 even if there are many the only way I see this working would be to use the option to duplicate the post in the other language. It is not perfect and probably a pain to achieve but other then doing PHP (or getting Pagelines to change their code) I don't know of any other option. 

In my case we have fr_FR and fr_CA and they both work as one in WPML.

Share this post


Link to post
Share on other sites
mrhinsh
19 minutes ago, claudedagenais said:

 

In my case we have fr_FR and fr_CA and they both work as one in WPML.

Do you have a link to the documentation on how this works? I could not find anything...

Share this post


Link to post
Share on other sites
claudedagenais

Nope, it just did and I never thought about it. I selected the language as EN en FR that is it. 

Share this post


Link to post
Share on other sites
mrhinsh
1 minute ago, claudedagenais said:

Nope, it just did and I never thought about it. I selected the language as EN en FR that is it. 

OK so you set the display as "fr-FR" and the language code as "fr"... for both.. I will try that...

You have been a very big help here!

 

Share this post


Link to post
Share on other sites
claudedagenais

Something like that. I don't think that the display language fr_FR or fr_CA is important. But you do set just FR & EN for the languages in WPML. I don't think it offers the option to be more precise than that.

Share this post


Link to post
Share on other sites
Andrew

Im curious, you can't connect to the PageLines editor if you're using another language? can you give me more details about that? maybe its a quick fix.

Share this post


Link to post
Share on other sites
claudedagenais

Thank you Andrew, I already had this conversation with Simon and I do think that his answers were spot on : it can't be done because we are not logged in the other language.

 

Share this post


Link to post
Share on other sites
Andrew

right, well, maybe i can figure a way. You can't connect your site in French? To PageLines.com? 

Share this post


Link to post
Share on other sites
claudedagenais

Well, I'll be darn! I now can log in either language and change the site in that language. 

I just can't change to the other language while editing because I'm not logged in the other language. When I do it is as if I'm not logged in.

Anyhow this work for us. The rest of the team was watching me do it and they were very happy - on a St-Patrick Friday afternoon! I see drinking in our future!

You can see it working at :

French : https://tourismesutton.ca/

English : https://suttontourism.ca/

Thanks.

Share this post


Link to post
Share on other sites
Andrew

Glad your happy man! Happy St Patricks day!

  • Like 1

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

    • JP
      By JP+
      Hello,
      We are working on a 2 languages site (https://liguecardioliga.be) with wpml, and lately the call of a category in the loops section (and all the sections requiring a category to select posts) doesn't work in the translated language. It worked well until recently so I wonder if it's because of a recent update (wordpress, wpml, pagelines, a plugin?). Anyone has the same problem? a solution?
      TIA
    • JP
      By JP+
      Hello,
      How can you set the translations with platform5, the parts that are not in pages or posts? Texts and images…
    • John Olsson
      By John Olsson+
      What's the best way to have multilingual in pl5, any plugin that stands out from the rest and is logical for the pl5-workflow?
    • claudedagenais
      By claudedagenais+
      Hello, we have this strange new problem with DMS2 when used with WPML. We can save our change to the section only in the main language. When trying to edit DMS sections in the other languages DMS won't let us save. The work around is to change the main language in WPML to the language you want to change and switch back afterward to the language you really want to be the main one.
      This is a new problem that did not exist before a few days ago. We are unsure if it is linked to the Wordpress 4.4 update, the WPML 3.3.3 Update or the DMS 2.2.1.1 update (!) that we did recently. We tried unsuccessfully deactivating everything (except WPML of course) including our child theme in a test environment. We can't turn off the DMS editor either from the other language pages. Some of the websites we are having this problem with are  http://www.artssutton.com/ , http://journalletour.com/, ...
      Tx
    • Ellery
      By Ellery
      I am using pageline (v2.2.1.1) and WPML (3.3.3). WP 4.3.1
      Here is the problem: when I set the language to be a path like this:
      http://localhost/pageline/zh-hant
      all [pl_site_url] will become above, which means, if you are using images in textbox, or pageheader, the full URL would become
      http://localhost/pageline/zh-hant/wp-content/upload......
      which is wrong.
      Furthermore, if the site requires AJAX, the calling URL becomes:
      http://localhost/pageline/zh-hant/wp-admin/admin-ajax.php
      which is also wrong.
      Now you may want me to use ?lang=zh-hant instead of using /zh-hant/, but it would become
      http://localhost/pageline/?lang=zh-hant/wp-admin/admin-ajax.php
      which is also wrong.
      Can you please tell me how to fix it?
      Thank you very much in advance for your help.
×