WordPress.org

Ready to get started?Download WordPress

Forums

WP-Members
How to change the $arr[X] value (3 posts)

  1. Sikth
    Member
    Posted 1 year ago #

    Hi!
    This maybe a dumb question but I'm not professional at this :)

    But i tracked down some words to translate, its for example "New password" and i found this in wp-members-dialogs.php as a $arr[x], and when i delete this and replace it also change the word "Username" in the login form.

    I understand that the differens is in the number inside the [ ] but where is the actual word "New password" that i can change? And the word "Username"?

    Thanks!

    http://wordpress.org/extend/plugins/wp-members/

  2. Chad Butler
    Member
    Plugin Author

    Posted 1 year ago #

    That's actually not how you translate a plugin. The plugin is localized with gettext, so if you are adding to the translation of a language that is already there, you need to update the .po file and use that to generate a .mo file.

    More info on localization:
    http://codex.wordpress.org/I18n_for_WordPress_Developers#I18n_for_theme_and_plugin_developers

    More info on localization as it pertains to WP-Members:
    http://butlerblog.com/wp-members/wp-members-translations/
    http://butlerblog.com/2011/07/13/forcing-translated-field-names-when-using-translation-files-with-wp-members/

  3. Sikth
    Member
    Posted 1 year ago #

    Yeah i know :)
    I can work around this problem if I just could remove the login form from blocked pages. The registration form can i remove just by clicking a check box in the settings, but the login form is harder.
    I dont have to do all this I could remove it instead.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.