- This topic has 15 replies, 4 voices, and was last updated 8 years, 9 months ago by
Tom.
-
AuthorPosts
-
February 5, 2017 at 11:36 am #274707
Luca
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
February 5, 2017 at 1:50 pm #274764Leo
StaffCustomer SupportHi there,
I think this post should help: https://generatepress.com/forums/topic/update-translate/#post-261748
Let us know.
February 5, 2017 at 2:42 pm #274779Luca
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.
February 5, 2017 at 8:01 pm #274869Tom
Lead DeveloperLead DeveloperHi 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.
February 7, 2017 at 6:55 am #275521Luca
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_contentThanks
February 7, 2017 at 7:22 am #275529Luca
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.
February 7, 2017 at 11:15 am #275620Tom
Lead DeveloperLead DeveloperI agree, I’ve added a note to get this added into GP Premium 🙂
February 8, 2017 at 4:06 am #275940Luca
I think this should be the way to go:
https://wpml.org/documentation/theme-compatibility/go-global-program/
Cheers
February 8, 2017 at 10:02 am #276169Tom
Lead DeveloperLead DeveloperI agree – thanks! 🙂
June 19, 2017 at 3:44 pm #335891macbroadcast
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
June 19, 2017 at 11:51 pm #336023Tom
Lead DeveloperLead DeveloperI’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.
June 20, 2017 at 12:01 am #336031macbroadcast
Yes.that’s what I mean, so any idea how to translate?
June 20, 2017 at 2:35 am #336090macbroadcast
Well that was super easy with string translation 😀
June 20, 2017 at 9:00 am #336289Tom
Lead DeveloperLead DeveloperGot it working? 🙂
June 20, 2017 at 9:11 am #336303macbroadcast
Yes, simply searched with WPML string translation, translated and ready to go 😛
[url=https://anonimag.es/image/JT9sOxY][img]https://anonimag.es/i/20_06_2017__18_07_5833178.md.jpg[/img][/url]
-
AuthorPosts
- You must be logged in to reply to this topic.