Skip to main content
installing languages via package manager Started by TE · · Read 44065 times 0 Members and 1 Guest are viewing this topic. previous topic - next topic

Re: installing languages via package manager

Reply #30

Quote from: TE – Question: do we need this file at all? Addons can (and IMHO should) use their own language files.
Good question.
A previous discussion that may be of interest:

I would phase it out honestly.
Yes, certain addons will ad a single string and an entire file just for a string is overkill, but a file just for nothing is a bit overkill as well.
Additionally, if in some next version we would start "scope" language strings, and use a class or something instead of the $txt directly, autoloading would be easier with a file for each addon.
For example:
Code: [Select]
would be enough to instruct the "loader" of require the file /ADDONSDIR/addon-name/languages/file-id.{language}.php without even have to explicitly loadLanguage('file-id').

 emanuele dreams :P
Bugs creator.
Features destroyer.
Template killer.