we_import_content - import content previously created by we_export_content
we_import_content [-newlang|lang lang] [-checkonly] [-rootclass class] [-v] [-f] importdir datadestdir
Import content files from importdir (which was formerly created by we_export_content) to a datadestdir (which is a path to a
Caution: please make a backup from datadestdir before using this command!
Set import data to specified language, otherwise use language information from import files.
Do only the checks and exit.
Class of root db (default: WE_Singlesite::Root).
Force execution if some checks fail, otherwise ask interactively.
For translation purposes the XMLText export is recommended. Here's an example to export the whole content tree, to be translated from german to english:
we_export_content -oldlang de -newlang en -dumpformat XMLText ..../we_data /tmp/translation # edit the files in /tmp/translation we_import_content /tmp/translation ..../we_data
(Old example, do not use anymore XXX:)
Export the content tree for translation (here: translate from german to english) and re-import it. The language
de is used as a template for the new language
we_export_content -oldlang de -newlang en -dumpformat XML ..../we_data /tmp/translation # edit the files in /tmp/translation we_import_content /tmp/translation ..../we_data
If there is already content for newlang in the content database, then it is overwritten without warnings.