XenForo Tutorials

XF 2 xF1 product XML to xF2 phrases dev output

Submitted by Bi0S, , Thread ID: 108490

Thread Closed
Bi0S
Leaks God
Pirates
Level:
0
Reputation:
91
Posts:
7.83K
Likes:
385
Credits:
25.7K
08-12-2018, 05:19 PM
#1
Compatible XF 2.x versions 2.0
As I worked on porting add-ons from xF1 to xF2, I became bored of needing to recreate everything.

So I created a quick perl script which parses a xF1 XML product file and creates the phrases text files into the _output directory you provide. Phrases related to option/cron entry/permission/admin navigation are not imported as they are automatically created when you do create those in xF2.

This is very raw, not optimized, not integrated to a CLI, but feel free to propose code modifications.

Content locked
This content has been locked. Please login or register in order to unlock it.

Call the script as follows:
perl your_script_name path_to_xml_file path_to_phrases_output_directory

Don't forget to export your add-ons data thanks to xf-dev:export CLI command prior to using the script and use the xf-dev import CLI command afterwards to get data back.
[Image: KiXcHZw.gif]
[Image: yOythq1.png]

Users browsing this thread: 1 Guest(s)