Nikerabbit has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/85905


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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate 
refs/changes/05/85905/1

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: newchange
Gerrit-Change-Id: I5427a0948d6f4428360db6c88010c109627d3ac3
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

Reply via email to