-function irc_plugin_admin (&$a, &$o) {
- $sitechats = Config::get('irc','sitechats'); /* popular channels */
- $autochans = Config::get('irc','autochans'); /* auto connect chans */
- $t = get_markup_template( "admin.tpl", "addon/irc/" );
- $o = replace_macros($t, array(
- '$submit' => t('Save Settings'),
- '$autochans' => array( 'autochans', t('Channel(s) to auto connect (comma separated)'), $autochans, t('List of channels that shall automatically connected to when the app is launched.')),
- '$sitechats' => array( 'sitechats', t('Popular Channels (comma separated)'), $sitechats, t('List of popular channels, will be displayed at the side and hotlinked for easy joining.') )
- ));
+function irc_addon_admin (&$a, &$o) {
+ $sitechats = DI::config()->get('irc','sitechats'); /* popular channels */
+ $autochans = DI::config()->get('irc','autochans'); /* auto connect chans */
+ $t = Renderer::getMarkupTemplate( "admin.tpl", "addon/irc/" );
+ $o = Renderer::replaceMacros($t, [
+ '$submit' => DI::l10n()->t('Save Settings'),
+ '$autochans' => [ 'autochans', DI::l10n()->t('Channel(s) to auto connect (comma separated)'), $autochans, DI::l10n()->t('List of channels that shall automatically connected to when the app is launched.')],
+ '$sitechats' => [ 'sitechats', DI::l10n()->t('Popular Channels (comma separated)'), $sitechats, DI::l10n()->t('List of popular channels, will be displayed at the side and hotlinked for easy joining.') ]
+ ]);