-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for all escaped characters as defined in .po format (fix #44
- Loading branch information
Igor Afanasyev
committed
Oct 29, 2016
1 parent
217264a
commit cd1ba39
Showing
9 changed files
with
109 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
files | ||
{ | ||
0 1 1 test_job test_namespace template.pot 0 | ||
1 2 12 test_job test_namespace translated.po 0 | ||
1 2 16 test_job test_namespace translated.po 0 | ||
} |
37 changes: 21 additions & 16 deletions
37
t/data/engine/parse_pot/00/reference-output/database/items
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,32 @@ | ||
items | ||
{ | ||
0 1 3 1 1 /file/path/filename0.php:106 NO 0 | ||
1 2 5 1 2 /file/path/filename1.php:75 NO 0 | ||
2 3 7 1 3 /file/path/filename2.php:13;30;45 NO 0 | ||
3 4 9 1 4 | ||
`/file/path/filename3.php:6 | ||
0 1 3 1 1 /file/path/filename0.php:106 NO 0 | ||
1 2 5 1 2 /file/path/filename1.php:75 NO 0 | ||
2 3 7 1 3 /file/path/filename2.php:13;30;45 NO 0 | ||
3 4 9 1 4 | ||
`/file/path/filename3.php:6 | ||
/file/path/filename4.php:6 | ||
/file/path/filename5.php:6` | ||
NO 0 | ||
4 5 11 1 5 `translator-comments | ||
NO 0 | ||
4 5 11 1 5 `translator-comments | ||
automatic-comments | ||
reference` | ||
NO 0 | ||
5 6 13 2 1 /file/path/filename0.php:106 NO 0 | ||
6 7 14 2 2 /file/path/filename1.php:75 NO 0 | ||
7 8 15 2 3 /file/path/filename2.php:13;30;45 NO 0 | ||
8 9 16 2 4 | ||
`/file/path/filename3.php:6 | ||
NO 0 | ||
5 6 13 1 6 | ||
`see gettext po parser for a list of control sequences | ||
https://github.com/autotools-mirror/gettext/blob/master/gettext-tools/src/po-lex.c#L749-L856` | ||
NO 0 | ||
6 7 15 1 7 NO NO 0 | ||
7 8 17 2 1 /file/path/filename0.php:106 NO 0 | ||
8 9 18 2 2 /file/path/filename1.php:75 NO 0 | ||
9 10 19 2 3 /file/path/filename2.php:13;30;45 NO 0 | ||
10 11 20 2 4 | ||
`/file/path/filename3.php:6 | ||
/file/path/filename4.php:6 | ||
/file/path/filename5.php:6` | ||
NO 0 | ||
9 10 18 2 6 `translator-comments | ||
NO 0 | ||
11 12 22 2 8 `translator-comments | ||
automatic-comments | ||
reference` | ||
NO 0 | ||
NO 0 | ||
} |
24 changes: 12 additions & 12 deletions
24
t/data/engine/parse_pot/00/reference-output/database/properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 13 additions & 10 deletions
23
t/data/engine/parse_pot/00/reference-output/database/translations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters