multilingual form
-
Hey Jeff,
sorry to spam you with ‘issues’ ?? My site is in two languages (with the help of the WPML plugin), and I am now trying to translate the labels, button text and messages.
It is nice we can customize the labels in the settings, but if I understand correctly, this overrides your translatable strings in your code. So po/mo files can not be used for labels chosen in the settings other than the default ones, correct?
For instance, you have this in your code for the submit button:
__(‘Send Message’, ‘contact-form-x’);
I can create a translation for this in the po file, as long as it stays this default value. But I changed it. I am wondering if this could be dynamic in your code, like:
__($my chosen_button_text, ‘contact-form-x’);
Then I could translate any label text in the po file, right?
Thanks again ??
- The topic ‘multilingual form’ is closed to new replies.