WPML Translate "Register now" button

Best WordPress theme for festivals or other events with responsive, clean and unique design.
GK User
Mon Jul 28, 2014 1:36 pm
Hi there!

I installed WPML and I wonder how to translate the "Register now" string.

It is not detected by WPML as a string to translate.

My webpage: mallorcatangofestival.es

Thanks
User avatar
Fresh Boarder

GK User
Tue Jul 29, 2014 12:09 pm
Hello,

Please try to scan the theme again. If it don't help, please open file layouts/header.php and please change fragment:

Code: Select all
<?php _e('Register Now', GKTPLNAME); ?>


to:

Code: Select all
<?php echo __('Register Now', GKTPLNAME); ?>


then please scan the theme again.
User avatar
Administrator

GK User
Wed Jul 30, 2014 3:05 pm
Thanks, that works!

But now I get another problem...

The "Register now" link is still redirecting to the main language link.

It is possible to chenge the link aswell?

Thanks
User avatar
Fresh Boarder

GK User
Thu Jul 31, 2014 9:54 am
The only idea which I have is adding in the wpml-config.xml file the following line:

Code: Select all
<key name="fest_register_link" />


Then in your theme language to translate will appear the register link phrase and you will be able to assign two different links depending from the language :)
User avatar
Administrator

GK User
Thu Jul 31, 2014 7:22 pm
Perfect that works!

Many thanks you master piece!!!

:-)
User avatar
Fresh Boarder


cron