Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

BUG UpdateTranslationsTask YML regex (fixes #7707)

Wasn't detecting composite keys (separated by dots)
properly in temporary YML conversion, so messed up the
YML structure, effectively "hiding" and rearranging
translations values within the wrong keys.
  • Loading branch information...
commit 3a531ddb20fd085a0aca4e9eb975473070cc2eeb 1 parent b39744c
Ingo Schommer authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  tools/UpdateTranslationsTask.php
2  tools/UpdateTranslationsTask.php
@@ -170,7 +170,7 @@ protected function processYmlFile($file) {
170 170
 		$isBlock = false;
171 171
 		$blockIndex = -1;
172 172
 		$lines = explode(PHP_EOL, $content);
173  
-		$keyedLineRegex = '/^\s*[\w\d-_]*:\s*/'; 
  173
+		$keyedLineRegex = '/^\s*[\w\d-_\.]*:\s*/'; 
174 174
 		$leadingQuoteRegex = '/^\s*\"/';
175 175
 		$trailingQuoteRegex = '/[^\\\\]\"$/';
176 176
 		foreach($lines as $i => $line) {

0 notes on commit 3a531dd

Please sign in to comment.
Something went wrong with that request. Please try again.