• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Batch rename templates/phrases?

Tan Tran

Well-known member
#1
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.
 

Xon

Well-known member
#2
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).