Celebrating 7 Years! Get up to $30 off GeneratePress Premium!

[Support request] Translation with wp-multilang

Home Forums Support [Support request] Translation with wp-multilang

Home Forums Support Translation with wp-multilang

  • This topic has 3 replies, 2 voices, and was last updated 3 years ago by Tom.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #555469
    Dominique Vucko

    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

    GeneratePress 2.0.2
    GP Premium 1.6.2
    #555875
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    GP Premium has that file built into the plugin.

    Are you trying to translate specific fields?

    #575019
    Dominique Vucko

    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

    #575331
    Tom
    Lead Developer
    Lead Developer

    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>
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.