Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   Comments title (http://forum.bytesforall.com/showthread.php?t=18910)

migdu Nov 15, 2012 09:59 AM

Comments title
 
hello all.

Congrats on the great Montezuma theme!

I've managed to translate most of the theme to my language (pt). Only thing missing is the one i can change directly in the Montezuma options - Comments Title. I've replaced the english text with my own and nothing changes on the live website. Any help appreciated.

thanks in advance.

juggledad Nov 15, 2012 07:30 PM

try this, edit the file 'montezuma/includes/template_tags.php' and change line 8 from
HTML Code:

        printf( _n( 'One comment on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'montezuma' ),
to
HTML Code:

        printf( _e( 'One comment on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'montezuma' ),
you are changing the 'printf( _n(...' to an 'printf( _e(....'

migdu Nov 16, 2012 02:08 AM

Thanks for the help juggledad.

I've just translated the text within the brackets directly and now it works fine. It seems the comment title text is hardcoded in that 'montezuma/includes/template_tags.php' instead of getting the value from the Montezuma options comments title edit.

Thanks again.


All times are GMT -6. The time now is 04:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.