Correction of errors in translation display

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
miguelez
Posts: 1
Joined: Sat Feb 18, 2012 7:27 pm

Correction of errors in translation display

Post by miguelez »

When trying to use the variable $OLANG in the files of lang directory does not work in v1.25.0, so I edited the files options.php and optionhelp.php:

options.php line 213

Code: Select all

        $optionPromptText = !empty($OLANG[$shortName])?$OLANG[$shortName]:$value['Prompt'];
changed to:

Code: Select all

        $optionPromptText = !empty($OLANG[$shortName])?$OLANG[$shortName]['Prompt']:$value['Prompt'];
optionhelp.php line 22

Code: Select all

$optionHelpText = !empty($OLANG[$optionHelpIndex])?$OLANG[$optionHelpIndex]:$config[$_REQUEST['option']]['Help'];
changed to:

Code: Select all

$optionHelpText = !empty($OLANG[$optionHelpIndex])?$OLANG[$optionHelpIndex]['Help']:$config[$_REQUEST['option']]['Help'];
Sergio Miguelez B.
Post Reply