jenkins-bot has submitted this change and it was merged.

Change subject: Really fix message loading for uncapitalized namespaces
......................................................................


Really fix message loading for uncapitalized namespaces

The namespace parameter for Title::capitalize had gotten lost
at some point.

Change-Id: I5427a0948d6f4428360db6c88010c109627d3ac3
---
M TranslateUtils.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Siebrand: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/TranslateUtils.php b/TranslateUtils.php
index dae336e..253680c 100644
--- a/TranslateUtils.php
+++ b/TranslateUtils.php
@@ -26,7 +26,7 @@
                $key = $ns . ':' . $message;
 
                if ( !isset( $cache[$key] ) ) {
-                       $cache[$key] = Title::capitalize( $message );
+                       $cache[$key] = Title::capitalize( $message, $ns );
                }
 
                if ( $code ) {

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I5427a0948d6f4428360db6c88010c109627d3ac3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to