Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP code in PHP code
#7
Zegnåt Wrote:
Code:
<?php echo __(return_page_title()); ?>
return_page_title() gives you the page title as a string. Your __() function wants a string to translate. So the above code should be what you’re looking for.

@yojoe Thank you! Also thank you @Zegnåt

works perfectly;

Code:
<?php echo __(return_page_title()); ?>
Reply


Messages In This Thread
PHP code in PHP code - by Johonwayni - 2010-10-06, 23:50:22
PHP code in PHP code - by Zegnåt - 2010-10-07, 00:54:11
PHP code in PHP code - by Johonwayni - 2010-10-07, 03:47:27
PHP code in PHP code - by yojoe - 2010-10-07, 04:26:19
PHP code in PHP code - by Johonwayni - 2010-10-07, 04:56:21
PHP code in PHP code - by Zegnåt - 2010-10-07, 05:46:08
PHP code in PHP code - by Johonwayni - 2010-10-07, 06:55:48
PHP code in PHP code - by Johonwayni - 2010-10-07, 08:29:15
PHP code in PHP code - by Zegnåt - 2010-10-07, 16:42:26
PHP code in PHP code - by Johonwayni - 2010-10-07, 18:22:42



Users browsing this thread: 1 Guest(s)