Archived topic
Blog header and WPML
15 replies · Started by Luca on February 5, 2017
Hi Tom,
I am implementing multilanguage on a GP (Premium) based site.
For the blog page, the header options are no longer controlled from within the page itself but from the customizer.
How would I go about translating the content of that?
Thanks
Hi there,
I think this post should help: https://generatepress.com/forums/topic/update-translate/#post-261748
Let us know.
Hi Leo,
Sorry, maybe I was not clear. I am not looking at how to translate GeneratePress itself but rather how to deal with the translation of the content for the page header specifically for the blog page as that - unlinke a normal page - is managed via the Customizer, not via the page options.
Hi there,
You can create a language configuration file: https://wpml.org/documentation/support/language-configuration-files/
Which options exactly are you wanting to control? I'll write up a quick example for you.
Hi Tom,
First of all, great work with GeneratePress, I really like it.
In my specific case, what I need to control the "read more" text and the blog header options.
For static pages this is not a problem as you can control the header options from within the metabox in the page backend. But for the blog header you switched that option to the Customizer.
What I need to customize is:
- generate_blog_settings
-- read_more
- generate_page_header_options
-- page_header_content
Thanks
Hey Tom,
In the meantime, I found out that it is possible to generate the required file also from within WPML interface (there is a small link at the bottom of the "string translation" page to do that) so this is solved.
However, I would suggest that maybe you include the WPML config file by default in future versions of GeneratePress to ensure out-of-the-box compatibility.
I agree, I've added a note to get this added into GP Premium :)
I think this should be the way to go:
https://wpml.org/documentation/theme-compatibility/go-global-program/
Cheers
I agree - thanks! :)
Hello there,
I have the same problem, the site is already translated, I just get stuck with the header, these are just 2 simple lines, headline and site description, I can't believe that I need to create a language configuration file for this simple task. Any other idea ?
Thanks
I'm not too sure what you mean? The site title and tagline set in Customize > Site Identity? Those are handled by WordPress itself and just displayed by GP.
Yes.that's what I mean, so any idea how to translate?
Well that was super easy with string translation :D
Got it working? :)
Yes, simply searched with WPML string translation, translated and ready to go :P
[url=https://anonimag.es/image/JT9sOxY][img]https://anonimag.es/i/20_06_2017__18_07_5833178.md.jpg[/img][/url]