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

Mass edit Phrases

Discussion in 'XenForo Questions and Support' started by Morgain, Mar 27, 2013.

  1. Morgain

    Morgain Well-Known Member

    I am plodding through the Resource Manager editing its Phrases. Quite a long job just to change "Resources" to "Articles."
    I don't mind doing this once and I'm making a list of the changed Phrases as I go. But doing it repeatedly on several different sites is going to be real drudgery.

    Is there any way I can mass edit lots of different Phrases?
  2. Edrondol

    Edrondol Well-Known Member

    Yeah, there are 207 phrases that need to be changed. I just did this yesterday and it sucked!
  3. ManOnDaMoon

    ManOnDaMoon Well-Known Member

    Once you have made the changes on your first site, you can export the English language, limited to the RM extension, and import it on your other sites (select the "overwrite" option, it will only overwrite the matching phrases). Still have to do it once, though.
    Morgain likes this.
  4. Morgain

    Morgain Well-Known Member

    Thanks Moon and sympathies Edrondol.
    I'll see if I can make my list available.
  5. cclaerhout

    cclaerhout Well-Known Member

    To complete the solution of ManOnDaMoon, you can export the English language file for XFRM and then proceed to your changes. Find a nice editor to perform your replacements (free: notepad2, Notepad++, editpad lite ; paid: editpad pro). If you know some basic regex, it can be very very fast and more accurate. Which means instead of editing one by one your phrases (... which is quite a crazy task - sorry :p ), it takes you about 3 minutes to do what you want. Then you import the modified language of XFRM with overwriting the English language (what has explained ManOnDaMoon to you) and the job is done.
    Morgain likes this.
  6. Morgain

    Morgain Well-Known Member

    Yes Cedric it is a crazy task but I prefer small steps safely. Because I am not skilled like you. Yet ;)
  7. cclaerhout

    cclaerhout Well-Known Member

    Teu teu, you certainly already did a search & replace with Word. It's exactly the same thing with an editor.
    Search: Ressources
    Replace: Articles

    Just one thing to remember, use the "case sensitive" search to keep the correct case.
    Morgain likes this.
  8. Morgain

    Morgain Well-Known Member

    OK I am studying this.
    When an addon has an XML file - is that what it does? It contains the Phrases for the addon?
  9. cclaerhout

    cclaerhout Well-Known Member

    The phrases, the templates, the listeners, etc. But no need to modify this xml directly (which is used to installed the addon). Do what Manondamoon told you:
    export the language and select the addon in the export options. You will have there only the phrases of this addon.
    Morgain likes this.

Share This Page