use wcf\data\page\PageEditor;
use wcf\system\cache\builder\LanguageCacheBuilder;
use wcf\system\database\util\PreparedStatementConditionBuilder;
+use wcf\system\event\EventHandler;
use wcf\system\exception\SystemException;
use wcf\system\io\AtomicWriter;
+use wcf\system\language\event\LanguageContentCopying;
use wcf\system\language\LanguageFactory;
use wcf\system\Regex;
use wcf\system\WCF;
}
PageEditor::resetCache();
+
+ EventHandler::getInstance()->fire(new LanguageContentCopying(
+ new Language($sourceLanguageID),
+ new Language($destinationLanguageID)
+ ));
}
}
--- /dev/null
+<?php
+
+namespace wcf\system\language\event;
+
+use wcf\data\language\Language;
+use wcf\system\event\IEvent;
+
+/**
+ * Indicates that the contents of a language should be copied to another one.
+ *
+ * @author Florian Gail
+ * @copyright 2001-2023 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @since 6.0
+ */
+final class LanguageContentCopying implements IEvent
+{
+ public function __construct(
+ public readonly Language $sourceLanguage,
+ public readonly Language $targetLanguage,
+ ) {
+ }
+}