Jump to content

Adding my own language phrases


Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated