- $o = replace_macros($t, array(
- '$submit' => t('Save Settings'),
- '$api_key' => array('api_key', t('API Key'), get_config('geocoordinates', 'api_key' ), ''),
- '$language' => array('language', t('Language code (IETF format)'), get_config('geocoordinates', 'language' ), ''),
- ));
+ $o = Renderer::replaceMacros($t, [
+ '$submit' => DI::l10n()->t('Save Settings'),
+ '$api_key' => ['api_key', DI::l10n()->t('API Key'), DI::config()->get('geocoordinates', 'api_key'), ''],
+ '$language' => ['language', DI::l10n()->t('Language code (IETF format)'), DI::config()->get('geocoordinates', 'language'), ''],
+ ]);