\Translations
Synopsis
- // methods
- public bool add_entry()
- public bool add_entry_or_merge()
- public void set_header()
- public void set_headers()
- public void get_header()
- public void translate_entry()
- public string translate()
- public void select_plural_form()
- public int get_plural_forms_count()
- public void translate_plural()
- public void merge_with()
- public void merge_originals_with()
Violations
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
14 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
14 | 5 | error | Line indented incorrectly; expected at least 8 spaces, found 4 |
14 | 9 | error | The var keyword must not be used to declare a property |
14 | 9 | error | Visibility must be declared on property "$entries" |
15 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
15 | 5 | error | Line indented incorrectly; expected at least 8 spaces, found 4 |
15 | 9 | error | The var keyword must not be used to declare a property |
15 | 9 | error | Visibility must be declared on property "$headers" |
23 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
23 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
23 | 5 | error | Method name "Translations::add_entry" is not in camel caps format |
23 | 5 | error | Visibility must be declared on method "add_entry" |
23 | 32 | error | Opening brace should be on a new line |
24 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
24 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
25 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
25 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
26 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
26 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
27 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
27 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
28 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
28 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
28 | 9 | error | Inline control structures are not allowed |
29 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
29 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
30 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
30 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
31 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
31 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
37 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
37 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
37 | 5 | error | Method name "Translations::add_entry_or_merge" is not in camel caps format |
37 | 5 | error | Visibility must be declared on method "add_entry_or_merge" |
37 | 41 | error | Opening brace should be on a new line |
38 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
38 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
39 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
39 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
40 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
40 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
41 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
41 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
42 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
42 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
42 | 9 | error | Inline control structures are not allowed |
43 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
43 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
43 | 9 | error | Inline control structures are not allowed |
44 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
45 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
45 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
45 | 9 | error | Expected 1 space after ELSE keyword; newline found |
45 | 9 | error | Inline control structures are not allowed |
46 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
47 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
47 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
48 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
48 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
60 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
60 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
60 | 5 | error | Method name "Translations::set_header" is not in camel caps format |
60 | 5 | error | Visibility must be declared on method "set_header" |
60 | 42 | error | Opening brace should be on a new line |
61 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
61 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
62 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
62 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
67 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
67 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
67 | 5 | error | Method name "Translations::set_headers" is not in camel caps format |
67 | 5 | error | Visibility must be declared on method "set_headers" |
67 | 36 | error | Opening brace should be on a new line |
68 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
68 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
68 | 9 | error | Expected 1 space after FOREACH keyword; 0 found |
69 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
69 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
70 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
70 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
71 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
71 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
76 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
76 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
76 | 5 | error | Method name "Translations::get_header" is not in camel caps format |
76 | 5 | error | Visibility must be declared on method "get_header" |
76 | 34 | error | Opening brace should be on a new line |
77 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
77 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
78 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
78 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
83 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
83 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
83 | 5 | error | Method name "Translations::translate_entry" is not in camel caps format |
83 | 5 | error | Visibility must be declared on method "translate_entry" |
83 | 39 | error | Opening brace should be on a new line |
84 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
84 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
85 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
85 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
86 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
86 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
93 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
93 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
93 | 5 | error | Visibility must be declared on method "translate" |
93 | 43 | error | Incorrect spacing between argument "$context" and equals sign; expected 1 but found 0 |
93 | 43 | error | Incorrect spacing between default value and equals sign for argument "$context"; expected 1 but found 0 |
93 | 50 | error | Opening brace should be on a new line |
94 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
94 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
95 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
95 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
96 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
96 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
97 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
97 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
110 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
110 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
110 | 5 | error | Method name "Translations::select_plural_form" is not in camel caps format |
110 | 5 | error | Visibility must be declared on method "select_plural_form" |
110 | 41 | error | Opening brace should be on a new line |
111 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
111 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
112 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
112 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
117 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
117 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
117 | 5 | error | Method name "Translations::get_plural_forms_count" is not in camel caps format |
117 | 5 | error | Visibility must be declared on method "get_plural_forms_count" |
117 | 39 | error | Opening brace should be on a new line |
118 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
118 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
119 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
119 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
127 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
127 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
127 | 5 | error | Method name "Translations::translate_plural" is not in camel caps format |
127 | 5 | error | Visibility must be declared on method "translate_plural" |
127 | 76 | error | Opening brace should be on a new line |
128 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
128 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
129 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
129 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
130 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
130 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
131 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
131 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
132 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
132 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
132 | 9 | error | Inline control structures are not allowed |
133 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
134 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
135 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
135 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
136 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
136 | 9 | error | Line indented incorrectly; expected 16 spaces, found 8 |
136 | 9 | error | Expected 1 space after ELSE keyword; newline found |
136 | 9 | error | Inline control structures are not allowed |
137 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
137 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
138 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
138 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
146 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
146 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
146 | 5 | error | Method name "Translations::merge_with" is not in camel caps format |
146 | 5 | error | Visibility must be declared on method "merge_with" |
146 | 34 | error | Opening brace should be on a new line |
147 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
147 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
147 | 9 | error | Expected 1 space after FOREACH keyword; 0 found |
147 | 9 | error | Space found after opening bracket of FOREACH loop |
147 | 9 | error | Space found before closing bracket of FOREACH loop |
147 | 17 | error | Expected 0 spaces after opening bracket; 1 found |
147 | 43 | error | Expected 0 spaces before closing bracket; 1 found |
148 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
148 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
149 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
149 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
150 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
150 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
155 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
155 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
155 | 5 | error | Method name "Translations::merge_originals_with" is not in camel caps format |
155 | 5 | error | Visibility must be declared on method "merge_originals_with" |
155 | 44 | error | Opening brace should be on a new line |
156 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
156 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
156 | 9 | error | Expected 1 space after FOREACH keyword; 0 found |
156 | 9 | error | Space found after opening bracket of FOREACH loop |
156 | 9 | error | Space found before closing bracket of FOREACH loop |
156 | 17 | error | Expected 0 spaces after opening bracket; 1 found |
156 | 43 | error | Expected 0 spaces before closing bracket; 1 found |
157 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
157 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
157 | 13 | error | Inline control structures are not allowed |
157 | 17 | error | Expected 0 spaces after opening bracket; 1 found |
157 | 19 | error | Space after opening parenthesis of function call prohibited |
157 | 19 | error | Expected 0 spaces before closing bracket; 1 found |
157 | 57 | error | Expected 0 spaces before closing bracket; 1 found |
158 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
159 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
159 | 13 | error | Line indented incorrectly; expected 16 spaces, found 12 |
159 | 13 | error | Expected 1 space after ELSE keyword; newline found |
159 | 13 | error | Inline control structures are not allowed |
160 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
161 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
161 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
162 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
162 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
Members
public
- $entries
- $headers
Methods
public
- add_entry() — Add entry to the PO structure
- add_entry_or_merge()
- get_header()
- get_plural_forms_count()
- merge_originals_with()
- merge_with() — Merge $other in the current object.
- select_plural_form() — Given the number of items, returns the 0-based index of the plural form to use
- set_header() — Sets $header PO header to $value
- set_headers()
- translate()
- translate_entry()
- translate_plural()
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-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-17T22:34:17+00:00 (commit #28c49e6)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
#23: Написать автоматические тесты для всей системы https://github.com/Limych/GeniBase/issues/issue/23
-
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.