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