Translations::translate
Signature
public function translate(string
$singular,
[string
$context = NULL] )
Parameters
$singular
—
string
$context
—
string
Returns
- string
Violations
Checkstyle
Line |
Column |
Severity |
Message |
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 |