No logs created - view_log.php - missing translation No logs created - view_log.php - missing translation
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

No logs created - view_log.php - missing translation

Started by Makc666, December 15, 2005, 10:51:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Makc666

There is some strange translation error in view_log.php
When you go to viewlog.php file from Config panel, from Logging and statistics section:
1. if you use English language you get message like on screenshot 1. The title of the box is "Information"
http://coppermine-gallery.net/demo/cpg14x/viewlog.php?lang=english
2. if you use Russian language or any other you get message with the title of the box "Error". Screenshot 2.
http://coppermine-gallery.net/demo/cpg14x/viewlog.php?lang=german

When you select:
http://coppermine-gallery.net/demo/cpg14x/viewlog.php?lang=english
Coppermine works with this string from english.php
// Some common strings
...
$lang_info = 'Information';


Why it doesn't select proper language string for other languages this is the question.
I couldn't find in the code the proper string.

Code from: english.php

// Some common strings
$lang_yes = 'Yes';
$lang_no  = 'No';
$lang_back = 'BACK';
$lang_continue = 'CONTINUE';
$lang_info = 'Information';
$lang_error = 'Error';
$lang_check_uncheck_all = 'check/uncheck all'; //cpg1.4


// ------------------------------------------------------------------------- //
// File view_log.php  //cpg1.4
// ------------------------------------------------------------------------- //

if (defined('VIEWLOG_PHP')) $lang_viewlog_php = array(
  'delete_all' => 'Delete All Logs', //cpg1.4
  'delete_this' => 'Delete This Log', //cpg1.4
  'view_logs' => 'View Logs', //cpg1.4
  'no_logs' => 'No logs created.', //cpg1.4
);

Nibbler

include/langfallback.inc.php

find

$lang_cpg_die_en = cpg_get_default_lang_var('lang_cpg_die','english');
$lang_cpg_die = array_merge($lang_cpg_die_en, $lang_cpg_die);


change to

$lang_cpg_die_en = cpg_get_default_lang_var('lang_cpg_die','english');
$lang_cpg_die = isset($lang_cpg_die) ? $lang_cpg_die : $lang_cpg_die_en;

Makc666

#2
Quote from: Nibbler on December 15, 2005, 10:59:51 PM
include/langfallback.inc.php

find

$lang_cpg_die_en = cpg_get_default_lang_var('lang_cpg_die','english');
$lang_cpg_die = array_merge($lang_cpg_die_en, $lang_cpg_die);


change to

$lang_cpg_die_en = cpg_get_default_lang_var('lang_cpg_die','english');
$lang_cpg_die = isset($lang_cpg_die) ? $lang_cpg_die : $lang_cpg_die_en;


Thanks. It helped.

Will it be fixed in CVS? ???

Nibbler