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

XF 1.4 How to export an addon with it's customized templates/phrase included?

Discussion in 'XenForo Questions and Support' started by RoldanLT, Oct 9, 2014.

  1. RoldanLT

    RoldanLT Well-Known Member

    As far as I know when exporting an addon, only the master template and phrase will be exported and customized template/phrase will not.
    Is their any way I can also export the customized template/phrase?

  2. Brogan

    Brogan XenForo Moderator Staff Member

    Why would you want to export custom language and style specific elements with an add-on?
  3. RoldanLT

    RoldanLT Well-Known Member

    Because I heavily customized it already, I mean the phrase and template.
    And want to import it to somebody that want the same customization I did.
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Those would be exported separately from the addon by exporting your custom style and language separately. But this would export your custom style and language in its entirety, not just customized templates from the addon. You can either over-export and then revert unwanted custom stuff after importing, or you can manually copy and paste specific templates through the Admin CP of both forums.
  5. RoldanLT

    RoldanLT Well-Known Member

    Ah yes I can manually copy/paste customize template. But for the phrase, I modified almost all of them. Lets say the whole addon phrase/hundreds :(
  6. Jim Boy

    Jim Boy Well-Known Member

    It wouldn't be that hard to write a quick script to handle this:

    firstly import the addon into an array with each line an item. Do a preg_match and search for the phrase titles. Next import an export your customised languages, then spit out any line that has a phrase title that matches the first part. Wrap it the correct XML tag and give to your friend.

    Should take you 20 minutes tops
  7. Mike

    Mike XenForo Developer Staff Member

    You can export style and language entries for a specific add-on only.
    RoldanLT likes this.
  8. RoldanLT

    RoldanLT Well-Known Member

    With all the customize phrase and/or template?
    Or just the master phrase/template?
  9. Mike

    Mike XenForo Developer Staff Member

    Go to the style/language list and click export. It should be clear what I mean then. This isn't related to exporting the add-on.
    RoldanLT likes this.
  10. RoldanLT

    RoldanLT Well-Known Member

    What does this option mean? "Get untranslated phrases".
  11. RoldanLT

    RoldanLT Well-Known Member

    Looks like I get it now hehe.
    When "Get untranslated phrases" is un-check, only the customize phrase gets exported.
    When it's checked, All phrase gets exported, Right?
  12. Mike

    Mike XenForo Developer Staff Member

    Correct. It's to aid translation in the downloaded file.
    RoldanLT likes this.
  13. RoldanLT

    RoldanLT Well-Known Member

    That answers my question :)
    Thanks for the help Mike :)

Share This Page