acf-options-for-polylang icon indicating copy to clipboard operation
acf-options-for-polylang copied to clipboard

Unclear how to add other languages to option page

Open stefthoen opened this issue 4 years ago • 2 comments

Version information

  • Plugin version : 1.1.7
  • PHP : latest
  • WordPress : 5.4.1
  • ACF version : 5.8.11
  • Polylang version : 2.7.3

Steps to reproduce

  1. Have an option page with default values, ready to be translated.

What was expected

I don't understand how this plugin is supposed to work. Once activated I go to my options page, but I don't see any way to select another language. There's nothing there. The README mentions: "Once this plugin is activated, you will be able to set a different value for each language, and if none is set, the “All languages” value will be used as default one." I don't see where I'm able to set 'a different value for each language'. What am I missing?

In the screenshot I see that the Publish box has a message that's set by this plugin, but I don't see any way to add another language. image

On the README page you also mention this: "Then to set and contribute your option page, simply use the Polylang's language admin flags ui." I really tried to understand what this means, but I just don't. :) What do you mean by 'contribute'? What is the Polylang's language admin flags ui?

What happened instead

The content that was stored in the options page, wasn't shown on the front-end. Didn't matter which language I would select. I would expect that the default values of my options page would be shown, but that didn't happen. Also, since I wasn't able to add any other languages, I didn't see the values for the other languages I would like to add.

The only 'strange' thing about my setup is that I'm using Timber and that I named my options page differently. Don't expect that to have anything to do with it, but I might as well name it.

stefthoen avatar Jun 19 '20 10:06 stefthoen

Hi,

The same way you do with all other contents with Polylang, which is selecting the language in the admin. 85121892_f1e3e580_b225_11ea_8d91_3e3b53d0472e_png_948×940_

MaximeCulea avatar Jun 19 '20 11:06 MaximeCulea

Totally my bad. I didn't know about that language switcher and translated posts and pages in another way.

I'm wondering though, shouldn't I have seen the content that was entered in Show all languages when I'd select a language on the front-end? Right now it shows nothing if I haven't entered something for that language specifically.

stefthoen avatar Jun 19 '20 15:06 stefthoen