summaryrefslogtreecommitdiff
path: root/lib/Regex.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Regex.cc')
-rw-r--r--lib/Regex.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Regex.cc b/lib/Regex.cc
index 3c566bd..41c55c7 100644
--- a/lib/Regex.cc
+++ b/lib/Regex.cc
@@ -8,10 +8,10 @@ Regex::Regex(const String & regex, int acflags, int aeflags) throw (GeneralExcep
int r;
if ((r = regcomp(&preg, pattern, cflags | REG_NOSUB))) {
- cerr << "Error in regcomp:";
+ cerr << _("Error in regcomp:");
regerror(r, &preg, t, sizeof(t));
cerr << t << endl;
- throw GeneralException(String("Regex \"") + regex + "\" failed to compile: " + t + "\n");
+ throw GeneralException(String(_("Regex \"")) + regex + _("\" failed to compile: ") + t + "\n");
}
}
@@ -22,7 +22,7 @@ Regex::Regex(const Regex & regex) : pattern(Base::strdup(pattern)) {
cerr << "Error in regcomp:";
regerror(r, &preg, t, sizeof(t));
cerr << t << endl;
- throw GeneralException(String("Regex \"") + pattern + "\" failed to compile: " + t + "\n");
+ throw GeneralException(String(_("Regex \"")) + pattern + _("\" failed to compile: ") + t + "\n");
}
}