Support

Account

Forum Replies Created

  • I managed to perfectly translate the AFC fields just bij reading the documentation on string translation
    https://polylang.wordpress.com/documentation/documentation-for-developers/functions-reference/
    So no difficult integration between polylang and ACF.

    I just added pll_register_string to my functions.php.
    This adds the sting inside the function very nicely to the list of translatable words in the admin section of polylang to translate in all available languages.
    Then just add the pll__ en pll_e function with the respective sting in the code where ever you need a translated string.
    Works like a charm.

    e.g.
    functions.php

    function polylang_translate()
    {
        pll_register_string('back', 'back','General');
    }
    add_action( 'init', 'polylang_translate' );

    Translate the string ‘back’ in the backend of WP under the category General.

    index.php
    pll_e( 'back' );

    For more info read the polylang doc.

    happy translating

  • This reply has been marked as private.
  • Hi James

    I am glad to hear that it is possible.
    My question is how to get the Translate field groups option in admin.
    Do you know of an (code) example somewhere?
    Or someone that I could contact who has achieved a merge?

    thx Inigo

Viewing 3 posts - 1 through 3 (of 3 total)