summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-26 20:12:29 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-26 20:12:29 -0400
commit7645559984a1f7cc34f1e346ed450b55278cfb3c (patch)
treee6b72615f2022fd827b9920175e5cc9e15b76028
parent18ec035ec3c44a3d88d13837ad8f6f64f19ecb3b (diff)
downloadtranslate-7645559984a1f7cc34f1e346ed450b55278cfb3c.tar.gz
translate-7645559984a1f7cc34f1e346ed450b55278cfb3c.zip
parsing: trim extra spaces from target names
-rw-r--r--common.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/common.php b/common.php
index a66d36e..3b5540d 100644
--- a/common.php
+++ b/common.php
@@ -64,6 +64,7 @@ function parselangfile($filename) {
elseif ($pos == 'phrase' && preg_match("/^([^:]+): ?(.*)$/", $line, $matches)) {
$subs = explode(',' , $matches[1]);
foreach($subs as $sub) {
+ $sub = trim($sub);
$thisphrase[$pos][$sub] = $matches[2];
}
}