WordPress.org

Ready to get started?Download WordPress

Forums

Cimy User Extra Fields
[resolved] [BUG] Not localizing native WP field labels (and fix propouse) (6 posts)

  1. leogermani
    Member
    Posted 1 year ago #

    Hi,

    Im using cimy extra fields in Brazilian Portuguese.

    When I choose to display the First and last name fields on the registration page, they would appear in english for the user.

    Looking at the code, I found that on line 888 of cimy_uef_register.php you would print the label whithout any localization function:

    $obj_label = '<label for="'.$unique_id.'">'.cimy_uef_sanitize_content($label).'</label>';

    I changed that to:

    $obj_label = '<label for="'.$unique_id.'">'.__(cimy_uef_sanitize_content($label), $cimy_uef_domain).'</label>';

    and it worked fine.

    Its not a definitive fix, it worked for me. I hope you can have a look on that.

    cheers

    Leo,,

    http://wordpress.org/extend/plugins/cimy-user-extra-fields/

  2. Marco Cimmino
    Member
    Plugin Author

    Posted 11 months ago #

    Most probably by the time you added the hidden field you still did not have your WordPress installation in Brazilian Portuguese otherwise they would have came up translated right away.

    But despite that, without changing any code, you could have changed the label from the plug-in's admin pages.
    Was that difficult to find?

  3. leogermani
    Member
    Posted 11 months ago #

    hmmm now I see. Yes, It was a bit confusing, but its ok now.

    My installation was already runnin brazilian portuguese and the core wordpress fields all appear in english.

  4. Marco Cimmino
    Member
    Plugin Author

    Posted 11 months ago #

    My installation was already runnin brazilian portuguese and the core wordpress fields all appear in english.

    This phrase is contradictory.
    Anyway the point is, if you see all the WordPress strings translated when you add "hidden" WordPress fields, then labels will be also translated automatically.

    If not then you can change it later.

  5. Erling
    Member
    Posted 11 months ago #

    Hi Leogermani
    I'm sorry to try this way to get in touch with you. It's concerning your excellent plugin "WP users exporter" - I'm so sad that it is not compatible with WP 3.5 - do you know if an upgrade will come?

  6. Marco Cimmino
    Member
    Plugin Author

    Posted 11 months ago #

    Hi Leogermani
    I'm sorry to try this way to get in touch with you. It's concerning your excellent plugin "WP users exporter" - I'm so sad that it is not compatible with WP 3.5 - do you know if an upgrade will come?

    I am not the author of "WP users exporter" and you're totally off topic here.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.