sNews 1.7 (current stable version) > Patches/fixes

PATCH - Missing language variable in snews.php

(1/1)

Keyrocks:
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>';

Navigation

[0] Message Index

Go to full version