From e352fff59842ca14fbfd81ee1c4a64297bb598c5 Mon Sep 17 00:00:00 2001 From: Alex Legler Date: Tue, 23 Dec 2014 17:49:26 +0100 Subject: Add initial set of additional extensions --- MLEB/Translate/messagegroups/MessageGroup.php | 171 ++++++++++++++++++++++++++ 1 file changed, 171 insertions(+) create mode 100644 MLEB/Translate/messagegroups/MessageGroup.php (limited to 'MLEB/Translate/messagegroups/MessageGroup.php') diff --git a/MLEB/Translate/messagegroups/MessageGroup.php b/MLEB/Translate/messagegroups/MessageGroup.php new file mode 100644 index 00000000..a22ad02d --- /dev/null +++ b/MLEB/Translate/messagegroups/MessageGroup.php @@ -0,0 +1,171 @@ + keys] is returned. + * @param $type string + * @return array + */ + public function getTags( $type = null ); + + /** + * Returns the definition or translation for given message key in given + * language code. + * @param string $key Message key + * @param string $code Language code + * @return string|null + */ + public function getMessage( $key, $code ); + + /** + * Returns language code depicting the language of source text. + * @return string + */ + public function getSourceLanguage(); + + /** + * Get the message group workflow state configuration. + * @return MessageGroupStates + */ + public function getMessageGroupStates(); + + /** + * Get all the translatable languages for a group, considering the whitelisting + * and blacklisting. + * @return array|null The language codes as array keys. + */ + public function getTranslatableLanguages(); + + /** + * List of available message types mapped to the classes + * implementing them. + * + * @return array + */ + public function getTranslationAids(); +} -- cgit v1.2.3-65-gdbad