New Front EN › Support Forums › Kanso Theme Support › custom form
- This topic has 2 replies, 2 voices, and was last updated 9 years, 6 months ago by
parklane05.
-
AuthorPosts
-
March 31, 2014 at 6:14 pm #2862
parklane05
Participanthey andrii,
thanks a lot for your previous help.
we have a custom form on our page and although we can change the text of the boxes we want to change the language of the whole form. “send message” “message sent” “field xy is required” all these buttons and messages always display in english.is there a way we can change it to german?
regards,
sebastianApril 1, 2014 at 5:27 am #2867satori
KeymasterHey Sebastian,
all text strings in Kanso have been wrapped in proper WordPress functions, thus they can be translated with any internationalization plugin. In case you are making your website in German only (i.e. no multilingual support is required), I would suggest using the Quick Localization plugin.
Once you install the plugin, you can see that if allows adding sets of fields, where “Old” is the existing string (please note that the strings in WordPress are case-sensitive!), “New” is the new desired string, and “Domain” should say “satori” (without quotations marks) for each new set of fields.
If you are familiar with coding, another (cruder, yet simpler) option would be to just edit the file that generates the strings – it should be located in /wp-content/plugins/contact-form/grunion-contact-form.php). All translatable strings are wrapped in the translation functions “__()” and “_e()” as detailed here.
In case of difficulties with any of the methods do not hesitate to contact me!
Best,
Andrii / Satori StudioApril 4, 2014 at 2:06 pm #2889parklane05
Participantawesome.
i chose the second option and looked for __e() strings in the .php file.
worked fine!thanks a lot!!
-
AuthorPosts
- You must be logged in to reply to this topic.