A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
You should not be using the event listener to load your language files. It appears your language file is only needed on the ACP page... so why load your language files for every single page of the forum - that just wastes resources.
You should instead just use $this->user->add_lang_ext('BoardTools/upload', 'upload'); at the top of your ACP module class, and get rid of the event listener file completely.
As for the language vars used in your module's info_upload.php file, just put those couple of vars in a language file named info_acp_upload.php and they will be autoloaded by the ACP.
Formerly known as VSE • My Extensions • Please do not PM me for support.
VSE wrote:You should instead just use $this->user->add_lang_ext('BoardTools/upload', 'upload'); at the top of your ACP module class, and get rid of the event listener file completely.
As for the language vars used in your module's info_upload.php file, just put those couple of vars in a language file named info_acp_upload.php and they will be autoloaded by the ACP.
Sorry,
it is very difficult for me to understand what is written here. My English is not good enough. Therefore I know not what I have to do like GitHub.
Nice extension.
I would like to ask if would be possible to upload language files additionally? I mean lets say that I upload extension with your extension to server and than some translator translate this extension, so I would like to upload it too into the already installed extension. I guess there would have to be some rules about packing the language files to make it work... Anyway it's just an idea.
EDIT: I deleted question about updating of extensions (it is mentioned in description of you extension in ACP)
If you unpack the new extension's zip again it will put the language file(s) in the folder where it belongs or create the folder first. So put the language folder in the extensions zip and unpack again.
Webhosting, Custom MODs, Technical management, MOD installation and Webdesign
Pro-choice, Atheist, Pro-LGBT rights Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
Maybe a stupid question, but: many authors provide github-links to theire work. Would it be possible to include a possibility to directly transfer extensions from github?
Mess wrote:I guess it depends on how the developers setup their repos?
As the packaging instructions have not been defined yet (or at least not published) then currently a developer can do as they want. Once the packaging instructions are published then there should be some degree of consistency.
David Remember: You only know what you know and - you don't know what you don't know!
I now no longer support any of my extensions but they will start to become available here