Siebrand has uploaded a new change for review.
https://gerrit.wikimedia.org/r/52219
Change subject: (bug 45345) Run mapped code through wfBCP47()
......................................................................
(bug 45345) Run mapped code through wfBCP47()
As suggested by Niklas in Change-Id:
Id125a06815e47ad3e09a6269191e43132e265b10
Change-Id: I0ef0bbf8b2b154c5554ee86990ce17afab4c8b76
---
M ffs/GettextFFS.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate
refs/changes/19/52219/1
diff --git a/ffs/GettextFFS.php b/ffs/GettextFFS.php
index f865fc1..0e341da 100644
--- a/ffs/GettextFFS.php
+++ b/ffs/GettextFFS.php
@@ -405,7 +405,7 @@
}
$specs['Content-Type'] = 'text/plain; charset=UTF-8';
$specs['Content-Transfer-Encoding'] = '8bit';
- $specs['Language'] = $this->group->mapCode( $code );
+ $specs['Language'] = wfBCP47( $this->group->mapCode( $code ) );
wfRunHooks( 'Translate:GettextFFS:headerFields', array(
&$specs, $this->group, $code ) );
$specs['X-Generator'] = $this->getGenerator();
--
To view, visit https://gerrit.wikimedia.org/r/52219
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0ef0bbf8b2b154c5554ee86990ce17afab4c8b76
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits