Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: No logs created - view_log.php - missing translation  (Read 5448 times)

0 Members and 1 Guest are viewing this topic.

Makc666

  • Translator
  • Coppermine addict
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 1614
  • Русский (ISO-8859-1) - Russian - Русский (Windows)
    • Makc's home page
No logs created - view_log.php - missing translation
« on: December 15, 2005, 10:51:14 pm »

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
Code: [Select]
// 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

Code: [Select]
// 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

Code: [Select]
// ------------------------------------------------------------------------- //
// 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
);
« Last Edit: December 15, 2005, 11:03:41 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: No logs created - view_log.php - missing trasnlation
« Reply #1 on: December 15, 2005, 10:59:51 pm »

include/langfallback.inc.php

find

Code: [Select]
$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

Code: [Select]
$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;
Logged

Makc666

  • Translator
  • Coppermine addict
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 1614
  • Русский (ISO-8859-1) - Russian - Русский (Windows)
    • Makc's home page
Re: No logs created - view_log.php - missing trasnlation
« Reply #2 on: December 15, 2005, 11:09:32 pm »

include/langfallback.inc.php

find

Code: [Select]
$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

Code: [Select]
$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? ???
« Last Edit: December 15, 2005, 11:16:54 pm by Makc666 »
Logged

Nibbler

  • Guest
Re: No logs created - view_log.php - missing translation
« Reply #3 on: December 15, 2005, 11:20:35 pm »

Already is, that's why it's marked as 'Fixed'.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.