Change mandatory wordpress field messages

Asked

Viewed 154 times

0

Good evening, I want to exchange the translation of these messages that appear when the field has not been filled in, does anyone know how to change? I am using wordpress, already tried to do a search for some file that would be this, but I could not find.

Thank you

inserir a descrição da imagem aqui

  • Hello @Diogo, are you using any plugin specific to your contact form? Or is the form default to theme you are using? Depending on the answer, the form of translation may change.

  • Good afternoon! I am using the standard and Woocommerce Extra Checkout Fields for Brazil, so I could put CPF, RG and select legal and physical person at the time of registration. If you can help me, I really appreciate it, I’m having a hard time with it. Thanks

1 answer

1

This plugin already has full translation into English, you may only need to update the plugin or translation file - through the wp-admin even, in Painel -> Atualizações, at the bottom of this page are listed the translations for update.


Anyway, if it still doesn’t work, or the update is not listed, you can generate the translation file manually, you should use the program poedit.

Using the program select the option of Criar uma nova tradução. Then open the file .pot in wp-content/plugins/woocommerce-extra-checkout-fields-for-brazil/languages.

For each row of the file, you must fill in the translation as you wish. Then just "save the file" in the same directory with the name of woocommerce-extra-checkout-fields-for-brazil-pt_BR.po. Automatically, a file with the extension will also be generated .mo. With this the messages should be translated.


This is a pattern that is followed by several plugins and themes. When the files are not in the same plugin/theme directory, it may be in: wp-content/languages/plugins ou themes.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.