diff options
-rw-r--r-- | composer.lock | 8 | ||||
-rw-r--r-- | lib/plugins/extension/GuiExtension.php | 4 | ||||
-rw-r--r-- | lib/plugins/extension/Installer.php | 5 | ||||
-rw-r--r-- | lib/plugins/extension/lang/de-informal/lang.php | 12 | ||||
-rw-r--r-- | lib/plugins/extension/style.less | 11 | ||||
-rw-r--r-- | lib/plugins/logviewer/lang/de-informal/intro.txt | 5 | ||||
-rw-r--r-- | lib/plugins/logviewer/lang/de-informal/lang.php | 10 | ||||
-rw-r--r-- | lib/plugins/logviewer/lang/de-informal/nolog.txt | 1 | ||||
-rw-r--r-- | lib/tpl/dokuwiki/lang/de-informal/lang.php | 2 | ||||
-rw-r--r-- | vendor/composer/installed.json | 8 | ||||
-rw-r--r-- | vendor/composer/installed.php | 6 | ||||
-rw-r--r-- | vendor/php81_bc/strftime/.gitignore | 1 | ||||
-rw-r--r-- | vendor/php81_bc/strftime/src/IntlLocaleFormatter.php | 4 | ||||
-rw-r--r-- | vendor/php81_bc/strftime/src/php-8.1-strftime.php | 19 |
14 files changed, 72 insertions, 24 deletions
diff --git a/composer.lock b/composer.lock index 5b89e0ef6..c320a024a 100644 --- a/composer.lock +++ b/composer.lock @@ -328,12 +328,12 @@ "source": { "type": "git", "url": "https://github.com/alphp/strftime.git", - "reference": "88e98f00b5d9247e8168c1eb528ab138fbf743d2" + "reference": "dcd30543db16c9b4ba095f6bf32ac16f15eb9448" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/alphp/strftime/zipball/88e98f00b5d9247e8168c1eb528ab138fbf743d2", - "reference": "88e98f00b5d9247e8168c1eb528ab138fbf743d2", + "url": "https://api.github.com/repos/alphp/strftime/zipball/dcd30543db16c9b4ba095f6bf32ac16f15eb9448", + "reference": "dcd30543db16c9b4ba095f6bf32ac16f15eb9448", "shasum": "" }, "require": { @@ -369,7 +369,7 @@ "issues": "https://github.com/alphp/strftime/issues", "source": "https://github.com/alphp/strftime" }, - "time": "2024-01-26T18:19:38+00:00" + "time": "2025-05-20T20:04:36+00:00" }, { "name": "phpseclib/phpseclib", diff --git a/lib/plugins/extension/GuiExtension.php b/lib/plugins/extension/GuiExtension.php index 4b8163c60..666cd37ed 100644 --- a/lib/plugins/extension/GuiExtension.php +++ b/lib/plugins/extension/GuiExtension.php @@ -46,8 +46,8 @@ class GuiExtension extends Gui $html .= '<div class="actions">'; // show the available update if there is one if ($this->extension->isUpdateAvailable()) { - $html .= ' <div class="version">' . $this->getLang('available_version') . ' ' . - hsc($this->extension->getLastUpdate()) . '</div>'; + $html .= ' <div class="available">' . $this->getLang('available_version') . ' ' . + '<span class="version">' . hsc($this->extension->getLastUpdate()) . '</span></div>'; } $html .= $this->actions(); diff --git a/lib/plugins/extension/Installer.php b/lib/plugins/extension/Installer.php index e08f1da52..5bb429b01 100644 --- a/lib/plugins/extension/Installer.php +++ b/lib/plugins/extension/Installer.php @@ -406,6 +406,11 @@ class Installer { $target = $extension->getInstallDir(); + // bundled plugins do not need to be writable + if ($extension->isBundled()) { + return; + } + // updates if (file_exists($target)) { if (!is_writable($target)) throw new Exception('noperms'); diff --git a/lib/plugins/extension/lang/de-informal/lang.php b/lib/plugins/extension/lang/de-informal/lang.php index ccec5ecc7..b2a37596c 100644 --- a/lib/plugins/extension/lang/de-informal/lang.php +++ b/lib/plugins/extension/lang/de-informal/lang.php @@ -3,6 +3,7 @@ /** * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) * + * @author andreash <aeheil@gmail.com> * @author MaWi <drmaxxis@gmail.com> * @author Felix <j.felix@mueller-donath.de> */ @@ -80,6 +81,12 @@ $lang['error_download'] = 'Download der Datei: %s nicht möglich.'; $lang['error_decompress'] = 'Die heruntergeladene Datei konnte nicht entpackt werden. Dies kann die Folge eines fehlerhaften Downloads sein. In diesem Fall solltest du versuchen den Vorgang zu wiederholen. Es kann auch die Folge eines unbekannten Kompressionsformates sein, in diesem Fall musst du die Datei selber herunterladen und manuell installieren.'; $lang['error_findfolder'] = 'Das Erweiterungs-Verzeichnis konnte nicht identifiziert werden, lade die Datei herunter und installiere sie manuell.'; $lang['error_copy'] = 'Beim Versuch Dateien in den Ordner <em>%s</em>: zu installieren trat ein Kopierfehler auf. Die Dateizugriffsberechtigungen könnten falsch sein. Dies kann an einem unvollständig installierten Plugin liegen und beeinträchtigt somit die Stabilität deiner Wiki-Installation.'; +$lang['error_nourl'] = 'Es konnte keine Download-URL für die Erweiterung %s gefunden werden.'; +$lang['error_notinstalled'] = 'Die Erweiterung %s ist nicht installiert.'; +$lang['error_alreadyenabled'] = 'Die Erweiterung %s wurde bereits aktiviert.'; +$lang['error_alreadydisabled'] = 'Die Erweiterung %s wurde bereits deaktiviert.'; +$lang['error_minphp'] = 'Die Erweiterung %s benötigt mindestens PHP Verison %s, dieses Wiki verwendet aber PHP %s.'; +$lang['error_maxphp'] = 'Die Erweiterung %s unterstützt PHP nur bis Version %s, dieses Wiki verwendet aber PHP %s.'; $lang['noperms'] = 'Das Erweiterungs-Verzeichnis ist schreibgeschützt'; $lang['notplperms'] = 'Das Template-Verzeichnis ist schreibgeschützt'; $lang['nopluginperms'] = 'Das Plugin-Verzeichnis ist schreibgeschützt'; @@ -87,5 +94,10 @@ $lang['git'] = 'Diese Erweiterung wurde über git installiert $lang['auth'] = 'Dieses Auth-Plugin ist in der Konfiguration nicht aktiviert, Du solltest es deaktivieren.'; $lang['install_url'] = 'Von URL installieren:'; $lang['install_upload'] = 'Erweiterung hochladen:'; +$lang['repo_badresponse'] = 'Das Plugin-Repository liefert eine ungültige Antwort.'; $lang['repo_error'] = 'Es konnte keine Verbindung zum Plugin-Verzeichnis hergestellt werden. Stelle sicher, dass der Server Verbindung mit www.dokuwiki.org aufnehmen darf und überprüfe deine Proxy-Einstellungen.'; $lang['nossl'] = 'Deine PHP-Installation scheint SSL nicht zu unterstützen. Das Herunterladen vieler DokuWiki-Erweiterungen wird scheitern.'; +$lang['popularity_high'] = 'Dies ist die beliebteste Erweiterung'; +$lang['popularity_medium'] = 'Diese Erweiterung ist beliebt'; +$lang['popularity_low'] = 'Diese Erweiterung stößt auf Interesse'; +$lang['details'] = 'Details'; diff --git a/lib/plugins/extension/style.less b/lib/plugins/extension/style.less index 5337aea30..3993c656a 100644 --- a/lib/plugins/extension/style.less +++ b/lib/plugins/extension/style.less @@ -66,10 +66,11 @@ section.extension { display: grid; - grid-template-columns: @thumbwidth auto 15em; + grid-template-columns: @thumbwidth auto 22%; grid-template-rows: repeat(4, auto); margin-bottom: 1em; border-bottom: 1px solid @ini_border; + word-break: break-word; > .screenshot { grid-column: 1; @@ -132,6 +133,7 @@ } .version { + white-space: nowrap; } } @@ -154,9 +156,14 @@ align-items: end; gap: 0.5em; - .version { + .available { line-height: 1.2; margin-bottom: 1em; + text-align: right; + + .version { + white-space: nowrap; + } } } diff --git a/lib/plugins/logviewer/lang/de-informal/intro.txt b/lib/plugins/logviewer/lang/de-informal/intro.txt new file mode 100644 index 000000000..147b84731 --- /dev/null +++ b/lib/plugins/logviewer/lang/de-informal/intro.txt @@ -0,0 +1,5 @@ +====== Protokolle anzeigen ====== + +Diese Oberfläche ermöglicht es dir, die verschiedenen Protokolle einzusehen, die von DokuWiki erstellt werden. Normalerweise sollte hier nicht viel zu sehen sein (das hängt von deinen [[doku>config:dontlog|Protokoll-Einstellungen]] ab). Wenn jedoch etwas schiefläuft, stehen die Chancen gut, dass du hier nützliche Informationen zum Problem findest. + +Bitte beachte, dass **Protokolldateien sensible Informationen** wie Passwörter, Pfade oder andere vertrauliche Daten enthalten können. Achte darauf, die Protokolle entsprechend zu schwärzen, bevor du sie im Forum oder in Fehlerberichten veröffentlichst!
\ No newline at end of file diff --git a/lib/plugins/logviewer/lang/de-informal/lang.php b/lib/plugins/logviewer/lang/de-informal/lang.php new file mode 100644 index 000000000..2bf0774b5 --- /dev/null +++ b/lib/plugins/logviewer/lang/de-informal/lang.php @@ -0,0 +1,10 @@ +<?php + +/** + * @license GPL 2 (https://www.gnu.org/licenses/gpl.html) + * + * @author andreash <aeheil@gmail.com> + */ +$lang['menu'] = 'Protokolleinträge anzeigen'; +$lang['date'] = 'Datum'; +$lang['js']['filter'] = 'Protokolleinträge filtern'; diff --git a/lib/plugins/logviewer/lang/de-informal/nolog.txt b/lib/plugins/logviewer/lang/de-informal/nolog.txt new file mode 100644 index 000000000..8692823bd --- /dev/null +++ b/lib/plugins/logviewer/lang/de-informal/nolog.txt @@ -0,0 +1 @@ +Es liegen keine Protokolleinträge für den ausgewählten Tag und das ausgewählte Modul vor.
\ No newline at end of file diff --git a/lib/tpl/dokuwiki/lang/de-informal/lang.php b/lib/tpl/dokuwiki/lang/de-informal/lang.php index 7ac48b2f0..a43fdd65e 100644 --- a/lib/tpl/dokuwiki/lang/de-informal/lang.php +++ b/lib/tpl/dokuwiki/lang/de-informal/lang.php @@ -3,9 +3,11 @@ /** * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) * + * @author andreash <aeheil@gmail.com> * @author MaWi <drmaxxis@gmail.com> * @author F. Mueller-Donath <j.felix@mueller-donath.de> */ +$lang['home'] = 'Startseite'; $lang['__background_site__'] = 'Farbe für den Seitenhintergrund (hinter dem Inhaltsbereich)'; $lang['__link__'] = 'Allgemeine Linkfarbe'; $lang['__existing__'] = 'Farbe für Links zu existierenden Seiten'; diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 18e58e0f3..cd40aede8 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -337,12 +337,12 @@ "source": { "type": "git", "url": "https://github.com/alphp/strftime.git", - "reference": "88e98f00b5d9247e8168c1eb528ab138fbf743d2" + "reference": "dcd30543db16c9b4ba095f6bf32ac16f15eb9448" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/alphp/strftime/zipball/88e98f00b5d9247e8168c1eb528ab138fbf743d2", - "reference": "88e98f00b5d9247e8168c1eb528ab138fbf743d2", + "url": "https://api.github.com/repos/alphp/strftime/zipball/dcd30543db16c9b4ba095f6bf32ac16f15eb9448", + "reference": "dcd30543db16c9b4ba095f6bf32ac16f15eb9448", "shasum": "" }, "require": { @@ -354,7 +354,7 @@ "suggest": { "ext-intl": "For proper locale aware output" }, - "time": "2024-01-26T18:19:38+00:00", + "time": "2025-05-20T20:04:36+00:00", "type": "library", "installation-source": "dist", "autoload": { diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index cd710941f..7a6b0599c 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => 'dokuwiki/dokuwiki', 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => '59a6ba95c8c7b11b3a1e341c41942ec083784be0', + 'reference' => '396ae2b1e4ac18cd8a3de8ba055f983a807687dc', 'type' => 'project', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -22,7 +22,7 @@ 'dokuwiki/dokuwiki' => array( 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => '59a6ba95c8c7b11b3a1e341c41942ec083784be0', + 'reference' => '396ae2b1e4ac18cd8a3de8ba055f983a807687dc', 'type' => 'project', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -79,7 +79,7 @@ 'php81_bc/strftime' => array( 'pretty_version' => 'dev-fallback-intl', 'version' => 'dev-fallback-intl', - 'reference' => '88e98f00b5d9247e8168c1eb528ab138fbf743d2', + 'reference' => 'dcd30543db16c9b4ba095f6bf32ac16f15eb9448', 'type' => 'library', 'install_path' => __DIR__ . '/../php81_bc/strftime', 'aliases' => array(), diff --git a/vendor/php81_bc/strftime/.gitignore b/vendor/php81_bc/strftime/.gitignore index a5b812048..659557e1b 100644 --- a/vendor/php81_bc/strftime/.gitignore +++ b/vendor/php81_bc/strftime/.gitignore @@ -23,6 +23,7 @@ Thumbs.db ####################### /.vscode /composer.lock +.phpunit.result.cache # vim *~ *.swp diff --git a/vendor/php81_bc/strftime/src/IntlLocaleFormatter.php b/vendor/php81_bc/strftime/src/IntlLocaleFormatter.php index 5bb62e425..783a0c103 100644 --- a/vendor/php81_bc/strftime/src/IntlLocaleFormatter.php +++ b/vendor/php81_bc/strftime/src/IntlLocaleFormatter.php @@ -14,9 +14,9 @@ class IntlLocaleFormatter extends AbstractLocaleFormatter /** @var string[] strftime to ICU placeholders */ protected $formats = [ - '%a' => 'EEE', // An abbreviated textual representation of the day Sun through Sat + '%a' => 'ccc', // An abbreviated textual representation of the day Sun through Sat '%A' => 'EEEE', // A full textual representation of the day Sunday through Saturday - '%b' => 'MMM', // Abbreviated month name, based on the locale Jan through Dec + '%b' => 'LLL', // Abbreviated month name, based on the locale Jan through Dec '%B' => 'MMMM', // Full month name, based on the locale January through December '%h' => 'MMM', // Abbreviated month name, based on the locale (an alias of %b) Jan through Dec ]; diff --git a/vendor/php81_bc/strftime/src/php-8.1-strftime.php b/vendor/php81_bc/strftime/src/php-8.1-strftime.php index f8a8c79cd..75a6bb351 100644 --- a/vendor/php81_bc/strftime/src/php-8.1-strftime.php +++ b/vendor/php81_bc/strftime/src/php-8.1-strftime.php @@ -2,10 +2,13 @@ namespace PHP81_BC; use DateTime; - use DateTimeInterface; use DateTimeZone; + use DateTimeInterface; use Exception; use InvalidArgumentException; + use Locale; + use PHP81_BC\strftime\DateLocaleFormatter; + use PHP81_BC\strftime\IntlLocaleFormatter; /** * Locale-formatted strftime using IntlDateFormatter (PHP 8.1 compatible) @@ -22,7 +25,9 @@ * * @param string $format Date format * @param integer|string|DateTime $timestamp Timestamp + * @param string|null $locale locale * @return string + * @throws InvalidArgumentException * @author BohwaZ <https://bohwaz.net/> */ function strftime (string $format, $timestamp = null, ?string $locale = null) : string { @@ -34,15 +39,15 @@ } catch (Exception $e) { throw new InvalidArgumentException('$timestamp argument is neither a valid UNIX timestamp, a valid date-time string or a DateTime object.', 0, $e); } - } - $timestamp->setTimezone(new DateTimeZone(date_default_timezone_get())); + $timestamp->setTimezone(new DateTimeZone(date_default_timezone_get())); + } if (class_exists('\\IntlDateFormatter') && !isset($_SERVER['STRFTIME_NO_INTL'])) { - $locale = \Locale::canonicalize($locale ?? setlocale(LC_TIME, '0')); - $locale_formatter = new \PHP81_BC\strftime\IntlLocaleFormatter($locale); + $locale = Locale::canonicalize($locale ?? (Locale::getDefault() ?? setlocale(LC_TIME, '0'))); + $locale_formatter = new IntlLocaleFormatter($locale); } else { - $locale_formatter = new \PHP81_BC\strftime\DateLocaleFormatter($locale); + $locale_formatter = new DateLocaleFormatter($locale); } // Same order as https://www.php.net/manual/en/function.strftime.php @@ -151,7 +156,7 @@ case '#': case '-': // remove leading zeros but keep last char if also zero - return preg_replace('/^0+(?=.)/', '', $result); + return preg_replace('/^[0\s]+(?=.)/', '', $result); } return $result; |