Permalink
Browse files

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...
1 parent b39744c commit 3a531ddb20fd085a0aca4e9eb975473070cc2eeb @chillu chillu committed Aug 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tools/UpdateTranslationsTask.php
@@ -170,7 +170,7 @@ protected function processYmlFile($file) {
$isBlock = false;
$blockIndex = -1;
$lines = explode(PHP_EOL, $content);
- $keyedLineRegex = '/^\s*[\w\d-_]*:\s*/';
+ $keyedLineRegex = '/^\s*[\w\d-_\.]*:\s*/';
$leadingQuoteRegex = '/^\s*\"/';
$trailingQuoteRegex = '/[^\\\\]\"$/';
foreach($lines as $i => $line) {

0 comments on commit 3a531dd

Please sign in to comment.