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

Batch rename templates/phrases?

Discussion in 'XenForo Development Discussions' started by Tan Tran, Jan 2, 2015.

  1. Tan Tran

    Tan Tran Well-Known Member

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


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

    Thank you.
  2. Xon

    Xon Well-Known Member

    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).
    Tan Tran likes this.
  3. Tan Tran

    Tan Tran Well-Known Member

    Thanks @Xon. I will try that.

Share This Page