-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This event is meant to give 3rd-party developers the possibility to copy i18n contents in every case contents should be copied to another language.
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
wcfsetup/install/files/lib/system/language/event/CopyLanguageContent.class.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?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 CopyLanguageContent implements IEvent | ||
{ | ||
public function __construct( | ||
public readonly Language $sourceLanguage, | ||
public readonly Language $targetLanguage, | ||
) { | ||
} | ||
} |