Skip to content

Commit

Permalink
fix correct line number for translation test
Browse files Browse the repository at this point in the history
  • Loading branch information
btkostner committed Apr 30, 2017
1 parent cc9b426 commit 3021d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _tests/translations.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function globRecursive($Pattern, $Flags = 0) {
$values = array_values(json_decode(file_get_contents($filename), TRUE));

foreach ( $values as $i => $value ) {
$line_number = $i + 1; // Translation number in transifex. Add 1 for JSON line number
$line_number = $i + 2; // Line number in the JSON file

preg_match_all("/\<([a-z0-9]+)\s?[^\<]*?(?<!\/)\s*\>/i", $value, $open_tags);
preg_match_all("/\<\/([a-z0-9]+)\s?[^\<]*?(?<!\/)\s*\>/i", $value, $close_tags);
Expand Down

0 comments on commit 3021d28

Please sign in to comment.