Batch rename templates/phrases?

Tan Tran

Well-known member
Hello,
I would like to add a prefix to all templates/phrases of my addon but i don't know how to do that quickly.

myaddon_template_name
myaddon_phrase_name

Do i have to rename one by one? Please give me a solution.

Thank you.
 
I think the easiest process would be:
  • Export the addon as xml
  • search & replace for each term using a text editor.
  • re-import.
As you need to patch up references to those templates & phrases, and all in one text document would make it easier.

Note; there is functionality is XenForo which requires the template name have a specific format (ie Alerts).
 
Top Bottom