# $lineno += $nextlineno;
# next; # wrong domain
# }
- $comment = '';
- if ($1 =~ m/(((^|\n)[ \t]*#.*)+)\n?[^\n]*$/) {
- $comment = $1;
- $comment =~ s/^\s+#\s*//;
- $comment =~ s/\n[ \t]*#\s*/\n/g;
- }
- push (@msgids, $msgid);
+ $comment = '';
+ if ($1 =~ m/(((^|\n)\s*(\[%)?\s*#.*)+)\n?[^\n]*$/) {
+ $comment = $1;
+ $comment =~ s/\[%//g;
+ $comment =~ s/%\]//g;
+ $comment =~ s/^\s+#\s*//;
+ $comment =~ s/\n[ \t]*#\s*/\n/g;
+ }
+ push (@msgids, $msgid);
# if (defined ($messages->{$msgid})) {
# print STDERR "ttxgettext: Warning: msgid multiple defined:\n\t".
# $msgid."\n";
<div id="psearchres">
-[%# @translators: I'm really sorry :/ %]
[% suite_wording = suite_enc.match("^(default|all)$") ? g("all suites") : g("suite(s) <em>$suite_enc</em>");
section_wording = (section_enc == 'all') ? g("all sections") : g("section(s) <em>$section_enc</em>");
arch_wording = (architectures_enc == 'any') ? g("all architectures") : g("architecture(s) <em>$architectures_enc</em>");
source_wording, keyword_enc, suite_wording, section_wording, arch_wording);
ELSE;
exact_wording = opts.exact ? "" : g(" (including subword matching)");
+ # @translators: I'm really sorry :/
msg = g("You have searched for <em>%s</em> in packages names and descriptions in %s, %s, and %s%s.",
keyword_enc, suite_wording, section_wording, arch_wording, exact_wording);
END %]
[%- PROCESS 'html/messages.tmpl' -%]
<div id="pcontentsres">
-[%# @translators: I'm really sorry :/ %]
[% section_wording = ( section_enc == 'all' ? g("all sections") : g("section(s) <em>%s</em>", section_enc) );
arch_wording = ( architectures_enc == 'any' ? g("all architectures") : g("architecture(s) <em>%s</em>", architectures_enc) );
wording = g("paths that end with");
ELSIF mode == 'exactfilename';
wording = g("filenames that contain");
END %]
+[%# @translators: I'm really sorry :/ %]
<p>[% g('You have searched for %s <em>%s</em> in suite <em>%s</em>, %s, and %s.',
wording, keyword_enc, suite, section_wording, arch_wording) %]