Site logo

Archived topic

Translation with wp-multilang

3 replies · Started by Dominique on April 20, 2018

Viewing posts 1–4 of 4

Hi,
I would like to create a json file (named wpm-config.json) to make a child theme generatepress compatible with the wp-multilang extension and allow it to translate characters strings in the frontend.
As indicated here: https://wordpress.org/plugins/wp-multilang/
But I don't know which specifics tags to use. Do you have an idea how to proceed or any advice?
Greetings
Dominik

Hi there,

GP Premium has that file built into the plugin.

Are you trying to translate specific fields?

Hello,
First, sorry to respond late.
I'm looking to translate fields like copyright or elements of the header or footer, for example.
The wpm-config.json file should look something like this:

{
  "generate_hooks":{
	"generate_wp_head": {},	
	"generate_wp_footer": {}
	},
  "theme_mods_generatepress":{
	"generate_copyright": {}
	},
  "generate_blog_settings":{
	"read_more": {}
	}
}

But I do not find the right syntax.
Thank you.
Dominik

Our wpml-config file was generated by WPML themselves. Has the syntax changed lately?

Here's a excerpt from our file:

<wpml-config>
  <admin-texts>
    <key name="theme_mods_generatepress">
      <key name="generate_copyright"/>
    </key>
  </admin-texts>
</wpml-config>
This archived topic is closed to new replies.