limit of translator comment is 240 (excluding '# Translators:')
@@ -23,12 +23,12 @@ foreach my $match (@newline_errors) {
print_error($message, $filename, $input, $match);
}
-# Check for messages not preceded by a translator comment with a max length of 255 characters.
+# Check for messages not preceded by a translator comment with a max length of 240 characters.
# Note the variable-width negative lookbehind, which has experimental support.
# We're keeping the pattern within the limitations of the engine.
my @comment_errors = ($input =~ /(?<!# Translators:[^\n]{1,240}\n)([^\n]*(?<!_)_\((([ \t]*)?"[^\n]*"\n?)*([ \t]*)\)[^\n]\n)/sg);
foreach my $match (@comment_errors) {
- my $message = 'Missing or overlong (> 255 chars) translator comment';
+ my $message = 'Missing or overlong (> 240 chars) translator comment';
print_error($message, $filename, $input, $match);
}
