Krinkle has uploaded a new change for review.

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

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


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

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: newchange
Gerrit-Change-Id: I172d183394aedc9e18a7cf118ade5841e4c8be77
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Krinkle <[email protected]>

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

Reply via email to