Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear how to add other languages to option page #58

Open
stefthoen opened this issue Jun 19, 2020 · 2 comments
Open

Unclear how to add other languages to option page #58

stefthoen opened this issue Jun 19, 2020 · 2 comments

Comments

@stefthoen
Copy link

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.

@MaximeCulea
Copy link
Contributor

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_

@stefthoen
Copy link
Author

stefthoen commented Jun 19, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants