- This topic has 15 replies, 4 voices, and was last updated 3 years, 1 month ago by Tom.
February 5, 2017 at 11:36 am #274707lsitlabs
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?
ThanksGeneratePress 1.3.44GP Premium 1.2.94February 5, 2017 at 1:50 pm #274764LeoStaffCustomer Support
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 #274779lsitlabs
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 #274869TomLead DeveloperLead Developer
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 #275521lsitlabs
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:
ThanksFebruary 7, 2017 at 7:22 am #275529lsitlabs
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 #275620TomLead DeveloperLead DeveloperFebruary 8, 2017 at 4:06 am #275940lsitlabs
I think this should be the way to go:
CheersFebruary 8, 2017 at 10:02 am #276169TomLead DeveloperLead DeveloperJune 19, 2017 at 3:44 pm #335891macbroadcast
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 ?
ThanksJune 19, 2017 at 11:51 pm #336023TomLead DeveloperLead Developer
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.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 #336289TomLead DeveloperLead DeveloperJune 20, 2017 at 9:11 am #336303
- You must be logged in to reply to this topic.