• Resolved leemon

    (@leemon)


    There are some strings in your source code that use a wrong text domain. For example, in lines 99 and 100 in the class-settings.php file, you can see the strings using the foobox text domain instead of the correct foobox-image-lightbox:

    $settings[] = array(
        'id'      => 'hide_caption',
        'title'   => __( 'Hide Captions', 'foobox' ),
        'desc'    => __( 'Whether or not to hide captions for images.', 'foobox' ),
        'type'    => 'checkbox',
        'section' => 'settings',
        'tab'     => 'general'
    );

    This means that those strings are not translated even though a translation exists in the language pack.

    Can you fix this, please?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter leemon

    (@leemon)

    In addition to that, there are other strings in the source code that use the var $plugin_slug instead of the foobox-image-lightbox string for the text domain and they are not translated either even though a translation exists:

    <input name="<?php echo $plugin_slug; ?>[reset-defaults]"
       onclick="return confirm('<?php _e( 'Are you sure you want to restore all settings back to their default values?', $plugin_slug ); ?>');"
       class="button-secondary" type="submit"
       value="<?php _e( 'Restore Defaults', $plugin_slug ); ?>"/>

    The code above can be found in the /free/includes/foopluginbase/views/settings.php file.

    Thread Starter leemon

    (@leemon)

    Apparently, the $plugin_slug var has foobox-free as a value, instead of foobox-image-lightbox, which is the correct value.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wrong text domains’ is closed to new replies.