diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-26 20:12:29 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-26 20:12:29 -0400 |
commit | 7645559984a1f7cc34f1e346ed450b55278cfb3c (patch) | |
tree | e6b72615f2022fd827b9920175e5cc9e15b76028 | |
parent | 18ec035ec3c44a3d88d13837ad8f6f64f19ecb3b (diff) | |
download | translate-7645559984a1f7cc34f1e346ed450b55278cfb3c.tar.gz translate-7645559984a1f7cc34f1e346ed450b55278cfb3c.zip |
parsing: trim extra spaces from target names
-rw-r--r-- | common.php | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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]; } } |