• Resolved missveronica

    (@missveronicatv)


    Translations for the registration page are missing for me and English is displayed.

    1. When I change line 240 in plugins/wp-user-manager/includes/wpum-forms/class-wpum-form-registration.php to:

    ‘label’ => esc_html__($field->get_name()),

    I get the labels translated.

    2. The code line 290 is not translated because changes are made in the code but not updated in the source english language file.

    Language file:
    ‘I have read and accept the privacy policy and allow “%s” to collect and store the data I submit through this form.’

    PHP code:
    ‘I have read and accept the privacy policy and allow “%2$s” to collect and store the data I submit through this form.’

    WP User Manager Version 2.1.6

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Alessandro Tesoro

    (@alessandrotesoro)

    Hi @missveronicatv

    Thanks for reporting the issue, I’ll investigate it and release an update asap.

    Plugin Contributor Alessandro Tesoro

    (@alessandrotesoro)

    This has now been solved in version 2.0.7

    Thread Starter missveronica

    (@missveronicatv)

    No my point 1 is still open.
    I have to modify line 240 in plugins/wp-user-manager/includes/wpum-forms/class-wpum-form-registration.php to:

    ‘label’ => esc_html__($field->get_name()),

    where I have added esc_html__ to get
    Username, Email, Password and Description
    translated.

    WP User Manager Version 2.1.7

    Plugin Contributor Alessandro Tesoro

    (@alessandrotesoro)

    @missveronicatv

    That’s not the correct way to translate field’s names and/or descriptions.

    Field names, descriptions etc. Must only be changed via the field’s editor.

    Thread Starter missveronica

    (@missveronicatv)

    I have made translations of these English words in a local language file with the Loco plugin and the translations are not being used by WP User Manager without this fix.

    Clicking on the Translation option in WP User Manager will link to Loco translate plugin and these translations should not be used then?

    Thread Starter missveronica

    (@missveronicatv)

    Looking at this in more detail I have found that when using a local language file you still have to translate these fields.

    In the ‘Editing: “Primary fields”‘ screen in WPUM the field ‘Type’ is taken from the local language file but the ‘Field name’ is still English which is the label being displayed.

    Why not use the translations for both ‘Field name’ and ‘Type’?
    I have only to change ‘Field name’ content with your editor if I don’t like the translation.

    Plugin Contributor Alessandro Tesoro

    (@alessandrotesoro)

    Hi @missveronicatv

    The title and description of fields and fields groups are stored into your site’s database. Strings stored into the database should never be translated in the way you’re trying to translate them.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Translation errors registration form’ is closed to new replies.