2005-06-24 02:19:13 +00:00
|
|
|
<?php
|
|
|
|
|
/**
|
2006-08-02 18:37:55 +00:00
|
|
|
* Get all the translations messages, as defined in the English language file.
|
2009-08-05 00:34:18 +00:00
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
|
|
|
*
|
2012-09-07 20:03:56 +00:00
|
|
|
* @file
|
2009-08-05 00:34:18 +00:00
|
|
|
* @ingroup MaintenanceLanguage
|
2005-06-24 02:19:13 +00:00
|
|
|
*/
|
|
|
|
|
|
2024-08-27 12:00:25 +00:00
|
|
|
// @codeCoverageIgnoreStart
|
2013-05-17 00:16:59 +00:00
|
|
|
require_once __DIR__ . '/../Maintenance.php';
|
2024-08-27 12:00:25 +00:00
|
|
|
// @codeCoverageIgnoreEnd
|
2005-06-24 02:19:13 +00:00
|
|
|
|
2012-09-07 20:03:56 +00:00
|
|
|
/**
|
|
|
|
|
* Maintenance script that gets all messages as defined by the
|
|
|
|
|
* English language file.
|
|
|
|
|
*
|
|
|
|
|
* @ingroup MaintenanceLanguage
|
|
|
|
|
*/
|
2009-08-02 19:35:17 +00:00
|
|
|
class AllTrans extends Maintenance {
|
2020-02-06 08:47:10 +00:00
|
|
|
|
2009-08-02 19:35:17 +00:00
|
|
|
public function __construct() {
|
|
|
|
|
parent::__construct();
|
2016-01-30 02:48:47 +00:00
|
|
|
$this->addDescription( 'Get all messages as defined by the English language file' );
|
2009-08-02 19:35:17 +00:00
|
|
|
}
|
2006-08-02 18:37:55 +00:00
|
|
|
|
2009-08-02 19:35:17 +00:00
|
|
|
public function execute() {
|
2023-08-31 09:21:12 +00:00
|
|
|
$localisationCache = $this->getServiceContainer()->getLocalisationCache();
|
2020-12-22 14:51:13 +00:00
|
|
|
$englishMessages = $localisationCache->getItem( 'en', 'messages' );
|
2023-07-08 19:54:11 +00:00
|
|
|
foreach ( $englishMessages as $key => $_ ) {
|
2009-08-02 19:35:17 +00:00
|
|
|
$this->output( "$key\n" );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2007-06-29 01:19:14 +00:00
|
|
|
|
2024-08-27 12:00:25 +00:00
|
|
|
// @codeCoverageIgnoreStart
|
2018-01-13 00:02:09 +00:00
|
|
|
$maintClass = AllTrans::class;
|
2013-05-07 23:00:15 +00:00
|
|
|
require_once RUN_MAINTENANCE_IF_MAIN;
|
2024-08-27 12:00:25 +00:00
|
|
|
// @codeCoverageIgnoreEnd
|