-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue/21 language system changes in 3.2 #38
Issue/21 language system changes in 3.2 #38
Conversation
------------------------- | ||
|
||
To load a file from an extension | ||
you need to use ``phpbb\language\language::add_lang_ext()`` which takes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
phpbb\language\language::add_lang()
first argument array of the language files, second argument is the name of the extension
6bf972a
to
dea5b8c
Compare
@CHItA updated |
|
||
Loading from an extension | ||
------------------------- | ||
|
||
To load a file from an extension | ||
you need to use ``phpbb\user::add_lang_ext()`` which takes | ||
you need to use ``phpbb\language\language::add_lang_ext()`` which takes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add_lang() as well for exts, as in the examples below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmpf must have slipped through
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
Add a bit about the new lang system replacement for LA_KEY by doing addslashes is our own custom func that simply addslashes the string. |
@VSEphpbb since those comments need to go into 3.1 aswell, please create a new issue (and feel free to prepare a patch ;) ) |
…ges-in-3.2 Issue/21 language system changes in 3.2
@MateBartus please review 6bf972a