forked from php-gettext/Gettext
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMerge.php
More file actions
40 lines (32 loc) · 1.01 KB
/
Merge.php
File metadata and controls
40 lines (32 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
declare(strict_types = 1);
namespace Gettext;
/**
* Merge constants.
*/
final class Merge
{
public const TRANSLATIONS_OURS = 1 << 0;
public const TRANSLATIONS_THEIRS = 1 << 1;
public const TRANSLATIONS_OVERRIDE = 1 << 2;
public const HEADERS_OURS = 1 << 3;
public const HEADERS_THEIRS = 1 << 4;
public const HEADERS_OVERRIDE = 1 << 5;
public const COMMENTS_OURS = 1 << 6;
public const COMMENTS_THEIRS = 1 << 7;
public const EXTRACTED_COMMENTS_OURS = 1 << 8;
public const EXTRACTED_COMMENTS_THEIRS = 1 << 9;
public const FLAGS_OURS = 1 << 10;
public const FLAGS_THEIRS = 1 << 11;
public const REFERENCES_OURS = 1 << 12;
public const REFERENCES_THEIRS = 1 << 13;
//Merge strategies
public const SCAN_AND_LOAD =
Merge::HEADERS_OVERRIDE
| Merge::TRANSLATIONS_OURS
| Merge::TRANSLATIONS_OVERRIDE
| Merge::EXTRACTED_COMMENTS_OURS
| Merge::REFERENCES_OURS
| Merge::FLAGS_THEIRS
| Merge::COMMENTS_THEIRS;
}