Home Forums General Issues Make PO files from ACF Settings


Make PO files from ACF Settings

  • I have export my ACF settings and add them into the snup.php for a plugin I make.

    The top of the settings is like this:

    if( function_exists(‘acf_add_local_field_group’) ):

    ‘key’ => ‘group_61fe7b4e4a219’,
    ‘title’ => ‘Show next upcoming post’,
    ‘fields’ => array(
    ‘key’ => ‘field_61fe7b7a6fa6e’,
    ‘label’ => ‘Please type the teaser for the post’,
    ‘name’ => ‘SNUP-text’,
    ‘type’ => ‘textarea’,
    ‘instructions’ => ‘Max 100 characters’,

    There is many more lines in the php code, but this explain the issue I need some help for.
    How can I edit something in this code to get the lines ‘Please type the teaser for the post’ and the ‘Max 100 characters’ into something that I can use in a PO language file in POedit ?

    I try to make a languagefile with some lines in english and norwegian.
    Something about if the WP installations is english then the ‘Please type….’ is in english or if the WP installation is in norwegian the text would be ‘Vennlist skriv….’

    I would include the PO language files into the plugin so the user who download my plugin not need to have Polylang installed.

    There is these two lines in the file snup.php and two lines in widget.php.
    I try to understand something with Localization… But I can`t figure out how to make the text from ‘label’ and ‘instructions’ into something.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.