PDA

View Full Version : I can not import Turkish language file.



Selami Sarac
April 27, 2017, 08:11 PM
I can not import to Turkish language sql file.

The error report is below


Error: Failed to run the SQL query.You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ltr', 'tr')' at line 1
Error: Failed to run the SQL query.Table 'fidanlig_i.{prefix}lang_keys' doesn't exist
Error: Failed to run the SQL query.Table 'fidanlig_i.{prefix}lang_keys' doesn't exist
Error: Failed to run the SQL query.Table 'fidanlig_i.{prefix}lang_keys' doesn't exist
Error: Failed to run the SQL query.Table 'fidanlig_i.{prefix}lang_keys' doesn't exist
The MySQL dump has corrupt queries; importing the new language has failed.

Flynax version 4.5.2
PHP Version 7.0.18
Client API library version mysqlnd 5.0.12-dev - 20150407

Selami Sarac
April 27, 2017, 08:29 PM
I found.:)
replace:
INSERT INTO `{prefix}languages` (`Code`, `Key`, `Status`, `Date_format`, `Direction`, `Locale`) VALUES
('tr', 'turkish', 'active', '%d.%m.%Y'', 'ltr', 'tr');
to:
INSERT INTO `{prefix}languages` (`Code`, `Key`, `Status`, `Date_format`, `Direction`, `Locale`) VALUES
('tr', 'turkish', 'active', '%d.%m.%Y', 'ltr', 'tr');



error: %Y''
true: %Y'