Possible mistake in lang file? Possible mistake in lang file?
 

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]

Main Menu

Possible mistake in lang file?

Started by tk_jkpg, June 23, 2004, 06:36:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tk_jkpg

While working on swedish translation for 1.3.0 i have found possible error. I think that the variable 'err_fsize_too_large' should warn about filesize and not image dimensions as both english and swedish(1.2) do. It seems to be confused/mixed with 'err_imgsize_too_large' that should be about image dimensions. Se text below.

/Tommy


Some text from the english.php file:
// ------------------------------------------------------------------------- //
// File db_input.php
// ------------------------------------------------------------------------- //

if (defined('DB_INPUT_PHP')) $lang_db_input_php = array(
.
.
 'err_fsize_too_large' => 'The size of file you have uploaded is too large (maximum allowed is %s x %s) !', //cpg1.3.0
 'err_imgsize_too_large' => 'The size of the file you have uploaded is too large (maximum allowed is %s KB) !',
.
.

Nibbler

I agree the names are a little ambigous, but the error messages are correct.

Casper

I think the error messages are wrong.
Too large filesize ends '%s x %s'
Too large pixel ends '%s kb'

BUT, when are these error messages used.  upload.php uses the (correct) messages from lang_upload not lang_db_input
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Nibbler

True, these language entries are made redundant by the new upload system.

Joachim Müller

I suggest we keep them for the moment, I'll flag them in the cvs for deletion once upload.php has gone through all necessary changes.

GauGau