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

Change subject: IntuitionTextdomains: Update comment and remove redundant regex 
filter
......................................................................


IntuitionTextdomains: Update comment and remove redundant regex filter

Follows-up b4d7be7.

Change-Id: I172d183394aedc9e18a7cf118ade5841e4c8be77
---
M ffs/IntuitionTextdomains.php
1 file changed, 3 insertions(+), 4 deletions(-)

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



diff --git a/ffs/IntuitionTextdomains.php b/ffs/IntuitionTextdomains.php
index 9ea4c9a..9726189 100644
--- a/ffs/IntuitionTextdomains.php
+++ b/ffs/IntuitionTextdomains.php
@@ -38,10 +38,9 @@
                        if ( isset( $g['file'] ) ) {
                                $file = $g['file'];
                        } else {
-                               // Intuition text-domains are case-insensitive 
and internally
-                               // converts to lowercase names starting with a 
capital letter.
-                               // eg. "MyTool" -> "Mytool/%CODE%.json"
-                               $file = preg_replace( '/\s+/', '', 
"$sanitizedName/%CODE%.json" );
+                               // Canonical names for Intuition text-domains 
are lowercase
+                               // eg. "MyTool" -> "mytool/en.json"
+                               $file = "$sanitizedName/%CODE%.json";
                        }
 
                        if ( isset( $g['descmsg'] ) ) {

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I172d183394aedc9e18a7cf118ade5841e4c8be77
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Krinkle <krinklem...@gmail.com>
Gerrit-Reviewer: Nikerabbit <niklas.laxst...@gmail.com>
Gerrit-Reviewer: Siebrand <siebr...@kitano.nl>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to