Closed (cannot reproduce)
Project:
Coder
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
4 Dec 2008 at 07:08 UTC
Updated:
3 Sep 2012 at 00:50 UTC
Guys,
is i have a partially translated file, Coder tries to do normal checks on strings that has no translations. So it normally fails almost all tests. It must be ignored, or at least raise a warning and skip other tests.
The fix to be placed on coder_i18n.inc, line 123:
// Check if there is a translation to be tested.
if (empty($msgstr)) {
$rule = array(
'#warning' => "The string has no translation.",
);
_coder_error($results, $rule, $severity_name, $lineno, $msgstr);
continue;
}
regards,
massa
Comments
Comment #1
douggreen commentedComment #2
douggreen commentedSorry, I can't find this warning string anywhere in coder, even in the 6.x-1.x version. As this issue is almost 4 years old, I'm going to assume that the warning has already been changed.