PDA

View Full Version : Importing phrases


filburt1
11-23-2004, 03:50 AM
I have a language XML file that I generated through the admin CP containing custom phrases in a custom phrasegroup. I want to later insert them back into the database through code.

What I have is:

require_once("./includes/adminfunctions_language.php");
xml_import_language($xml, 1, "", true);

$xml contains the contents of the XML file.

When I import the XML this way, all of the phrases go into a languageid of 0. I want them to go into the master language (languageid -1).

How without modifying xml_import_language()?

filburt1
11-23-2004, 05:57 PM
...and if I offered a cookie for a solution?