Mysql error when uploading language

Hi all. I have the following problem:


I edited my translated copy of main language that start with:

<?php
$aLangInfo=array (
'Name' => 'it',
'Flag' => 'it',
'Title' => 'Italiano',
);
$aLangContent=array (
...

when I try to upload the language file (Settings -> lang settings) i get a Mysql error and via mail the following report:

------------------------------------------------

Database error in

Query:

INSERT INTO `sys_localization_languages` (`Name`, `Flag`, `Title`) VALUES ('it', 'it', 'Italiano')

Mysql error: Duplicate entry 'it' for key 2

Found error in the file '/dati/web/********.it/www/administration/lang_file.php' at line 536.
Called 'query' function with erroneous argument #0.


Debug backtrace:

Array
(
[1] => Array
(
....
....

-------------------------------------

If I delete the italian language, and then upload italian language again all works fine, but only if I delete and upload again, cant upload over an existing italian language, (that way im losing Email Templates every time...)

what can this be? Thx in advice

Quote · 25 Jan 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.