Nikerabbit has uploaded a new change for review.
https://gerrit.wikimedia.org/r/218613
Change subject: Normalize key in WikiPageMessageGroup::getMessage
......................................................................
Normalize key in WikiPageMessageGroup::getMessage
Should fix errors like these:
No message definition for 1198:project:About/61 while preparing the sandbox
Change-Id: Ic27a43e9e86a8c8baab618454ce155f95dbae8bc
---
M messagegroups/WikiPageMessageGroup.php
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate
refs/changes/13/218613/1
diff --git a/messagegroups/WikiPageMessageGroup.php
b/messagegroups/WikiPageMessageGroup.php
index e35c008..c80b113 100644
--- a/messagegroups/WikiPageMessageGroup.php
+++ b/messagegroups/WikiPageMessageGroup.php
@@ -97,6 +97,11 @@
if ( $this->isSourceLanguage( $code ) ) {
$stuff = $this->load( $code );
+ $title = Title::newFromText( $key );
+ if ( $title ) {
+ $key = $title->getPrefixedDBKey();
+ }
+
return isset( $stuff[$key] ) ? $stuff[$key] : null;
}
--
To view, visit https://gerrit.wikimedia.org/r/218613
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic27a43e9e86a8c8baab618454ce155f95dbae8bc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits