Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Problem translating buttons with the value attribute.
I face an issue translating a wordpress site using the Transposh plugin. Particularly I can’t translate properly the contact form that I am using at one of my client’s website. (url http://www.coho.gr/home/en/%CE%B5%CF%80%CE%B9%CE%BA%CE%BF%CE%B9%CE%BD%CF%89%CE%BD%CE%B7%CF%83%CF%84%CE%B5/ ) The red button under the contact form should be translated into “Submit” but although I have tried numerous times to change it nothing happened. After contacting with the plugin athor he replied with this message
“Buttons with the value attribute can't be translated as this attribute might be used in the processing of the form, If you wish to translate it, you may either use gettext or the transposh_echo() function inside your code,”
So how can I fix this problem as I am not so familiar with php and gettext ?
Thank you very much guys!!
Have a nice day!
Andrew McCormick17,730 Points
unfortunately I don't have any translation experience, but here is the official word from WordPress on using gettext() : http://make.wordpress.org/polyglots/handbook/tools/gettext/