'getClientSideTranslationKeys', 'Installation.defaultSettingsForm.init' => 'installationFormInit', 'Installation.defaultSettingsForm.submit' => 'installationFormSubmit', ); } public function isTrackerPlugin() { return true; } public function deactivate() { // switch to default provider if GeoIP2 provider was in use if (LocationProvider::getCurrentProvider() instanceof \Piwik\Plugins\GeoIp2\LocationProvider\GeoIp2) { LocationProvider::setCurrentProvider(LocationProvider::getDefaultProviderId()); } } public function getClientSideTranslationKeys(&$translationKeys) { $translationKeys[] = "GeoIp2_FatalErrorDuringDownload"; $translationKeys[] = "GeoIp2_SetupAutomaticUpdatesOfGeoIP"; $translationKeys[] = "General_Done"; $translationKeys[] = "General_Save"; $translationKeys[] = "General_Continue"; $translationKeys[] = 'GeoIp2_ISPRequiresProviderPlugin'; $translationKeys[] = 'GeoIp2_UpdaterWasLastRun'; $translationKeys[] = 'GeoIp2_UpdaterIsNotScheduledToRun'; $translationKeys[] = 'GeoIp2_GeoIPUpdaterIntro'; $translationKeys[] = 'GeoIp2_IWantToDownloadFreeGeoIP'; $translationKeys[] = 'General_GetStarted'; $translationKeys[] = 'GeoIp2_GeoIPDatabases'; $translationKeys[] = 'GeoIp2_NotManagingGeoIPDBs'; $translationKeys[] = 'GeoIp2_IPurchasedGeoIPDBs'; $translationKeys[] = 'UserCountry_GeoIpDbIpAccuracyNote'; $translationKeys[] = 'GeoIp2_GeoIPUpdaterInstructions'; $translationKeys[] = 'GeoIp2_GeoLiteCityLink'; $translationKeys[] = 'UserCountry_MaxMindLinkExplanation'; $translationKeys[] = 'GeoIp2_LocationDatabase'; $translationKeys[] = 'Actions_ColumnDownloadURL'; $translationKeys[] = 'GeoIp2_LocationDatabaseHint'; $translationKeys[] = 'GeoIp2_ISPDatabase'; $translationKeys[] = 'GeoIp2_DownloadNewDatabasesEvery'; $translationKeys[] = 'GeoIp2_CannotSetupGeoIPAutoUpdating'; $translationKeys[] = 'GeoIp2_UpdaterHasNotBeenRun'; $translationKeys[] = 'GeoIp2_UpdaterScheduledForNextRun'; $translationKeys[] = 'GeoIp2_UpdaterWillRunNext'; $translationKeys[] = 'GeoIp2_DownloadingDb'; } /** * Customize the Installation "default settings" form. * * @param FormDefaultSettings $form */ public function installationFormInit(FormDefaultSettings $form) { $form->addElement('checkbox', 'setup_geoip2', null, [ 'content' => '