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

How to recompile phrases programatically [Deleted]

Rigel Kentaurus

Well-known member
#1
Rigel Kentaurus submitted a new resource:

How to recompile phrases programatically (version 1.0.0) - How to recompile phrases programatically

The following code snippet will "force" to recompile all phrases in a language

Code:
    $p = new XenForo_Model_Phrase();
    $p->compileAllPhrasesInLanguage(1);
Change "1" to the language id you want to recompile.

If you just need to run it for whatever reason you could add it in index.php just before fc->run() (or create a separate file, or add it to a code event)
Read more about this resource...