Nullified Posted May 16, 2012 Share Posted May 16, 2012 (edited) What is the preferred method for adding phrases to the language files because when I upgraded to v5 my language files were overwritten and I lost all my adds? Edited May 16, 2012 by Nullified 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted May 16, 2012 Share Posted May 16, 2012 version 5.0 supports the "overrides" directory Just create a new directory under lang called "overrides" and place a file in there called "english.php" (or whatever language you want), and place the overridden values in there. As for your second question. Add a {debug} statement to your header and see what variables are available. I'm sure you'll find what you're looking for. 0 Quote Link to comment Share on other sites More sharing options...
Nullified Posted May 16, 2012 Author Share Posted May 16, 2012 Edit: I remembered it was $filename that made my second question possible. So I don't need to make an english.txt? Only an english.php? 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted May 16, 2012 Share Posted May 16, 2012 Edit: I remembered it was $filename that made my second question possible. So I don't need to make an english.txt? Only an english.php? In version 5, all the language files were moved from the .txt extension to .php. So English.txt is now english.php. You basically just need to copy all your custom lang entries into that file, and they will take priorities over the defaults. And anytime you upgrade, they wont get overwritten since the override file doesnt exist in the package. 0 Quote Link to comment Share on other sites More sharing options...
Nullified Posted May 17, 2012 Author Share Posted May 17, 2012 the overrides folder worked. thanks for the help. now off to recreate all my language phrases. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.