Skip to content

Commit

Permalink
Merge pull request #9 from cachapa/master
Browse files Browse the repository at this point in the history
Avoid PHP notices when saving files with untranslatable strings
  • Loading branch information
erickok committed Mar 19, 2014
2 parents afe7cdd + 30e4a80 commit c92cf09
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@
$multiline = "";
foreach ($lines as $line) {

// Avoid looking up untranslatable strings
if (strpos($line, 'translatable="false"') !== false) {
continue;
}

// <string> lines
$line = trim($line);
if (substr(trim($line), 0, 8) == '<string ' && substr($line, -9) == '</string>') {
Expand Down

0 comments on commit c92cf09

Please sign in to comment.