Please login or register.

Login with username, password and session length
Advanced search  


You need/want an older version of sNews ? Download an older/unsupported version here.

Author Topic: PATCH - Missing language variable in snews.php  (Read 3936 times)


  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6020
  • Semantically Challenged
PATCH - Missing language variable in snews.php
« on: January 26, 2011, 07:29:15 pm »

As reported in "No translation in output", the 'Comments" text-line at the bottom of articles was hard-coded in the snews.php file instead of using the variable to insert the value for it from the EN.php language file.

This is a really simple patch, but you will want to make it if you are using other language files, so the proper language value will show.

Search in your snews.php file for echo '<h3>Comments</h3>'; which is located just after the start line of the function - function comment($freeze_status) { When you find it, replace it with - echo '<h3>'.l('comments').'</h3>';
Do it now... later may not come.
sNews 1.6 MESU | sNews 1.6 MEMU