Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

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

Keyrocks

  • Doug
  • Administrator
  • ULTIMATE member
  • ******
  • Karma: 451
  • Posts: 6228
  • Semantically Challenged
    • snews.ca
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>';
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU