\Translation_Entry
Translation_Entry class encapsulates a translatable string
Synopsis
- // members
- public boolean $is_plural = false;
- public $context = NULL;
- public $singular = NULL;
- public $plural = NULL;
- public array $translations = ;
- public string $translator_comments = '';
- public string $extracted_comments = '';
- public array $references = ;
- public array $flags = ;
- // methods
- public void __construct()
- public void Translation_Entry()
- public string|bool key()
- public void merge_with()
Violations
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
21 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
21 | 5 | error | Line indented incorrectly; expected at least 8 spaces, found 4 |
21 | 9 | error | The var keyword must not be used to declare a property |
21 | 9 | error | Visibility must be declared on property "$is_plural" |
23 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
23 | 5 | error | Line indented incorrectly; expected at least 8 spaces, found 4 |
23 | 9 | error | The var keyword must not be used to declare a property |
23 | 9 | error | Visibility must be declared on property "$context" |
24 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
24 | 5 | error | Line indented incorrectly; expected at least 8 spaces, found 4 |
24 | 9 | error | The var keyword must not be used to declare a property |
24 | 9 | error | Visibility must be declared on property "$singular" |
25 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
25 | 5 | error | Line indented incorrectly; expected at least 8 spaces, found 4 |
25 | 9 | error | The var keyword must not be used to declare a property |
25 | 9 | error | Visibility must be declared on property "$plural" |
26 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
26 | 5 | error | Line indented incorrectly; expected at least 8 spaces, found 4 |
26 | 9 | error | The var keyword must not be used to declare a property |
26 | 9 | error | Visibility must be declared on property "$translations" |
27 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
27 | 5 | error | Line indented incorrectly; expected at least 8 spaces, found 4 |
27 | 9 | error | The var keyword must not be used to declare a property |
27 | 9 | error | Visibility must be declared on property "$translator_comments" |
28 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
28 | 5 | error | Line indented incorrectly; expected at least 8 spaces, found 4 |
28 | 9 | error | The var keyword must not be used to declare a property |
28 | 9 | error | Visibility must be declared on property "$extracted_comments" |
29 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
29 | 5 | error | Line indented incorrectly; expected at least 8 spaces, found 4 |
29 | 9 | error | The var keyword must not be used to declare a property |
29 | 9 | error | Visibility must be declared on property "$references" |
30 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
30 | 5 | error | Line indented incorrectly; expected at least 8 spaces, found 4 |
30 | 9 | error | The var keyword must not be used to declare a property |
30 | 9 | error | Visibility must be declared on property "$flags" |
43 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
43 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
43 | 5 | error | Visibility must be declared on method "__construct" |
43 | 27 | error | Expected 0 spaces between opening bracket and argument "$args"; 1 found |
43 | 43 | error | Expected 0 spaces between argument "$args" and closing bracket; 1 found |
43 | 45 | error | Opening brace should be on a new line |
44 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
45 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
45 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
46 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
46 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
47 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
47 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
48 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
49 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
49 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
50 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
50 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
51 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
51 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
52 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
52 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
52 | 9 | error | Inline control structures are not allowed |
53 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
53 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
53 | 9 | error | Inline control structures are not allowed |
54 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
54 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
54 | 9 | error | Inline control structures are not allowed |
55 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
55 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
55 | 9 | error | Inline control structures are not allowed |
56 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
56 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
61 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
61 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
61 | 12 | error | Method name "Translation_Entry::Translation_Entry" is not in camel caps format |
61 | 40 | error | Expected 0 spaces between opening bracket and argument "$args"; 1 found |
61 | 56 | error | Expected 0 spaces between argument "$args" and closing bracket; 1 found |
61 | 58 | error | Opening brace should be on a new line |
62 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
62 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
62 | 15 | error | Space after opening parenthesis of function call prohibited |
62 | 15 | error | Expected 0 spaces before closing bracket; 1 found |
63 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
63 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
70 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
70 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
70 | 5 | error | Visibility must be declared on method "key" |
70 | 20 | error | Opening brace should be on a new line |
71 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
71 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
71 | 9 | error | Inline control structures are not allowed |
71 | 13 | error | Expected 0 spaces after opening bracket; 1 found |
71 | 64 | error | Expected 0 spaces before closing bracket; 1 found |
73 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
74 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
74 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
75 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
76 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
76 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
76 | 16 | error | Space after opening parenthesis of function call prohibited |
76 | 16 | error | Expected 0 spaces before closing bracket; 1 found |
78 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
78 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
79 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
79 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
84 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
84 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
84 | 5 | error | Method name "Translation_Entry::merge_with" is not in camel caps format |
84 | 5 | error | Visibility must be declared on method "merge_with" |
84 | 34 | error | Opening brace should be on a new line |
85 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
85 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
85 | 24 | error | Space after opening parenthesis of function call prohibited |
85 | 24 | error | Expected 0 spaces before closing bracket; 1 found |
85 | 38 | error | Space after opening parenthesis of function call prohibited |
85 | 38 | error | Expected 0 spaces before closing bracket; 1 found |
86 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
86 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
86 | 29 | error | Space after opening parenthesis of function call prohibited |
86 | 29 | error | Expected 0 spaces before closing bracket; 1 found |
86 | 43 | error | Space after opening parenthesis of function call prohibited |
86 | 43 | error | Expected 0 spaces before closing bracket; 1 found |
87 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
87 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
87 | 13 | error | Expected 0 spaces after opening bracket; 1 found |
87 | 69 | error | Expected 0 spaces before closing bracket; 1 found |
88 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
88 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
89 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
89 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
91 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
91 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
91 | 5 | error | Function closing brace must go on the next line following the body; found 1 blank lines before brace |
Members
public
- $context
- $extracted_comments
- $flags
- $is_plural
—
boolean
Whether the entry contains a string and its plural form, default is false - $plural
- $references
- $singular
- $translations
- $translator_comments
Methods
public
- __construct()
- Translation_Entry() — PHP4 constructor.
- key() — Generates a unique key for this entry
- merge_with()
History
-
2017-05-29T22:42:45+00:00 (commit #ba5872a)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Core remastered to Bootstrap CSS framework.
-
2017-05-17T09:50:09+00:00 (commit #bcd6e9c)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
PSR-2
-
2017-05-16T23:37:10+00:00 (commit #ad75944)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Fixes for PHP 7 compatibility
-
2017-05-16T19:52:59+00:00 (commit #fd0a296)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
PSR-2 applied
-
2016-01-25T17:45:50+00:00 (commit #97e2af2)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Pre v.3.0
-
2015-03-28T21:15:41+00:00 (commit #158813e)
Author: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru) / Commiter: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru)
ję v2
-
2015-03-13T19:41:13+00:00 (commit #839eee5)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Setting user ID cookie and some minor code changes. #50
-
2015-03-11T20:40:06+00:00 (commit #d811aca)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Added actions.