• Hi,

    I am a bit of a wordpress beginner. I am using a plugin “ny-subscribe” to have a subscribe button for the users on my page. I have set up polylang to translate most of the strings but it doesnt translate the “subscribe” text posted to the page.

    I did some fishing around in the php files in the plugin and found that the strings are stored in a file called ny-subscribe-functions.php and it looks like:

    $admin_fields = array(
    array(
    'slug' => 'ny_subscribe_field_form_heading',
    'type' => 'text',
    'label' => __('Form Heading'),
    'val' => __('Subscribe')
    ),
    array(
    'slug' => 'ny_subscribe_field_label',
    'type' => 'text',
    'label' => __('Submit Button text'),
    'val' => __('Subscribe')
    ),
    )

    I have no idea how to add these strings to the polylang list. I tried using the pll_register_string inside of these php functions but it says that the function doesnt exist.

    would appreciate any help.

    http://wordpress.org/extend/plugins/polylang/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Polylang] Translating text from a plugin’ is closed to new replies.