diff --git a/composer.json b/composer.json index cc0a2b88..33aaab03 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,6 @@ { "require": { "php": "^8.2.0", - "rrze/wp": "^2.0", "johngrogg/ics-parser": "^3.4.0", "rlanvin/php-rrule": "^2.5.0", "cmb2/cmb2": "^2.11.0" diff --git a/includes/Main.php b/includes/Main.php index 6d191e2e..fac1e31e 100644 --- a/includes/Main.php +++ b/includes/Main.php @@ -10,11 +10,14 @@ class Main { - /** - * __construct - */ - public function __construct() + public function loaded() { + // Register the 'CalendarEvent' and 'CalendarFeed' custom post types. + add_action('init', fn() => [ + CalendarEvent::registerPostType(), + CalendarFeed::registerPostType(), + ]); + add_filter('plugin_action_links_' . plugin()->getBaseName(), [$this, 'settingsLink']); add_action('admin_enqueue_scripts', [$this, 'adminEnqueueScripts']); diff --git a/vendor/rrze/wp/src/Plugin/Plugin.php b/includes/Plugin.php similarity index 76% rename from vendor/rrze/wp/src/Plugin/Plugin.php rename to includes/Plugin.php index 76213fcf..19ccbb8d 100644 --- a/vendor/rrze/wp/src/Plugin/Plugin.php +++ b/includes/Plugin.php @@ -1,6 +1,6 @@ pluginFile = $pluginFile; + require_once ABSPATH . 'wp-admin/includes/plugin.php'; } /** @@ -53,11 +54,10 @@ public function loaded() $this->setBasename() ->setDirectory() ->setUrl() - ->setVersion(); + ->setData(); } /** - * getFile method * Get the full path and filename of the plugin. * @return string The full path and filename. */ @@ -67,7 +67,6 @@ public function getFile(): string } /** - * getBasename method * Get the basename of the plugin. * @return string The basename. */ @@ -77,7 +76,6 @@ public function getBasename(): string } /** - * setBasename method * Set the basename of the plugin. * @return object This Plugin object. */ @@ -88,7 +86,6 @@ public function setBasename(): object } /** - * getDirectory method * Get the filesystem directory path (with trailing slash) for the plugin. * @return string The filesystem directory path. */ @@ -98,7 +95,6 @@ public function getDirectory(): string } /** - * setDirectory method * Set the filesystem directory path (with trailing slash) for the plugin. * @return object This Plugin object. */ @@ -109,7 +105,6 @@ public function setDirectory(): object } /** - * getPath method * Get the filesystem directory path (with trailing slash) for the plugin. * @param string $path The path name. * @return string The filesystem directory path. @@ -120,7 +115,6 @@ public function getPath(string $path = ''): string } /** - * getUrl method * Get the URL directory path (with trailing slash) for the plugin. * @param string $path The path name. * @return string The URL directory path. @@ -131,7 +125,6 @@ public function getUrl(string $path = ''): string } /** - * setUrl method * Set the URL directory path (with trailing slash) for the plugin. * @return object This Plugin object. */ @@ -142,7 +135,6 @@ public function setUrl(): object } /** - * getSlug method * Get the slug of the plugin. * @return string The slug. */ @@ -152,31 +144,58 @@ public function getSlug(): string } /** - * getVersion method + * Set the data of the plugin. + * @return object This Plugin object. + */ + public function setData(): object + { + $this->data = get_plugin_data($this->pluginFile, false); + return $this; + } + + /** + * Get the data of the plugin. + * @return array The data. + */ + public function getData(): array + { + return $this->data; + } + + /** + * Get the name of the plugin. + * @return string The name. + */ + public function getName(): string + { + return $this->data['Name']; + } + + /** * Get the version of the plugin. * @return string The version. */ public function getVersion(): string { - if (defined('WP_DEBUG') && WP_DEBUG) { - return bin2hex(random_bytes(4)); - } - return $this->version; + return $this->data['Version']; } /** - * getVersion method - * Set the version of the plugin. - * @return object This Plugin object. + * Get the required WordPress version of the plugin. + * @return string The required WordPress version. */ - public function setVersion(): object + public function getRequiresWP(): string { - $headers = ['Version' => 'Version']; - $fileData = get_file_data($this->pluginFile, $headers, 'plugin'); - if (isset($fileData['Version'])) { - $this->version = $fileData['Version']; - }; - return $this; + return $this->data['RequiresWP']; + } + + /** + * Get the required PHP version of the plugin. + * @return string The required PHP version. + */ + public function getRequiresPHP(): string + { + return $this->data['RequiresPHP']; } /** @@ -187,15 +206,6 @@ public function __call(string $name, array $arguments) { if (!method_exists($this, $name)) { $message = sprintf('Call to undefined method %1$s::%2$s', __CLASS__, $name); - do_action( - 'rrze.log.error', - $message, - [ - 'class' => __CLASS__, - 'method' => $name, - 'arguments' => $arguments - ] - ); if (defined('WP_DEBUG') && WP_DEBUG) { throw new \Exception($message); } diff --git a/includes/Settings.php b/includes/Settings.php index 2ab72008..3a858105 100644 --- a/includes/Settings.php +++ b/includes/Settings.php @@ -4,7 +4,8 @@ defined('ABSPATH') || exit; -use RRZE\WP\Settings\Settings as OptionsSettings; +use RRZE\Calendar\CPT\CalendarEvent; +use RRZE\Calendar\Settings\Settings as OptionsSettings; class Settings { @@ -14,7 +15,7 @@ class Settings public function __construct() { - add_action('rrze_wp_settings_after_update_option', [$this, 'flushRewriteRules']); + add_action('rrze_calendar_settings_after_update_option', [$this, 'flushRewriteRules']); } public function loaded() @@ -67,7 +68,9 @@ public function loaded() public function flushRewriteRules($optionName) { if ($optionName === self::OPTION_NAME) { - flush_rewrite_rules(false); + // Register the 'CalendarEvent' CPT again and flush rewrite rules. + CalendarEvent::registerPostType(); + flush_rewrite_rules(); } } @@ -88,27 +91,4 @@ public function getOptions() { return $this->settings->getOptions(); } - - /** - * __call method - * Method overloading. - */ - public function __call(string $name, array $arguments) - { - if (!method_exists($this, $name)) { - $message = sprintf('Call to undefined method %1$s::%2$s', __CLASS__, $name); - do_action( - 'rrze.log.error', - $message, - [ - 'class' => __CLASS__, - 'method' => $name, - 'arguments' => $arguments - ] - ); - if (defined('WP_DEBUG') && WP_DEBUG) { - throw new \Exception($message); - } - } - } } diff --git a/vendor/rrze/wp/src/Settings/Builder.php b/includes/Settings/Builder.php similarity index 92% rename from vendor/rrze/wp/src/Settings/Builder.php rename to includes/Settings/Builder.php index c319a892..c894d22f 100644 --- a/vendor/rrze/wp/src/Settings/Builder.php +++ b/includes/Settings/Builder.php @@ -1,6 +1,6 @@ type = $type; $this->args = $args; - $typeMap = apply_filters('rrze_wp_settings_option_type_map', [ + $typeMap = apply_filters('rrze_calendar_settings_option_type_map', [ 'checkbox' => Checkbox::class, 'checkbox-multiple' => CheckboxMultiple::class, 'password' => Password::class, diff --git a/vendor/rrze/wp/src/Settings/Options/Checkbox.php b/includes/Settings/Options/Checkbox.php similarity index 91% rename from vendor/rrze/wp/src/Settings/Options/Checkbox.php rename to includes/Settings/Options/Checkbox.php index 4399712e..b93ec4aa 100644 --- a/vendor/rrze/wp/src/Settings/Options/Checkbox.php +++ b/includes/Settings/Options/Checkbox.php @@ -1,6 +1,6 @@ build(); ### Initializing the Settings class ```php -use RRZE\WP\Settings\Settings; +use RRZE\Calendar\Settings\Settings; $settings = new Settings(__('Custom Settings', 'textdomain')); ``` @@ -108,8 +108,8 @@ $section->addOption('checkbox-multiple', [ 'name' => 'multiple_options_1', 'label' => __('Multiple Options 1', 'textdomain'), 'options' => [ - 'option_1' => __('Option 1', 'rrze-autoshare'), - 'option_2' => __('Option 2', 'rrze-autoshare') + 'option_1' => __('Option 1', 'rrze-calendar'), + 'option_2' => __('Option 2', 'rrze-calendar') ], ]); ``` @@ -121,8 +121,8 @@ $section->addOption('radio-group', [ 'name' => 'radio_group_1', 'label' => __('Radio Group 1', 'textdomain'), 'options' => [ - 'option_1' => __('Option 1', 'rrze-autoshare'), - 'option_2' => __('Option 2', 'rrze-autoshare') + 'option_1' => __('Option 1', 'rrze-calendar'), + 'option_2' => __('Option 2', 'rrze-calendar') ], ]); ``` @@ -239,31 +239,31 @@ $section->addOption('text', [ ### Hooks ```php -apply_filters('rrze_wp_settings_new_options', array $newOptions, array $currentOptions) +apply_filters('rrze_calendar_settings_new_options', array $newOptions, array $currentOptions) ``` ```php -apply_filters('rrze_wp_settings_new_option_{$optionName}', mixed $value, object \RRZE\WP\Settings\Options\Type) +apply_filters('rrze_calendar_settings_new_option_{$optionName}', mixed $value, object \RRZE\Calendar\Settings\Options\Type) ``` ```php -apply_filters('rrze_wp_settings_option_type_map', array $optionTypeMap) +apply_filters('rrze_calendar_settings_option_type_map', array $optionTypeMap) ``` ```php -apply_filters('rrze_wp_settings_template_include', string $fileName, array $vars) +apply_filters('rrze_calendar_settings_template_include', string $fileName, array $vars) ``` ```php -do_action('rrze_wp_settings_after_update_option', string $optionName, array $options) +do_action('rrze_calendar_settings_after_update_option', string $optionName, array $options) ``` ### Adding a custom option type -To add a custom option type, the `rrze_wp_settings_option_type_map` filter can be used. +To add a custom option type, the `rrze_calendar_settings_option_type_map` filter can be used. ```php -add_filter('rrze_wp_settings_option_type_map', function($options){ +add_filter('rrze_calendar_settings_option_type_map', function($options){ $options['custom'] = MyCustomOption::class; return $options; }); @@ -272,7 +272,7 @@ add_filter('rrze_wp_settings_option_type_map', function($options){ Next, the class `MyCustomOption` must be added for the custom option type. ```php -use RRZE\WP\Settings\Options\Type; +use RRZE\Calendar\Settings\Options\Type; class MyCustomOption extends Type { diff --git a/vendor/rrze/wp/src/Settings/Section.php b/includes/Settings/Section.php similarity index 95% rename from vendor/rrze/wp/src/Settings/Section.php rename to includes/Settings/Section.php index cffd67a7..fa9c92d6 100644 --- a/vendor/rrze/wp/src/Settings/Section.php +++ b/includes/Settings/Section.php @@ -1,6 +1,6 @@ .rrze-wp-settings-error {color: #d63638; margin: 5px 0;}'; + echo ''; } public function getTabBySlug($slug) @@ -174,7 +174,7 @@ public function addTab($title, $slug = null) public function addSection($title, $args = []) { if (empty($this->tabs)) { - $tab = $this->addTab(__('Unnamed tab', 'rrze-wp-settings')); + $tab = $this->addTab(__('Unnamed tab', 'rrze-calendar')); } else { $tab = end($this->tabs); } @@ -254,21 +254,21 @@ public function render() public function save() { if ( - !isset($_POST['rrze_wp_settings_save']) + !isset($_POST['rrze_calendar_settings_save']) || !wp_verify_nonce( - $_POST['rrze_wp_settings_save'], - 'rrze_wp_settings_save_' . $this->optionName + $_POST['rrze_calendar_settings_save'], + 'rrze_calendar_settings_save_' . $this->optionName ) ) { return; } if (!current_user_can($this->capability)) { - wp_die(__('You do not have enough permissions to do that.', 'rrze-wp-settings')); + wp_die(__('You do not have enough permissions to do that.', 'rrze-calendar')); } $currentOptions = $this->getOptions(); - $submittedOptions = apply_filters('rrze_wp_settings_new_options', $_POST[$this->optionName] ?? [], $currentOptions); + $submittedOptions = apply_filters('rrze_calendar_settings_new_options', $_POST[$this->optionName] ?? [], $currentOptions); $newOptions = $currentOptions; foreach ($this->getActiveTab()->getActiveSections() as $section) { @@ -281,7 +281,7 @@ public function save() continue; } - $value = apply_filters('rrze_wp_settings_new_option_' . $option->implementation->getName(), $option->sanitize($value), $option->implementation); + $value = apply_filters('rrze_calendar_settings_new_option_' . $option->implementation->getName(), $option->sanitize($value), $option->implementation); $newOptions[$option->implementation->getName()] = $value; } @@ -289,7 +289,7 @@ public function save() $this->updateOptions($newOptions); - $this->flash->set('success', __('Settings saved.', 'rrze-wp-settings')); + $this->flash->set('success', __('Settings saved.', 'rrze-calendar')); } public function defaultOptions() @@ -325,6 +325,6 @@ public function getOption($option) public function updateOptions($options) { update_option($this->optionName, $options); - do_action('rrze_wp_settings_after_update_option', $this->optionName, $options); + do_action('rrze_calendar_settings_after_update_option', $this->optionName, $options); } } diff --git a/vendor/rrze/wp/src/Settings/Tab.php b/includes/Settings/Tab.php similarity index 98% rename from vendor/rrze/wp/src/Settings/Tab.php rename to includes/Settings/Tab.php index cd01364e..d3b98cf8 100644 --- a/vendor/rrze/wp/src/Settings/Tab.php +++ b/includes/Settings/Tab.php @@ -1,6 +1,6 @@ @@ -19,7 +19,7 @@ getArg('description')) : ?>

hasError()) : ?> -
+
diff --git a/vendor/rrze/wp/src/Settings/templates/options/checkbox.php b/includes/Settings/templates/options/checkbox.php similarity index 88% rename from vendor/rrze/wp/src/Settings/templates/options/checkbox.php rename to includes/Settings/templates/options/checkbox.php index c3b0bcf1..28396147 100644 --- a/vendor/rrze/wp/src/Settings/templates/options/checkbox.php +++ b/includes/Settings/templates/options/checkbox.php @@ -1,6 +1,6 @@ @@ -17,7 +17,7 @@ hasError()) { ?> -
+
\ No newline at end of file diff --git a/vendor/rrze/wp/src/Settings/templates/options/password.php b/includes/Settings/templates/options/password.php similarity index 87% rename from vendor/rrze/wp/src/Settings/templates/options/password.php rename to includes/Settings/templates/options/password.php index d8b593ad..a26f3422 100644 --- a/vendor/rrze/wp/src/Settings/templates/options/password.php +++ b/includes/Settings/templates/options/password.php @@ -1,6 +1,6 @@

hasError()) { ?> -
+
\ No newline at end of file diff --git a/vendor/rrze/wp/src/Settings/templates/options/radio-group.php b/includes/Settings/templates/options/radio-group.php similarity index 89% rename from vendor/rrze/wp/src/Settings/templates/options/radio-group.php rename to includes/Settings/templates/options/radio-group.php index f5fe70a7..4d36af0a 100644 --- a/vendor/rrze/wp/src/Settings/templates/options/radio-group.php +++ b/includes/Settings/templates/options/radio-group.php @@ -1,6 +1,6 @@ @@ -21,7 +21,7 @@

hasError()) { ?> -
+
diff --git a/vendor/rrze/wp/src/Settings/templates/options/select-multiple.php b/includes/Settings/templates/options/select-multiple.php similarity index 89% rename from vendor/rrze/wp/src/Settings/templates/options/select-multiple.php rename to includes/Settings/templates/options/select-multiple.php index 24595624..66db0b8b 100644 --- a/vendor/rrze/wp/src/Settings/templates/options/select-multiple.php +++ b/includes/Settings/templates/options/select-multiple.php @@ -1,6 +1,6 @@ @@ -19,7 +19,7 @@ hasError()) { ?> -
+
\ No newline at end of file diff --git a/vendor/rrze/wp/src/Settings/templates/options/select.php b/includes/Settings/templates/options/select.php similarity index 89% rename from vendor/rrze/wp/src/Settings/templates/options/select.php rename to includes/Settings/templates/options/select.php index c127b67a..2461b73f 100644 --- a/vendor/rrze/wp/src/Settings/templates/options/select.php +++ b/includes/Settings/templates/options/select.php @@ -1,6 +1,6 @@ @@ -18,7 +18,7 @@

hasError()) { ?> -
+
\ No newline at end of file diff --git a/vendor/rrze/wp/src/Settings/templates/options/text.php b/includes/Settings/templates/options/text.php similarity index 88% rename from vendor/rrze/wp/src/Settings/templates/options/text.php rename to includes/Settings/templates/options/text.php index bce1be32..f1b39328 100644 --- a/vendor/rrze/wp/src/Settings/templates/options/text.php +++ b/includes/Settings/templates/options/text.php @@ -1,6 +1,6 @@ @@ -14,7 +14,7 @@

hasError()) { ?> -
+
\ No newline at end of file diff --git a/vendor/rrze/wp/src/Settings/templates/options/textarea.php b/includes/Settings/templates/options/textarea.php similarity index 87% rename from vendor/rrze/wp/src/Settings/templates/options/textarea.php rename to includes/Settings/templates/options/textarea.php index ffb9262a..93497f61 100644 --- a/vendor/rrze/wp/src/Settings/templates/options/textarea.php +++ b/includes/Settings/templates/options/textarea.php @@ -1,6 +1,6 @@ @@ -14,7 +14,7 @@

hasError()) { ?> -
+
\ No newline at end of file diff --git a/vendor/rrze/wp/src/Settings/templates/section-menu.php b/includes/Settings/templates/section-menu.php similarity index 94% rename from vendor/rrze/wp/src/Settings/templates/section-menu.php rename to includes/Settings/templates/section-menu.php index ac4921bf..15acbeae 100644 --- a/vendor/rrze/wp/src/Settings/templates/section-menu.php +++ b/includes/Settings/templates/section-menu.php @@ -1,6 +1,6 @@ diff --git a/vendor/rrze/wp/src/Settings/templates/section.php b/includes/Settings/templates/section.php similarity index 91% rename from vendor/rrze/wp/src/Settings/templates/section.php rename to includes/Settings/templates/section.php index 999aef83..721bd9f2 100644 --- a/vendor/rrze/wp/src/Settings/templates/section.php +++ b/includes/Settings/templates/section.php @@ -1,6 +1,6 @@ diff --git a/vendor/rrze/wp/src/Settings/templates/sections.php b/includes/Settings/templates/sections.php similarity index 71% rename from vendor/rrze/wp/src/Settings/templates/sections.php rename to includes/Settings/templates/sections.php index 18c4239f..f78b5373 100644 --- a/vendor/rrze/wp/src/Settings/templates/sections.php +++ b/includes/Settings/templates/sections.php @@ -1,6 +1,6 @@ @@ -11,7 +11,7 @@ - optionName, 'rrze_wp_settings_save'); ?> + optionName, 'rrze_calendar_settings_save'); ?> \ No newline at end of file diff --git a/vendor/rrze/wp/src/Settings/templates/settings-page.php b/includes/Settings/templates/settings-page.php similarity index 83% rename from vendor/rrze/wp/src/Settings/templates/settings-page.php rename to includes/Settings/templates/settings-page.php index 0c73b62e..bc6bc68d 100644 --- a/vendor/rrze/wp/src/Settings/templates/settings-page.php +++ b/includes/Settings/templates/settings-page.php @@ -1,6 +1,6 @@ @@ -15,7 +15,7 @@ errors->getAll()) { ?>
-

+

diff --git a/vendor/rrze/wp/src/Settings/templates/tab-menu.php b/includes/Settings/templates/tab-menu.php similarity index 91% rename from vendor/rrze/wp/src/Settings/templates/tab-menu.php rename to includes/Settings/templates/tab-menu.php index 4c343fc9..fa6ce193 100644 --- a/vendor/rrze/wp/src/Settings/templates/tab-menu.php +++ b/includes/Settings/templates/tab-menu.php @@ -1,6 +1,6 @@ diff --git a/languages/rrze-calendar-de_DE.mo b/languages/rrze-calendar-de_DE.mo index dab5e279..4678d3ce 100644 Binary files a/languages/rrze-calendar-de_DE.mo and b/languages/rrze-calendar-de_DE.mo differ diff --git a/languages/rrze-calendar-de_DE.po b/languages/rrze-calendar-de_DE.po index 839b5a1a..84a9a8f2 100644 --- a/languages/rrze-calendar-de_DE.po +++ b/languages/rrze-calendar-de_DE.po @@ -4,34 +4,39 @@ msgid "" msgstr "" "Project-Id-Version: RRZE Autoshare\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/rrze-calendar\n" -"POT-Creation-Date: 2024-02-19T11:20:32+00:00\n" -"PO-Revision-Date: 2024-02-19 12:21+0100\n" +"POT-Creation-Date: 2024-12-12T08:43:05+00:00\n" +"PO-Revision-Date: 2024-12-12 09:46+0100\n" "Last-Translator: \n" "Language-Team: RRZE Webteam\n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.4.2\n" +"X-Generator: Poedit 3.5\n" "X-Domain: rrze-calendar\n" #. Plugin Name of the plugin +#: rrze-calendar.php msgid "RRZE Calendar" msgstr "RRZE Kalender" #. Plugin URI of the plugin +#: rrze-calendar.php msgid "https://github.com/RRZE-Webteam/rrze-calendar" msgstr "https://github.com/RRZE-Webteam/rrze-calendar" #. Description of the plugin -msgid "Import and output of FAU public events." -msgstr "Import und Ausgabe öffentlicher Veranstaltungen der FAU." +#: rrze-calendar.php +msgid "Administration of local events and import of public events." +msgstr "Verwaltung lokaler Events und Import öffentlicher Events." #. Author of the plugin +#: rrze-calendar.php msgid "RRZE Webteam" msgstr "RRZE-Webteam" #. Author URI of the plugin +#: rrze-calendar.php msgid "https://blogs.fau.de/webworking/" msgstr "https://blogs.fau.de/webworking/" @@ -88,7 +93,7 @@ msgstr "Veranstaltungen durchsuchen" msgid "Parent Events:" msgstr "Übergeordnete Veranstaltungen:" -#: includes/CPT/CalendarEvent.php:66 includes/ICS/Events.php:48 +#: includes/CPT/CalendarEvent.php:66 includes/ICS/Events.php:50 msgid "No events found." msgstr "Keine Veranstaltungen gefunden." @@ -297,14 +302,13 @@ msgstr "fünften" msgid "Maximum +/- 1 year." msgstr "Maximal +/- 1 Jahr." -#: includes/CPT/CalendarEvent.php:572 includes/Shortcodes/Events.php:197 -#: includes/Shortcodes/Events.php:203 +#: includes/CPT/CalendarEvent.php:572 includes/Shortcodes/Events.php:201 +#: includes/Shortcodes/Events.php:207 msgid "Online" msgstr "Online" #: includes/CPT/CalendarEvent.php:610 includes/Shortcodes/Calendar.php:326 -#: includes/Shortcodes/Calendar.php:549 includes/Shortcodes/Shortcode.php:69 -#: includes/Shortcodes/Shortcode.php:176 +#: includes/Shortcodes/Calendar.php:553 msgid "All Day" msgstr "Ganztägig" @@ -317,8 +321,8 @@ msgstr "Ganztägig" msgid "Time" msgstr "Zeit" -#: includes/CPT/CalendarEvent.php:695 includes/Shortcodes/Calendar.php:350 -#: includes/Shortcodes/Calendar.php:692 includes/Shortcodes/Events.php:297 +#: includes/CPT/CalendarEvent.php:695 includes/Shortcodes/Calendar.php:351 +#: includes/Shortcodes/Calendar.php:704 includes/Shortcodes/Events.php:300 msgid "Add to calendar" msgstr "Zum Kalender hinzufügen" @@ -416,7 +420,7 @@ msgid "No ics feeds found in Trash." msgstr "Keine Feeds im Papierkorb gefunden." #: includes/CPT/CalendarFeed.php:122 includes/ICS/EventsListTable.php:16 -#: includes/ICS/Metabox.php:34 includes/Settings.php:25 +#: includes/ICS/Metabox.php:34 includes/Settings.php:30 #: templates/cpt/archive-event.php:30 templates/cpt/archive-event.php:32 #: templates/cpt/themes/fau-events/archive-event.php:22 #: templates/cpt/themes/fau/archive-event.php:30 @@ -476,7 +480,7 @@ msgstr "Deaktivieren" msgid "Invalid access" msgstr "Unzulässiger Zugriff" -#: includes/ICS/Events.php:327 includes/Utils.php:828 +#: includes/ICS/Events.php:332 includes/Utils.php:836 msgid "m-d-Y" msgstr "d.m.Y" @@ -533,52 +537,52 @@ msgstr "" msgid "Feed URL is not valid." msgstr "Die Feed-URL ist ungültig." -#: includes/Main.php:46 +#: includes/Main.php:45 msgid "Settings" msgstr "Einstellungen" -#: includes/Main.php:95 +#: includes/Main.php:94 msgid "Hide past events" msgstr "Vergangene Termine ausblenden" -#: includes/Main.php:96 +#: includes/Main.php:95 msgid "Show past events" msgstr "Vergangene Termine anzeigen" -#: includes/Settings.php:17 +#: includes/Settings.php:22 msgid "Calendar Settings" msgstr "Einstellungen › Kalender" -#: includes/Settings.php:21 +#: includes/Settings.php:26 msgid "Calendar" msgstr "Kalender" -#: includes/Settings.php:26 +#: includes/Settings.php:31 msgid "ICS Feed" msgstr "ICS-Feed" -#: includes/Settings.php:30 +#: includes/Settings.php:35 msgid "Archive Slug" msgstr "Archiv-Slug" -#: includes/Settings.php:31 +#: includes/Settings.php:36 msgid "Enter the archive slug that will display the event list." msgstr "Geben Sie den Archiv-Slug ein, der die Veranstaltungsliste anzeigt." -#: includes/Settings.php:32 +#: includes/Settings.php:37 msgid "events" msgstr "veranstaltungen" -#: includes/Settings.php:36 +#: includes/Settings.php:41 msgid "The archive slug can have between 4 and 32 alphanumeric characters." msgstr "" "Der Archiv-Slug kann zwischen 4 und 32 alphanumerische Zeichen enthalten." -#: includes/Settings.php:43 +#: includes/Settings.php:48 msgid "Remove Duplicates" msgstr "Duplikate entfernen" -#: includes/Settings.php:44 +#: includes/Settings.php:49 msgid "" "If the same event (i.e. same title, date and location) is present in " "multiple feeds, only show one of them." @@ -586,26 +590,42 @@ msgstr "" "Wenn dieselbe Veranstaltung (d.h. gleicher Titel, Zeit und Ort) in mehreren " "Feed vorhanden ist, diese nur einmal anzeigen." -#: includes/Settings.php:49 +#: includes/Settings.php:54 msgid "Schedule" msgstr "Zeitplan" -#: includes/Settings.php:50 +#: includes/Settings.php:55 msgid "Choose the recurrence to check for new events." msgstr "Wiederholung auswählen, um nach neuen Veranstaltungen zu suchen." -#: includes/Settings.php:52 +#: includes/Settings.php:57 msgid "Hourly" msgstr "Stündlich" -#: includes/Settings.php:53 +#: includes/Settings.php:58 msgid "Twice daily" msgstr "Zweimal täglich" -#: includes/Settings.php:54 +#: includes/Settings.php:59 msgid "Daily" msgstr "Täglich" +#: includes/Settings/Settings.php:177 +msgid "Unnamed tab" +msgstr "Unbenannte Registerkarte" + +#: includes/Settings/Settings.php:267 +msgid "You do not have enough permissions to do that." +msgstr "Dazu haben Sie nicht genügend Berechtigungen." + +#: includes/Settings/Settings.php:292 +msgid "Settings saved." +msgstr "Die Einstellungen wurden gespeichert." + +#: includes/Settings/templates/settings-page.php:18 +msgid "Settings issues detected." +msgstr "Einstellungsprobleme erkannt." + #: includes/Shortcodes/Calendar.php:213 msgid "View day" msgstr "Tag ansehen" @@ -635,7 +655,7 @@ msgid "Go to previous year" msgstr "Zum vorherigen Jahr wechseln" #: includes/Shortcodes/Calendar.php:265 includes/Shortcodes/Calendar.php:295 -#: includes/Shortcodes/Calendar.php:458 +#: includes/Shortcodes/Calendar.php:459 msgid "Previous" msgstr "Zurück" @@ -644,7 +664,7 @@ msgid "Go to next year" msgstr "Zum nächsten Jahr wechseln" #: includes/Shortcodes/Calendar.php:268 includes/Shortcodes/Calendar.php:298 -#: includes/Shortcodes/Calendar.php:461 +#: includes/Shortcodes/Calendar.php:462 msgid "Next" msgstr "Weiter" @@ -656,27 +676,27 @@ msgstr "Zum vorherigen Tag wechseln" msgid "Go to next day" msgstr "Zum nächsten Tag wechseln" -#: includes/Shortcodes/Calendar.php:353 +#: includes/Shortcodes/Calendar.php:354 msgid "There are no events scheduled for this day." msgstr "An diesem Tag finden keine Veranstaltungen statt." -#: includes/Shortcodes/Calendar.php:410 +#: includes/Shortcodes/Calendar.php:411 msgid "View Details" msgstr "Details ansehen" -#: includes/Shortcodes/Calendar.php:458 +#: includes/Shortcodes/Calendar.php:459 msgid "Go to previous month" msgstr "Zum vorherigen Monat wechseln" -#: includes/Shortcodes/Calendar.php:461 +#: includes/Shortcodes/Calendar.php:462 msgid "Go to next month" msgstr "Zum nächsten Monat wechseln" -#: includes/Shortcodes/Calendar.php:580 +#: includes/Shortcodes/Calendar.php:589 msgid "More…" msgstr "Mehr…" -#: includes/Shortcodes/Calendar.php:607 includes/Shortcodes/Calendar.php:664 +#: includes/Shortcodes/Calendar.php:616 includes/Shortcodes/Calendar.php:676 msgid "Read more" msgstr "Weiterlesen" @@ -684,73 +704,37 @@ msgstr "Weiterlesen" msgid "Show All Events" msgstr "Alle Veranstaltungen anzeigen" -#: includes/Shortcodes/Events.php:290 includes/Shortcodes/Events.php:328 +#: includes/Shortcodes/Events.php:293 includes/Shortcodes/Events.php:331 msgid "No events scheduled." msgstr "Keine bevorstehenden Veranstaltungen." -#: includes/Shortcodes/Events.php:307 +#: includes/Shortcodes/Events.php:310 msgid "Add all events of this category to your calendar" msgstr "Alle Veranstaltungen dieser Kategorie zum Kalender hinzufügen" -#: includes/Shortcodes/Events.php:314 +#: includes/Shortcodes/Events.php:317 msgid "Add all events of this tag to your calendar" msgstr "Alle Veranstaltungen mit diesem Schlagwort zum Kalender hinzufügen" -#: includes/Shortcodes/Shortcode.php:51 -msgid "No description" -msgstr "Keine Beschreibung" - -#. translators: 1: Start date, 2: End date. -#: includes/Shortcodes/Shortcode.php:76 includes/Shortcodes/Shortcode.php:181 -msgid "%1$s - %2$s" -msgstr "%1$s bis %2$s" - -#. translators: 1: Start date, 2: Start time, 3: End date, 4: End time. -#: includes/Shortcodes/Shortcode.php:85 includes/Shortcodes/Shortcode.php:185 -msgid "%1$s %2$s - %3$s %4$s" -msgstr "%1$s %2$s Uhr bis %3$s %4$s Uhr" - -#. translators: 1: Start date, 2: Start time, 3: End time. -#: includes/Shortcodes/Shortcode.php:96 includes/Shortcodes/Shortcode.php:189 -msgid "%1$s %2$s - %3$s" -msgstr "%1$s %2$s Uhr bis %3$s Uhr" - -#: includes/Shortcodes/Shortcode.php:120 -msgid "View the calendar" -msgstr "Kalender ansehen" - -#: includes/Shortcodes/Shortcode.php:125 -msgid "Subscribe to calendar" -msgstr "Kalender abonnieren" +#. translators: 1: Server WordPress version number, 2: Required WordPress version number. +#: rrze-calendar.php:110 +msgid "" +"The server is running WordPress version %1$s. The plugin requires at least " +"WordPress version %2$s." +msgstr "" +"Auf dem Server läuft WordPress Version %1$s. Das Plugin erfordert mindestens " +"WordPress Version %2$s." #. translators: 1: Server PHP version number, 2: Required PHP version number. -#: rrze-calendar.php:60 +#: rrze-calendar.php:118 msgid "" -"The server is running PHP version %1$s. The Plugin requires at least PHP " +"The server is running PHP version %1$s. The plugin requires at least PHP " "version %2$s." msgstr "" -"Auf dem Server läuft PHP Version %1$s. Das Plugin benötigt mindestens PHP " +"Auf dem Server läuft PHP Version %1$s. Das Plugin erfordert mindestens PHP " "Version %2$s." -#. translators: 1: Server WordPress version number, 2: Required WordPress version number. -#: rrze-calendar.php:67 -msgid "" -"The server is running WordPress version %1$s. The Plugin requires at least " -"WordPress version %2$s." -msgstr "" -"Auf dem Server läuft WordPress Version %1$s. Das Plugin benötigt mindestens " -"WordPress Version %2$s." - #. translators: 1: The plugin name, 2: The error string. -#: rrze-calendar.php:86 rrze-calendar.php:157 +#: rrze-calendar.php:162 msgid "Plugins: %1$s: %2$s" msgstr "Plugins: %1$s: %2$s" - -#~ msgid "You do not have enough permissions to do that." -#~ msgstr "Dazu haben Sie nicht genügend Berechtigungen." - -#~ msgid "Settings saved." -#~ msgstr "Die Einstellungen wurden gespeichert." - -#~ msgid "Settings issues detected." -#~ msgstr "Einstellungsprobleme erkannt." diff --git a/languages/rrze-calendar-de_DE_formal.mo b/languages/rrze-calendar-de_DE_formal.mo index 3bf12c63..f64a4334 100644 Binary files a/languages/rrze-calendar-de_DE_formal.mo and b/languages/rrze-calendar-de_DE_formal.mo differ diff --git a/languages/rrze-calendar-de_DE_formal.po b/languages/rrze-calendar-de_DE_formal.po index 54d3e56b..6519ed9a 100644 --- a/languages/rrze-calendar-de_DE_formal.po +++ b/languages/rrze-calendar-de_DE_formal.po @@ -5,33 +5,38 @@ msgstr "" "Project-Id-Version: RRZE Autoshare\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/rrze-calendar\n" "POT-Creation-Date: 2024-02-19T11:20:32+00:00\n" -"PO-Revision-Date: 2024-02-19 12:21+0100\n" +"PO-Revision-Date: 2024-12-12 09:46+0100\n" "Last-Translator: \n" "Language-Team: RRZE Webteam\n" "Language: de_DE@formal\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.4.2\n" +"X-Generator: Poedit 3.5\n" "X-Domain: rrze-calendar\n" #. Plugin Name of the plugin +#: rrze-calendar.php msgid "RRZE Calendar" msgstr "RRZE Kalender" #. Plugin URI of the plugin +#: rrze-calendar.php msgid "https://github.com/RRZE-Webteam/rrze-calendar" msgstr "https://github.com/RRZE-Webteam/rrze-calendar" #. Description of the plugin -msgid "Import and output of FAU public events." -msgstr "Import und Ausgabe öffentlicher Veranstaltungen der FAU." +#: rrze-calendar.php +msgid "Administration of local events and import of public events." +msgstr "Verwaltung lokaler Events und Import öffentlicher Events." #. Author of the plugin +#: rrze-calendar.php msgid "RRZE Webteam" msgstr "RRZE-Webteam" #. Author URI of the plugin +#: rrze-calendar.php msgid "https://blogs.fau.de/webworking/" msgstr "https://blogs.fau.de/webworking/" @@ -88,7 +93,7 @@ msgstr "Veranstaltungen durchsuchen" msgid "Parent Events:" msgstr "Übergeordnete Veranstaltungen:" -#: includes/CPT/CalendarEvent.php:66 includes/ICS/Events.php:48 +#: includes/CPT/CalendarEvent.php:66 includes/ICS/Events.php:50 msgid "No events found." msgstr "Keine Veranstaltungen gefunden." @@ -297,14 +302,13 @@ msgstr "fünften" msgid "Maximum +/- 1 year." msgstr "Maximal +/- 1 Jahr." -#: includes/CPT/CalendarEvent.php:572 includes/Shortcodes/Events.php:197 -#: includes/Shortcodes/Events.php:203 +#: includes/CPT/CalendarEvent.php:572 includes/Shortcodes/Events.php:201 +#: includes/Shortcodes/Events.php:207 msgid "Online" msgstr "Online" #: includes/CPT/CalendarEvent.php:610 includes/Shortcodes/Calendar.php:326 -#: includes/Shortcodes/Calendar.php:549 includes/Shortcodes/Shortcode.php:69 -#: includes/Shortcodes/Shortcode.php:176 +#: includes/Shortcodes/Calendar.php:553 msgid "All Day" msgstr "Ganztägig" @@ -317,8 +321,8 @@ msgstr "Ganztägig" msgid "Time" msgstr "Zeit" -#: includes/CPT/CalendarEvent.php:695 includes/Shortcodes/Calendar.php:350 -#: includes/Shortcodes/Calendar.php:692 includes/Shortcodes/Events.php:297 +#: includes/CPT/CalendarEvent.php:695 includes/Shortcodes/Calendar.php:351 +#: includes/Shortcodes/Calendar.php:704 includes/Shortcodes/Events.php:300 msgid "Add to calendar" msgstr "Zum Kalender hinzufügen" @@ -416,7 +420,7 @@ msgid "No ics feeds found in Trash." msgstr "Keine Feeds im Papierkorb gefunden." #: includes/CPT/CalendarFeed.php:122 includes/ICS/EventsListTable.php:16 -#: includes/ICS/Metabox.php:34 includes/Settings.php:25 +#: includes/ICS/Metabox.php:34 includes/Settings.php:30 #: templates/cpt/archive-event.php:30 templates/cpt/archive-event.php:32 #: templates/cpt/themes/fau-events/archive-event.php:22 #: templates/cpt/themes/fau/archive-event.php:30 @@ -476,7 +480,7 @@ msgstr "Deaktivieren" msgid "Invalid access" msgstr "Unzulässiger Zugriff" -#: includes/ICS/Events.php:327 includes/Utils.php:828 +#: includes/ICS/Events.php:332 includes/Utils.php:836 msgid "m-d-Y" msgstr "d.m.Y" @@ -533,52 +537,52 @@ msgstr "" msgid "Feed URL is not valid." msgstr "Die Feed-URL ist ungültig." -#: includes/Main.php:46 +#: includes/Main.php:45 msgid "Settings" msgstr "Einstellungen" -#: includes/Main.php:95 +#: includes/Main.php:94 msgid "Hide past events" msgstr "Vergangene Termine ausblenden" -#: includes/Main.php:96 +#: includes/Main.php:95 msgid "Show past events" msgstr "Vergangene Termine anzeigen" -#: includes/Settings.php:17 +#: includes/Settings.php:22 msgid "Calendar Settings" msgstr "Einstellungen › Kalender" -#: includes/Settings.php:21 +#: includes/Settings.php:26 msgid "Calendar" msgstr "Kalender" -#: includes/Settings.php:26 +#: includes/Settings.php:31 msgid "ICS Feed" msgstr "ICS-Feed" -#: includes/Settings.php:30 +#: includes/Settings.php:35 msgid "Archive Slug" msgstr "Archiv-Slug" -#: includes/Settings.php:31 +#: includes/Settings.php:36 msgid "Enter the archive slug that will display the event list." msgstr "Geben Sie den Archiv-Slug ein, der die Veranstaltungsliste anzeigt." -#: includes/Settings.php:32 +#: includes/Settings.php:37 msgid "events" msgstr "veranstaltungen" -#: includes/Settings.php:36 +#: includes/Settings.php:41 msgid "The archive slug can have between 4 and 32 alphanumeric characters." msgstr "" "Der Archiv-Slug kann zwischen 4 und 32 alphanumerische Zeichen enthalten." -#: includes/Settings.php:43 +#: includes/Settings.php:48 msgid "Remove Duplicates" msgstr "Duplikate entfernen" -#: includes/Settings.php:44 +#: includes/Settings.php:49 msgid "" "If the same event (i.e. same title, date and location) is present in " "multiple feeds, only show one of them." @@ -586,26 +590,42 @@ msgstr "" "Wenn dieselbe Veranstaltung (d.h. gleicher Titel, Zeit und Ort) in mehreren " "Feed vorhanden ist, diese nur einmal anzeigen." -#: includes/Settings.php:49 +#: includes/Settings.php:54 msgid "Schedule" msgstr "Zeitplan" -#: includes/Settings.php:50 +#: includes/Settings.php:55 msgid "Choose the recurrence to check for new events." msgstr "Wiederholung auswählen, um nach neuen Veranstaltungen zu suchen." -#: includes/Settings.php:52 +#: includes/Settings.php:57 msgid "Hourly" msgstr "Stündlich" -#: includes/Settings.php:53 +#: includes/Settings.php:58 msgid "Twice daily" msgstr "Zweimal täglich" -#: includes/Settings.php:54 +#: includes/Settings.php:59 msgid "Daily" msgstr "Täglich" +#: includes/Settings/Settings.php:177 +msgid "Unnamed tab" +msgstr "Unbenannte Registerkarte" + +#: includes/Settings/Settings.php:267 +msgid "You do not have enough permissions to do that." +msgstr "Dazu haben Sie nicht genügend Berechtigungen." + +#: includes/Settings/Settings.php:292 +msgid "Settings saved." +msgstr "Die Einstellungen wurden gespeichert." + +#: includes/Settings/templates/settings-page.php:18 +msgid "Settings issues detected." +msgstr "Einstellungsprobleme erkannt." + #: includes/Shortcodes/Calendar.php:213 msgid "View day" msgstr "Tag ansehen" @@ -635,7 +655,7 @@ msgid "Go to previous year" msgstr "Zum vorherigen Jahr wechseln" #: includes/Shortcodes/Calendar.php:265 includes/Shortcodes/Calendar.php:295 -#: includes/Shortcodes/Calendar.php:458 +#: includes/Shortcodes/Calendar.php:459 msgid "Previous" msgstr "Zurück" @@ -644,7 +664,7 @@ msgid "Go to next year" msgstr "Zum nächsten Jahr wechseln" #: includes/Shortcodes/Calendar.php:268 includes/Shortcodes/Calendar.php:298 -#: includes/Shortcodes/Calendar.php:461 +#: includes/Shortcodes/Calendar.php:462 msgid "Next" msgstr "Weiter" @@ -656,27 +676,27 @@ msgstr "Zum vorherigen Tag wechseln" msgid "Go to next day" msgstr "Zum nächsten Tag wechseln" -#: includes/Shortcodes/Calendar.php:353 +#: includes/Shortcodes/Calendar.php:354 msgid "There are no events scheduled for this day." msgstr "An diesem Tag finden keine Veranstaltungen statt." -#: includes/Shortcodes/Calendar.php:410 +#: includes/Shortcodes/Calendar.php:411 msgid "View Details" msgstr "Details ansehen" -#: includes/Shortcodes/Calendar.php:458 +#: includes/Shortcodes/Calendar.php:459 msgid "Go to previous month" msgstr "Zum vorherigen Monat wechseln" -#: includes/Shortcodes/Calendar.php:461 +#: includes/Shortcodes/Calendar.php:462 msgid "Go to next month" msgstr "Zum nächsten Monat wechseln" -#: includes/Shortcodes/Calendar.php:580 +#: includes/Shortcodes/Calendar.php:589 msgid "More…" msgstr "Mehr…" -#: includes/Shortcodes/Calendar.php:607 includes/Shortcodes/Calendar.php:664 +#: includes/Shortcodes/Calendar.php:616 includes/Shortcodes/Calendar.php:676 msgid "Read more" msgstr "Weiterlesen" @@ -684,73 +704,37 @@ msgstr "Weiterlesen" msgid "Show All Events" msgstr "Alle Veranstaltungen anzeigen" -#: includes/Shortcodes/Events.php:290 includes/Shortcodes/Events.php:328 +#: includes/Shortcodes/Events.php:293 includes/Shortcodes/Events.php:331 msgid "No events scheduled." msgstr "Keine bevorstehenden Veranstaltungen." -#: includes/Shortcodes/Events.php:307 +#: includes/Shortcodes/Events.php:310 msgid "Add all events of this category to your calendar" msgstr "Alle Veranstaltungen dieser Kategorie zum Kalender hinzufügen" -#: includes/Shortcodes/Events.php:314 +#: includes/Shortcodes/Events.php:317 msgid "Add all events of this tag to your calendar" msgstr "Alle Veranstaltungen mit diesem Schlagwort zum Kalender hinzufügen" -#: includes/Shortcodes/Shortcode.php:51 -msgid "No description" -msgstr "Keine Beschreibung" - -#. translators: 1: Start date, 2: End date. -#: includes/Shortcodes/Shortcode.php:76 includes/Shortcodes/Shortcode.php:181 -msgid "%1$s - %2$s" -msgstr "%1$s bis %2$s" - -#. translators: 1: Start date, 2: Start time, 3: End date, 4: End time. -#: includes/Shortcodes/Shortcode.php:85 includes/Shortcodes/Shortcode.php:185 -msgid "%1$s %2$s - %3$s %4$s" -msgstr "%1$s %2$s Uhr bis %3$s %4$s Uhr" - -#. translators: 1: Start date, 2: Start time, 3: End time. -#: includes/Shortcodes/Shortcode.php:96 includes/Shortcodes/Shortcode.php:189 -msgid "%1$s %2$s - %3$s" -msgstr "%1$s %2$s Uhr bis %3$s Uhr" - -#: includes/Shortcodes/Shortcode.php:120 -msgid "View the calendar" -msgstr "Kalender ansehen" - -#: includes/Shortcodes/Shortcode.php:125 -msgid "Subscribe to calendar" -msgstr "Kalender abonnieren" +#. translators: 1: Server WordPress version number, 2: Required WordPress version number. +#: rrze-calendar.php:110 +msgid "" +"The server is running WordPress version %1$s. The plugin requires at least " +"WordPress version %2$s." +msgstr "" +"Auf dem Server läuft WordPress Version %1$s. Das Plugin erfordert mindestens " +"WordPress Version %2$s." #. translators: 1: Server PHP version number, 2: Required PHP version number. -#: rrze-calendar.php:60 +#: rrze-calendar.php:118 msgid "" -"The server is running PHP version %1$s. The Plugin requires at least PHP " +"The server is running PHP version %1$s. The plugin requires at least PHP " "version %2$s." msgstr "" -"Auf dem Server läuft PHP Version %1$s. Das Plugin benötigt mindestens PHP " +"Auf dem Server läuft PHP Version %1$s. Das Plugin erfordert mindestens PHP " "Version %2$s." -#. translators: 1: Server WordPress version number, 2: Required WordPress version number. -#: rrze-calendar.php:67 -msgid "" -"The server is running WordPress version %1$s. The Plugin requires at least " -"WordPress version %2$s." -msgstr "" -"Auf dem Server läuft WordPress Version %1$s. Das Plugin benötigt mindestens " -"WordPress Version %2$s." - #. translators: 1: The plugin name, 2: The error string. -#: rrze-calendar.php:86 rrze-calendar.php:157 +#: rrze-calendar.php:162 msgid "Plugins: %1$s: %2$s" msgstr "Plugins: %1$s: %2$s" - -#~ msgid "You do not have enough permissions to do that." -#~ msgstr "Dazu haben Sie nicht genügend Berechtigungen." - -#~ msgid "Settings saved." -#~ msgstr "Die Einstellungen wurden gespeichert." - -#~ msgid "Settings issues detected." -#~ msgstr "Einstellungsprobleme erkannt." diff --git a/languages/rrze-calendar.pot b/languages/rrze-calendar.pot index 100b79b9..cb882232 100644 --- a/languages/rrze-calendar.pot +++ b/languages/rrze-calendar.pot @@ -1,36 +1,41 @@ # Copyright (C) 2024 RRZE Webteam -# This file is distributed under the GNU General Public License v3.0. +# This file is distributed under the GNU General Public License Version 3. msgid "" msgstr "" -"Project-Id-Version: RRZE Calendar 2.1.1\n" +"Project-Id-Version: RRZE Calendar 2.3.0\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/rrze-calendar\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-02-19T11:20:32+00:00\n" +"POT-Creation-Date: 2024-12-12T08:43:05+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"X-Generator: WP-CLI 2.9.0\n" +"X-Generator: WP-CLI 2.11.0\n" "X-Domain: rrze-calendar\n" #. Plugin Name of the plugin +#: rrze-calendar.php msgid "RRZE Calendar" msgstr "" #. Plugin URI of the plugin +#: rrze-calendar.php msgid "https://github.com/RRZE-Webteam/rrze-calendar" msgstr "" #. Description of the plugin -msgid "Import and output of FAU public events." +#: rrze-calendar.php +msgid "Administration of local events and import of public events." msgstr "" #. Author of the plugin +#: rrze-calendar.php msgid "RRZE Webteam" msgstr "" #. Author URI of the plugin +#: rrze-calendar.php msgid "https://blogs.fau.de/webworking/" msgstr "" @@ -89,7 +94,7 @@ msgid "Parent Events:" msgstr "" #: includes/CPT/CalendarEvent.php:66 -#: includes/ICS/Events.php:48 +#: includes/ICS/Events.php:50 msgid "No events found." msgstr "" @@ -300,16 +305,14 @@ msgid "Maximum +/- 1 year." msgstr "" #: includes/CPT/CalendarEvent.php:572 -#: includes/Shortcodes/Events.php:197 -#: includes/Shortcodes/Events.php:203 +#: includes/Shortcodes/Events.php:201 +#: includes/Shortcodes/Events.php:207 msgid "Online" msgstr "" #: includes/CPT/CalendarEvent.php:610 #: includes/Shortcodes/Calendar.php:326 -#: includes/Shortcodes/Calendar.php:549 -#: includes/Shortcodes/Shortcode.php:69 -#: includes/Shortcodes/Shortcode.php:176 +#: includes/Shortcodes/Calendar.php:553 msgid "All Day" msgstr "" @@ -324,9 +327,9 @@ msgid "Time" msgstr "" #: includes/CPT/CalendarEvent.php:695 -#: includes/Shortcodes/Calendar.php:350 -#: includes/Shortcodes/Calendar.php:692 -#: includes/Shortcodes/Events.php:297 +#: includes/Shortcodes/Calendar.php:351 +#: includes/Shortcodes/Calendar.php:704 +#: includes/Shortcodes/Events.php:300 msgid "Add to calendar" msgstr "" @@ -431,7 +434,7 @@ msgstr "" #: includes/CPT/CalendarFeed.php:122 #: includes/ICS/EventsListTable.php:16 #: includes/ICS/Metabox.php:34 -#: includes/Settings.php:25 +#: includes/Settings.php:30 #: templates/cpt/archive-event.php:30 #: templates/cpt/archive-event.php:32 #: templates/cpt/themes/fau-events/archive-event.php:22 @@ -495,8 +498,8 @@ msgstr "" msgid "Invalid access" msgstr "" -#: includes/ICS/Events.php:327 -#: includes/Utils.php:828 +#: includes/ICS/Events.php:332 +#: includes/Utils.php:836 msgid "m-d-Y" msgstr "" @@ -541,74 +544,90 @@ msgstr "" msgid "Feed URL is not valid." msgstr "" -#: includes/Main.php:46 +#: includes/Main.php:45 msgid "Settings" msgstr "" -#: includes/Main.php:95 +#: includes/Main.php:94 msgid "Hide past events" msgstr "" -#: includes/Main.php:96 +#: includes/Main.php:95 msgid "Show past events" msgstr "" -#: includes/Settings.php:17 +#: includes/Settings.php:22 msgid "Calendar Settings" msgstr "" -#: includes/Settings.php:21 +#: includes/Settings.php:26 msgid "Calendar" msgstr "" -#: includes/Settings.php:26 +#: includes/Settings.php:31 msgid "ICS Feed" msgstr "" -#: includes/Settings.php:30 +#: includes/Settings.php:35 msgid "Archive Slug" msgstr "" -#: includes/Settings.php:31 +#: includes/Settings.php:36 msgid "Enter the archive slug that will display the event list." msgstr "" -#: includes/Settings.php:32 +#: includes/Settings.php:37 msgid "events" msgstr "" -#: includes/Settings.php:36 +#: includes/Settings.php:41 msgid "The archive slug can have between 4 and 32 alphanumeric characters." msgstr "" -#: includes/Settings.php:43 +#: includes/Settings.php:48 msgid "Remove Duplicates" msgstr "" -#: includes/Settings.php:44 +#: includes/Settings.php:49 msgid "If the same event (i.e. same title, date and location) is present in multiple feeds, only show one of them." msgstr "" -#: includes/Settings.php:49 +#: includes/Settings.php:54 msgid "Schedule" msgstr "" -#: includes/Settings.php:50 +#: includes/Settings.php:55 msgid "Choose the recurrence to check for new events." msgstr "" -#: includes/Settings.php:52 +#: includes/Settings.php:57 msgid "Hourly" msgstr "" -#: includes/Settings.php:53 +#: includes/Settings.php:58 msgid "Twice daily" msgstr "" -#: includes/Settings.php:54 +#: includes/Settings.php:59 msgid "Daily" msgstr "" +#: includes/Settings/Settings.php:177 +msgid "Unnamed tab" +msgstr "" + +#: includes/Settings/Settings.php:267 +msgid "You do not have enough permissions to do that." +msgstr "" + +#: includes/Settings/Settings.php:292 +msgid "Settings saved." +msgstr "" + +#: includes/Settings/templates/settings-page.php:18 +msgid "Settings issues detected." +msgstr "" + #: includes/Shortcodes/Calendar.php:213 msgid "View day" msgstr "" @@ -639,7 +658,7 @@ msgstr "" #: includes/Shortcodes/Calendar.php:265 #: includes/Shortcodes/Calendar.php:295 -#: includes/Shortcodes/Calendar.php:458 +#: includes/Shortcodes/Calendar.php:459 msgid "Previous" msgstr "" @@ -649,7 +668,7 @@ msgstr "" #: includes/Shortcodes/Calendar.php:268 #: includes/Shortcodes/Calendar.php:298 -#: includes/Shortcodes/Calendar.php:461 +#: includes/Shortcodes/Calendar.php:462 msgid "Next" msgstr "" @@ -661,28 +680,28 @@ msgstr "" msgid "Go to next day" msgstr "" -#: includes/Shortcodes/Calendar.php:353 +#: includes/Shortcodes/Calendar.php:354 msgid "There are no events scheduled for this day." msgstr "" -#: includes/Shortcodes/Calendar.php:410 +#: includes/Shortcodes/Calendar.php:411 msgid "View Details" msgstr "" -#: includes/Shortcodes/Calendar.php:458 +#: includes/Shortcodes/Calendar.php:459 msgid "Go to previous month" msgstr "" -#: includes/Shortcodes/Calendar.php:461 +#: includes/Shortcodes/Calendar.php:462 msgid "Go to next month" msgstr "" -#: includes/Shortcodes/Calendar.php:580 +#: includes/Shortcodes/Calendar.php:589 msgid "More…" msgstr "" -#: includes/Shortcodes/Calendar.php:607 -#: includes/Shortcodes/Calendar.php:664 +#: includes/Shortcodes/Calendar.php:616 +#: includes/Shortcodes/Calendar.php:676 msgid "Read more" msgstr "" @@ -690,61 +709,30 @@ msgstr "" msgid "Show All Events" msgstr "" -#: includes/Shortcodes/Events.php:290 -#: includes/Shortcodes/Events.php:328 +#: includes/Shortcodes/Events.php:293 +#: includes/Shortcodes/Events.php:331 msgid "No events scheduled." msgstr "" -#: includes/Shortcodes/Events.php:307 +#: includes/Shortcodes/Events.php:310 msgid "Add all events of this category to your calendar" msgstr "" -#: includes/Shortcodes/Events.php:314 +#: includes/Shortcodes/Events.php:317 msgid "Add all events of this tag to your calendar" msgstr "" -#: includes/Shortcodes/Shortcode.php:51 -msgid "No description" -msgstr "" - -#. translators: 1: Start date, 2: End date. -#: includes/Shortcodes/Shortcode.php:76 -#: includes/Shortcodes/Shortcode.php:181 -msgid "%1$s - %2$s" -msgstr "" - -#. translators: 1: Start date, 2: Start time, 3: End date, 4: End time. -#: includes/Shortcodes/Shortcode.php:85 -#: includes/Shortcodes/Shortcode.php:185 -msgid "%1$s %2$s - %3$s %4$s" -msgstr "" - -#. translators: 1: Start date, 2: Start time, 3: End time. -#: includes/Shortcodes/Shortcode.php:96 -#: includes/Shortcodes/Shortcode.php:189 -msgid "%1$s %2$s - %3$s" -msgstr "" - -#: includes/Shortcodes/Shortcode.php:120 -msgid "View the calendar" -msgstr "" - -#: includes/Shortcodes/Shortcode.php:125 -msgid "Subscribe to calendar" +#. translators: 1: Server WordPress version number, 2: Required WordPress version number. +#: rrze-calendar.php:110 +msgid "The server is running WordPress version %1$s. The plugin requires at least WordPress version %2$s." msgstr "" #. translators: 1: Server PHP version number, 2: Required PHP version number. -#: rrze-calendar.php:60 -msgid "The server is running PHP version %1$s. The Plugin requires at least PHP version %2$s." -msgstr "" - -#. translators: 1: Server WordPress version number, 2: Required WordPress version number. -#: rrze-calendar.php:67 -msgid "The server is running WordPress version %1$s. The Plugin requires at least WordPress version %2$s." +#: rrze-calendar.php:118 +msgid "The server is running PHP version %1$s. The plugin requires at least PHP version %2$s." msgstr "" #. translators: 1: The plugin name, 2: The error string. -#: rrze-calendar.php:86 -#: rrze-calendar.php:157 +#: rrze-calendar.php:162 msgid "Plugins: %1$s: %2$s" msgstr "" diff --git a/rrze-calendar.php b/rrze-calendar.php index bf2ff92d..5694b8c5 100644 --- a/rrze-calendar.php +++ b/rrze-calendar.php @@ -1,111 +1,57 @@ load_plugin_textdomain('rrze-calendar', false, dirname(plugin_basename(__FILE__)) . '/languages')); -add_action('plugins_loaded', __NAMESPACE__ . '\loaded'); -add_action('init', __NAMESPACE__ . '\init'); +// Register activation hook for the plugin +register_activation_hook(__FILE__, __NAMESPACE__ . '\activation'); -/** - * loadTextdomain - */ -function loadTextdomain() -{ - load_plugin_textdomain( - 'rrze-calendar', - false, - sprintf('%s/languages/', dirname(plugin_basename(__FILE__))) - ); -} +// Register deactivation hook for the plugin +register_deactivation_hook(__FILE__, __NAMESPACE__ . '\deactivation'); /** - * System requirements verification. - * @return string Return an error message. + * Add an action hook for the 'plugins_loaded' hook. + * + * This code hooks into the 'plugins_loaded' action hook to execute a callback function when + * WordPress has fully loaded all active plugins and the theme's functions.php file. */ -function systemRequirements(): string -{ - global $wp_version; - // Strip off any -alpha, -RC, -beta, -src suffixes. - list($wpVersion) = explode('-', $wp_version); - $phpVersion = phpversion(); - $error = ''; - if (!is_php_version_compatible(RRZE_PHP_VERSION)) { - $error = sprintf( - /* translators: 1: Server PHP version number, 2: Required PHP version number. */ - __('The server is running PHP version %1$s. The Plugin requires at least PHP version %2$s.', 'rrze-calendar'), - $phpVersion, - RRZE_PHP_VERSION - ); - } elseif (!is_wp_version_compatible(RRZE_WP_VERSION)) { - $error = sprintf( - /* translators: 1: Server WordPress version number, 2: Required WordPress version number. */ - __('The server is running WordPress version %1$s. The Plugin requires at least WordPress version %2$s.', 'rrze-calendar'), - $wpVersion, - RRZE_WP_VERSION - ); - } - return $error; -} +add_action('plugins_loaded', __NAMESPACE__ . '\loaded'); /** * Activation callback function. */ function activation() { - if ($error = systemRequirements()) { - deactivate_plugins(plugin_basename(__FILE__)); - wp_die( - sprintf( - /* translators: 1: The plugin name, 2: The error string. */ - __('Plugins: %1$s: %2$s', 'rrze-calendar'), - plugin_basename(__FILE__), - $error - ) - ); - } - - add_action( - 'init', - function () { - loadTextdomain(); - CalendarEvent::registerPostType(); - CalendarFeed::registerPostType(); - flush_rewrite_rules(false); - } - ); - - flush_rewrite_rules(false); -} - -function init() { - loadTextdomain(); + settings()->loaded(); + // Register the 'CalendarEvent' and 'CalendarFeed' custom post types and flush rewrite rules. + CalendarEvent::registerPostType(); + CalendarFeed::registerPostType(); + flush_rewrite_rules(); } /** @@ -113,7 +59,7 @@ function init() { */ function deactivation() { - flush_rewrite_rules(false); + flush_rewrite_rules(); } /** @@ -143,31 +89,87 @@ function settings() } /** - * Execute on 'plugins_loaded' API/action. - * @return void + * Check system requirements for the plugin. + * + * This method checks if the server environment meets the minimum WordPress and PHP version requirements + * for the plugin to function properly. + * + * @return string An error message string if requirements are not met, or an empty string if requirements are satisfied. + */ +function systemRequirements(): string +{ + // Get the global WordPress version. + global $wp_version; + + // Get the PHP version. + $phpVersion = phpversion(); + + // Initialize an error message string. + $error = ''; + + // Check if the WordPress version is compatible with the plugin's requirement. + if (!is_wp_version_compatible(plugin()->getRequiresWP())) { + $error = sprintf( + /* translators: 1: Server WordPress version number, 2: Required WordPress version number. */ + __('The server is running WordPress version %1$s. The plugin requires at least WordPress version %2$s.', 'rrze-calendar'), + $wp_version, + plugin()->getRequiresWP() + ); + } elseif (!is_php_version_compatible(plugin()->getRequiresPHP())) { + // Check if the PHP version is compatible with the plugin's requirement. + $error = sprintf( + /* translators: 1: Server PHP version number, 2: Required PHP version number. */ + __('The server is running PHP version %1$s. The plugin requires at least PHP version %2$s.', 'rrze-calendar'), + $phpVersion, + plugin()->getRequiresPHP() + ); + } + + // Return the error message string, which will be empty if requirements are satisfied. + return $error; +} + +/** + * Handle the loading of the plugin. + * + * This function is responsible for initializing the plugin, loading text domains for localization, + * checking system requirements, and displaying error notices if necessary. */ function loaded() { + // Trigger the 'loaded' method of the main plugin instance. plugin()->loaded(); + + // Check system requirements and store any error messages. if ($error = systemRequirements()) { + // If there is an error, add an action to display an admin notice with the error message. add_action('admin_init', function () use ($error) { + // Check if the current user has the capability to activate plugins. if (current_user_can('activate_plugins')) { - $pluginData = get_plugin_data(plugin()->getFile()); - $pluginName = $pluginData['Name']; + // Get plugin data to retrieve the plugin's name. + $pluginName = plugin()->getName(); + + // Determine the admin notice tag based on network-wide activation. $tag = is_plugin_active_for_network(plugin()->getBaseName()) ? 'network_admin_notices' : 'admin_notices'; + + // Add an action to display the admin notice. add_action($tag, function () use ($pluginName, $error) { printf( '

' . /* translators: 1: The plugin name, 2: The error string. */ - __('Plugins: %1$s: %2$s', 'rrze-calendar') . + esc_html__('Plugins: %1$s: %2$s', 'rrze-calendar') . '

', - esc_html($pluginName), - esc_html($error) + $pluginName, + $error ); }); } }); + + // Return to prevent further initialization if there is an error. return; } - new Main; + + // If there are no errors, create an instance of the 'Main' class and trigger its 'loaded' method. + (new Main)->loaded(); } diff --git a/vendor/autoload.php b/vendor/autoload.php index 48ef29ca..ed7da0a7 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -22,4 +22,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit5b6c3334e65a54beb59683486ce33765::getLoader(); +return ComposerAutoloaderInit3edacbd9a8160b9e923dc58bd2192811::getLoader(); diff --git a/vendor/composer/autoload_psr4.php b/vendor/composer/autoload_psr4.php index b621c647..28717f25 100644 --- a/vendor/composer/autoload_psr4.php +++ b/vendor/composer/autoload_psr4.php @@ -7,6 +7,5 @@ return array( 'RRule\\' => array($baseDir . '/src', $vendorDir . '/rlanvin/php-rrule/src'), - 'RRZE\\WP\\' => array($vendorDir . '/rrze/wp/src'), 'RRZE\\Calendar\\' => array($baseDir . '/includes'), ); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 35a15961..98e037a0 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit5b6c3334e65a54beb59683486ce33765 +class ComposerAutoloaderInit3edacbd9a8160b9e923dc58bd2192811 { private static $loader; @@ -24,16 +24,16 @@ public static function getLoader() require __DIR__ . '/platform_check.php'; - spl_autoload_register(array('ComposerAutoloaderInit5b6c3334e65a54beb59683486ce33765', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit3edacbd9a8160b9e923dc58bd2192811', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInit5b6c3334e65a54beb59683486ce33765', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit3edacbd9a8160b9e923dc58bd2192811', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit5b6c3334e65a54beb59683486ce33765::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit3edacbd9a8160b9e923dc58bd2192811::getInitializer($loader)); $loader->register(true); - $filesToLoad = \Composer\Autoload\ComposerStaticInit5b6c3334e65a54beb59683486ce33765::$files; + $filesToLoad = \Composer\Autoload\ComposerStaticInit3edacbd9a8160b9e923dc58bd2192811::$files; $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 71e5e066..84db2902 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit5b6c3334e65a54beb59683486ce33765 +class ComposerStaticInit3edacbd9a8160b9e923dc58bd2192811 { public static $files = array ( 'ad901de1e5d16b81f427bfe3dc3de508' => __DIR__ . '/..' . '/cmb2/cmb2/init.php', @@ -14,7 +14,6 @@ class ComposerStaticInit5b6c3334e65a54beb59683486ce33765 'R' => array ( 'RRule\\' => 6, - 'RRZE\\WP\\' => 8, 'RRZE\\Calendar\\' => 14, ), ); @@ -25,10 +24,6 @@ class ComposerStaticInit5b6c3334e65a54beb59683486ce33765 0 => __DIR__ . '/../..' . '/src', 1 => __DIR__ . '/..' . '/rlanvin/php-rrule/src', ), - 'RRZE\\WP\\' => - array ( - 0 => __DIR__ . '/..' . '/rrze/wp/src', - ), 'RRZE\\Calendar\\' => array ( 0 => __DIR__ . '/../..' . '/includes', @@ -53,10 +48,10 @@ class ComposerStaticInit5b6c3334e65a54beb59683486ce33765 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit5b6c3334e65a54beb59683486ce33765::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit5b6c3334e65a54beb59683486ce33765::$prefixDirsPsr4; - $loader->prefixesPsr0 = ComposerStaticInit5b6c3334e65a54beb59683486ce33765::$prefixesPsr0; - $loader->classMap = ComposerStaticInit5b6c3334e65a54beb59683486ce33765::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit3edacbd9a8160b9e923dc58bd2192811::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit3edacbd9a8160b9e923dc58bd2192811::$prefixDirsPsr4; + $loader->prefixesPsr0 = ComposerStaticInit3edacbd9a8160b9e923dc58bd2192811::$prefixesPsr0; + $loader->classMap = ComposerStaticInit3edacbd9a8160b9e923dc58bd2192811::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index ce293004..43f2b67f 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -180,54 +180,6 @@ "source": "https://github.com/rlanvin/php-rrule/tree/v2.5.1" }, "install-path": "../rlanvin/php-rrule" - }, - { - "name": "rrze/wp", - "version": "2.0.0", - "version_normalized": "2.0.0.0", - "source": { - "type": "git", - "url": "https://github.com/RRZE-Webteam/rrze-wp.git", - "reference": "02076c39edcf586c1cbb5e889553bff0b24048a5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/RRZE-Webteam/rrze-wp/zipball/02076c39edcf586c1cbb5e889553bff0b24048a5", - "reference": "02076c39edcf586c1cbb5e889553bff0b24048a5", - "shasum": "" - }, - "require": { - "php": ">=8.0" - }, - "time": "2024-02-19T15:07:11+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "RRZE\\WP\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "GPL-3.0-or-later" - ], - "authors": [ - { - "name": "RRZE-Webteam", - "email": "webmaster@fau.de", - "homepage": "https://www.rrze.fau.de" - } - ], - "description": "A general purpose library for WordPress.", - "homepage": "https://github.com/RRZE-Webteam/rrze-wp", - "keywords": [ - "wordpress" - ], - "support": { - "issues": "https://github.com/RRZE-Webteam/rrze-wp/issues", - "source": "https://github.com/RRZE-Webteam/rrze-wp/tree/2.0.0" - }, - "install-path": "../rrze/wp" } ], "dev": true, diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 4dbc4bbf..882c1e8f 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => '__root__', 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => 'c9363e0bbcd5d41d384f00dfd5260c72151f3e7f', + 'reference' => '8f4387b6aa92325325194034c79ad4aac873d8b0', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -13,7 +13,7 @@ '__root__' => array( 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => 'c9363e0bbcd5d41d384f00dfd5260c72151f3e7f', + 'reference' => '8f4387b6aa92325325194034c79ad4aac873d8b0', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -46,14 +46,5 @@ 'aliases' => array(), 'dev_requirement' => false, ), - 'rrze/wp' => array( - 'pretty_version' => '2.0.0', - 'version' => '2.0.0.0', - 'reference' => '02076c39edcf586c1cbb5e889553bff0b24048a5', - 'type' => 'library', - 'install_path' => __DIR__ . '/../rrze/wp', - 'aliases' => array(), - 'dev_requirement' => false, - ), ), ); diff --git a/vendor/rrze/wp/.gitignore b/vendor/rrze/wp/.gitignore deleted file mode 100644 index f0602c7e..00000000 --- a/vendor/rrze/wp/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ -### vscode ### -.vscode/ -### NetBeans ### -**/nbproject/ -### PhpStorm ### -.idea/ -### macOS ### -.DS_Store -### Node ### -node_modules/ -### Tmp ### -_tmp/ diff --git a/vendor/rrze/wp/README.md b/vendor/rrze/wp/README.md deleted file mode 100644 index aa045eed..00000000 --- a/vendor/rrze/wp/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# RRZE WordPress Package - -The RRZE package for WordPress is a general-purpose package designed to simplify and streamline the development of plugins for WordPress. - -## Installation - -Install the latest version with - -```bash -% composer require rrze/wp -``` - -## Features - -### Plugin - -The purpose of this PHP library is to streamline the handling of files and directories within WordPress plugins. It offers methods to access various details about the plugin, including its file path, basename, directory, URL, version, and slug. - -[Read more](src/Plugin/README.md) - -### Settings - -This PHP library aims to simplify the creation of WordPress plugin settings pages, reducing reliance on the Settings API or custom code. It addresses the complexity of manual HTML coding for options and the integration of tabs and sections, streamlining the process for straightforward settings page creation. - -[Read more](src/Settings/README.md) diff --git a/vendor/rrze/wp/composer.json b/vendor/rrze/wp/composer.json deleted file mode 100644 index 6e714767..00000000 --- a/vendor/rrze/wp/composer.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "rrze/wp", - "description": "A general purpose library for WordPress.", - "version": "2.0.0", - "type": "library", - "keywords": [ - "wordpress" - ], - "homepage": "https://github.com/RRZE-Webteam/rrze-wp", - "license": "GPL-3.0-or-later", - "authors": [ - { - "name": "RRZE-Webteam", - "email": "webmaster@fau.de", - "homepage": "https://www.rrze.fau.de" - } - ], - "require": { - "php": ">=8.0" - }, - "autoload": { - "psr-4": { - "RRZE\\WP\\": "src" - } - }, - "lock": false -} \ No newline at end of file diff --git a/vendor/rrze/wp/src/Plugin/README.md b/vendor/rrze/wp/src/Plugin/README.md deleted file mode 100644 index 32acf519..00000000 --- a/vendor/rrze/wp/src/Plugin/README.md +++ /dev/null @@ -1,35 +0,0 @@ -# RRZE\WP\Plugin - -This PHP library is designed to simplify the management of WordPress plugin files and directories. It provides methods for retrieving information about the plugin, such as its file path, basename, directory, URL, version, and slug. - -## Usage - -To use this class, simply instantiate it with the full path and filename of the plugin: -```php -$plugin = new RRZE\WP\Plugin(__FILE__); -``` - -Then call the loaded() method to initialize the plugin properties: -```php -$plugin->loaded(); -``` - -You can now access various information about the plugin: -```php -$plugin_file = $plugin->getFile(); -$basename = $plugin->getBasename(); -$directory = $plugin->getDirectory(); -$url = $plugin->getUrl(); -$slug = $plugin->getSlug(); -$version = $plugin->getVersion(); -``` - -## Methods - -- `getFile()`: Get the full path and filename of the plugin. -- `getBasename()`: Get the basename of the plugin. -- `getDirectory()`: Get the filesystem directory path for the plugin. -- `getPath(string $path)`: Get the filesystem directory path for a specific file or directory within the plugin. -- `getUrl(string $path)`: Get the URL directory path for a specific file or directory within the plugin. -- `getSlug()`: Get the slug of the plugin. -- `getVersion()`: Get the version of the plugin. diff --git a/vendor/rrze/wp/src/Settings/languages/rrze-wp-settings-de_DE.mo b/vendor/rrze/wp/src/Settings/languages/rrze-wp-settings-de_DE.mo deleted file mode 100644 index f126a662..00000000 Binary files a/vendor/rrze/wp/src/Settings/languages/rrze-wp-settings-de_DE.mo and /dev/null differ diff --git a/vendor/rrze/wp/src/Settings/languages/rrze-wp-settings-de_DE.po b/vendor/rrze/wp/src/Settings/languages/rrze-wp-settings-de_DE.po deleted file mode 100644 index a299944d..00000000 --- a/vendor/rrze/wp/src/Settings/languages/rrze-wp-settings-de_DE.po +++ /dev/null @@ -1,38 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: RRZE\\WP\\Settings\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16T16:12:31+00:00\n" -"PO-Revision-Date: 2024-02-19 00:03+0100\n" -"Last-Translator: RRZE Webteam \n" -"Language-Team: Deutsch\n" -"Language: de_DE\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;" -"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;" -"esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;" -"esc_html_x:1,2c\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-SourceCharset: UTF-8\n" -"X-Generator: Poedit 3.4.2\n" -"X-Poedit-SearchPath-0: .\n" -"X-Poedit-SearchPath-1: ..\n" - -#: Main.php:177 -msgid "Unnamed tab" -msgstr "Unbenannte Registerkarte" - -#: Main.php:267 -msgid "You do not have enough permissions to do that." -msgstr "Du hast nicht die nötigen Berechtigungen, um das zu tun." - -#: Main.php:292 -msgid "Settings saved." -msgstr "Die Einstellungen wurden gespeichert." - -#: templates/settings-page.php:18 -msgid "Settings issues detected." -msgstr "Einstellungsprobleme erkannt." diff --git a/vendor/rrze/wp/src/Settings/languages/rrze-wp-settings-de_DE_formal.mo b/vendor/rrze/wp/src/Settings/languages/rrze-wp-settings-de_DE_formal.mo deleted file mode 100644 index 69c818d0..00000000 Binary files a/vendor/rrze/wp/src/Settings/languages/rrze-wp-settings-de_DE_formal.mo and /dev/null differ diff --git a/vendor/rrze/wp/src/Settings/languages/rrze-wp-settings-de_DE_formal.po b/vendor/rrze/wp/src/Settings/languages/rrze-wp-settings-de_DE_formal.po deleted file mode 100644 index 841b5c77..00000000 --- a/vendor/rrze/wp/src/Settings/languages/rrze-wp-settings-de_DE_formal.po +++ /dev/null @@ -1,39 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: RRZE\\WP\\Settings\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16T16:12:31+00:00\n" -"PO-Revision-Date: 2024-02-19 00:03+0100\n" -"Last-Translator: RRZE Webteam \n" -"Language-Team: Deutsch (Sie)\n" -"Language: de\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;" -"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;" -"esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;" -"esc_html_x:1,2c\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-SourceCharset: UTF-8\n" -"X-Generator: Poedit 3.4.2\n" -"X-Poedit-SearchPath-0: .\n" -"X-Poedit-SearchPath-1: ..\n" - -#: Main.php:177 -msgid "Unnamed tab" -msgstr "Unbenannte Registerkarte" - -#: Main.php:267 -msgid "You do not have enough permissions to do that." -msgstr "" -"Sie verfügen nicht über die erforderlichen Berechtigungen, um dies zu tun." - -#: Main.php:292 -msgid "Settings saved." -msgstr "Die Einstellungen wurden gespeichert." - -#: templates/settings-page.php:18 -msgid "Settings issues detected." -msgstr "Einstellungsprobleme erkannt."