eljulians / moodle-atto_multilang2

:globe_with_meridians: A plugin for Atto editor to make easier creation of multilingual contents.
3 stars 9 forks source link

Would it make sense to declare dependency on the filter? #6

Closed mudrd8mz closed 8 years ago

mudrd8mz commented 8 years ago

It seems that technically, this Atto plugin does not need the filter. Yet I am wondering if it would be cleaner for admins if the dependency on the filter was explicitly declared in version.php

See $plugin->dependencies at https://docs.moodle.org/dev/version.php

eljulians commented 8 years ago

Hi @mudrd8mz, thanks for taking time to review the plugin.

You're right, even if the plugin does not technically need the filter, its use would not make sense without it. But taking into account that @iarenaza's filter is not published on the plugins directory, can I specify the dependency?

mudrd8mz commented 8 years ago

I discussed this case with other Moodle core developers and we all agree that the explicit dependency should be added. Good to see you agree with that too.

Yes, a dependency can be declared even on plugin not available in the plugins directory. Admins will have to provide the missing code manually as Moodle itself integrates with the plugins directory only. Alternatively @iarenaza may want to submit his filter into the plugins directory, too.

eljulians commented 8 years ago

Hi David,

I've made the release on plugins directory with the dependency to filter_multilang2.

I'm very glad you contributed to this plugin. :)

iarenaza commented 8 years ago

I've just opened and issue in the tracker to add the filter_multilang2 plugin to the plugins database.

If it gets approved, this should make it easier for other to install both plugins at the same time.

mudrd8mz commented 8 years ago

Thanks @iarenaza. Please note that https://docs.moodle.org/dev/Plugin_contribution#How_to_submit_code seems to be a bit outdated. You as the maintainer are basically supposed to submit your plugin into the plugins directory at https://moodle.org/plugins/registerplugin.php Sorry for the confusion.

iarenaza commented 8 years ago

@mudrd8mz Thanks for the heads up!

mudrd8mz commented 8 years ago
eljulians commented 8 years ago

I've just updated the links, thanks a lot for your contributions!