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

douggreen’s picture

Version: 6.x-1.0 » 7.x-2.x-dev
Assigned: Unassigned » douggreen
douggreen’s picture

Status: Needs review » Closed (cannot reproduce)

Sorry, 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.