• Resolved Rainer R.

    (@rainer-r)


    Hello,
    I want to translate the textfield name -> “First” – Vorname -> “Last” – Nachname
    How can I do it?
    Regards
    Rainer

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support brandonco

    (@brandonco)

    Hi @rainer-r

    Thanks for your question! To translate field names in weForms from English to German, you can follow these steps:

    1. Locate the Form: First, navigate to the form you are working on within your WordPress dashboard where weForms is installed.
    2. Edit Form Fields: In the form editor, click on the field you wish to translate (e.g., the “First” field). In the field options, you should see a label setting where it currently says “First”. Change this to “Vorname”.
    3. Repeat for Other Fields: Follow the same steps for the “Last” field, changing it to “Nachname”.
    4. Save Changes: After making the changes, ensure you save the form to apply the translations.

    These steps will update the labels within the form to your desired German equivalents. If you need further customization or integration with a multilingual plugin for a more dynamic solution, please let us know!

    Thread Starter Rainer R.

    (@rainer-r)

    Thank you for the quick reply.
    But: I go to forms -> edit my form -> field option -> doesnt find “First” and “Last” to change.
    https://film-kueche.com/wp-content/uploads/2024-05-10_contact-form-first-last.png
    Perhaps I′m stupid, but I doesnt find the label setting to change.
    Sorry, need your help again.
    Rainer

    Plugin Support brandonco

    (@brandonco)

    Hi Rainer,

    I just realized you’re speaking of the sub labels and not the labels themselves. I tried changing this on my end and to my surprise there is no easy way to do this.

    I’ve put in a new feature request to hopefully have this functionality implemented into weForms in a future plugin update.

    In the meantime you can choose the option to “Hide Sub Labels” and replace the name fields with placeholder text for first and last name.

    https://snipboard.io/iCWOyJ.jpg

    If you’re comfortable with code you can also try adding this snippet to your themes functions.php file or a code snippets plugin and it may work for you as well.

    function weforms_change_strings( $translations, $text, $domain ) {
    	if ( 'weforms' === $domain ) {
    		if ( 'First' === $text ) {
    			return 'custom first';
    		}
    		if ( 'Last' === $text ) {
    			return 'custom last';
    		}
        
    	}
    	return $translations;
    }
    add_filter( 'gettext', 'weforms_change_strings', 10, 3 );
    

    I really hope this helps! Please let us know if we can answer anything else for you.

    Thread Starter Rainer R.

    (@rainer-r)

    Thank you for your quick and detailed information.
    I′ll discuss it with my customer to hide the sub label.
    I think it′s important to implemented the feature in a future update.
    Rainer

    Plugin Support brandonco

    (@brandonco)

    Thanks @rainer-r,

    I agree I think this feature makes a lot of sense. You can refer back to this thread or the GitHub ticket at any time for updates in the feature request.

    Please let us know if you have any other questions or concerns for us to review we’re always here to help!.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Want to change/translate “First” and “Last” – field name’ is closed to new replies.