Ladsgroup has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/355879 )

Change subject: Intorduce MessageLocalizer interface for exposing msg() method
......................................................................

Intorduce MessageLocalizer interface for exposing msg() method

Bug: T162594
Change-Id: I2d9af9fc05264bffda675af46f656038cd72d0db
---
M autoload.php
A languages/MessageLocalizer.php
2 files changed, 39 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/79/355879/1

diff --git a/autoload.php b/autoload.php
index 6d2b66b..69d6d55 100644
--- a/autoload.php
+++ b/autoload.php
@@ -978,6 +978,7 @@
        'MessageBlobStore' => __DIR__ . '/includes/cache/MessageBlobStore.php',
        'MessageCache' => __DIR__ . '/includes/cache/MessageCache.php',
        'MessageContent' => __DIR__ . '/includes/content/MessageContent.php',
+       'MessageLocalizer' => __DIR__ . '/languages/MessageLocalizer.php',
        'MessageSpecifier' => __DIR__ . '/includes/libs/MessageSpecifier.php',
        'MigrateFileRepoLayout' => __DIR__ . 
'/maintenance/migrateFileRepoLayout.php',
        'MigrateUserGroup' => __DIR__ . '/maintenance/migrateUserGroup.php',
diff --git a/languages/MessageLocalizer.php b/languages/MessageLocalizer.php
new file mode 100644
index 0000000..26eb6ef
--- /dev/null
+++ b/languages/MessageLocalizer.php
@@ -0,0 +1,38 @@
+<?php
+/**
+ * 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
+ *
+ * @file
+ * @ingroup Language
+ */
+
+/**
+ * Interface for exposing mediawiki messages
+ *
+ * @since 1.29
+ * @ingroup Language
+ */
+interface MessageLocalizer {
+
+       /**
+        * Get a Message object with context set. See wfMessage for parameters.
+        *
+        * @param mixed ...
+        * @return Message
+        */
+       public function msg();
+
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/355879
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2d9af9fc05264bffda675af46f656038cd72d0db
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Ladsgroup <ladsgr...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to