From aabb32e118c42b120380a47e9dedeecf552b6ae8 Mon Sep 17 00:00:00 2001 From: Humdinger Date: Sun, 4 Dec 2011 09:04:35 +0100 Subject: [PATCH] Make the enclosure string in the mail body translatable. --- src/apps/mail/Content.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/apps/mail/Content.cpp b/src/apps/mail/Content.cpp index ec61d88577..ef75d1990d 100644 --- a/src/apps/mail/Content.cpp +++ b/src/apps/mail/Content.cpp @@ -2331,8 +2331,12 @@ TTextView::Reader::ParseMail(BMailContainer *container, if (type.GetShortDescription(typeDescription) != B_OK) strcpy(typeDescription, type.Type() ? type.Type() : B_EMPTY_STRING); - name = "\nname << " (Type: " << typeDescription << ")>\n"; + name = "\n<"; + name.Append(B_TRANSLATE_COMMENT("Enclosure: %name% (Type: %type%)", + "Don't translate the variables %name% and %type%.")); + name.Append(">\n"); + name.ReplaceFirst("%name%", enclosure->name); + name.ReplaceFirst("%type%", typeDescription); fView->GetSelection(&enclosure->text_start, &enclosure->text_end); enclosure->text_start++;