summaryrefslogtreecommitdiff
path: root/src/item.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/item.cc')
-rw-r--r--src/item.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/item.cc b/src/item.cc
index c6aed1a1..91a62ff7 100644
--- a/src/item.cc
+++ b/src/item.cc
@@ -397,7 +397,7 @@ string item_context(const item_t& item, const string& desc)
{
std::size_t len = item.end_pos - item.beg_pos;
if (! len)
- return "<no item context>";
+ return _("<no item context>");
assert(len > 0);
assert(len < 2048);
@@ -405,17 +405,17 @@ string item_context(const item_t& item, const string& desc)
std::ostringstream out;
if (item.pathname == path("/dev/stdin")) {
- out << desc << " from standard input:";
+ out << desc << _(" from standard input:");
return out.str();
}
- out << desc << " from \"" << item.pathname.string() << "\"";
+ out << desc << _(" from \"") << item.pathname.string() << "\"";
if (item.beg_line != item.end_line)
- out << ", lines " << item.beg_line << "-"
+ out << _(", lines ") << item.beg_line << "-"
<< item.end_line << ":\n";
else
- out << ", line " << item.beg_line << ":\n";
+ out << _(", line ") << item.beg_line << ":\n";
print_item(out, item, "> ");