Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress

hercules
hercules
7,861 Points

Problem translating buttons with the value attribute.

Hey guys,

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!

Best Regards,

Iraklis Pekkas

1 Answer

Andrew McCormick
Andrew McCormick
17,729 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/