Bug 396588: exclude "Card For" when printing address listing

r=standard8, sr=bienvenu
This commit is contained in:
mkmelin+mozilla%iki.fi 2008-01-02 20:06:16 +00:00
Родитель 0e0ae6d26f
Коммит 90ba2779ce
3 изменённых файлов: 3 добавлений и 11 удалений

Просмотреть файл

@ -156,7 +156,6 @@ AuthDlgDesc=To access the directory server, enter your user name and password.
joinMeInThisChat=Join+me+in+this+Chat.
# For printing
headingCardFor=Card for
headingHome=Home
headingWork=Work
headingOther=Other

Просмотреть файл

@ -1231,13 +1231,6 @@ NS_IMETHODIMP nsAbCardProperty::ConvertToXMLPrintData(nsAString &aXMLSubstr)
xmlStr.SetLength(4096); // to reduce allocations. should be enough for most cards
xmlStr.AssignLiteral("<GeneratedName>\n");
nsString heading;
rv = bundle->GetStringFromName(NS_LITERAL_STRING("headingCardFor").get(), getter_Copies(heading));
NS_ENSURE_SUCCESS(rv, rv);
xmlStr.Append(heading);
xmlStr.Append(PRUnichar(' '));
// use ScanTXT to convert < > & to safe values.
nsString safeText;
if (!generatedName.IsEmpty()) {
@ -1276,10 +1269,11 @@ NS_IMETHODIMP nsAbCardProperty::ConvertToXMLPrintData(nsAString &aXMLSubstr)
xmlStr.AppendLiteral("<section><sectiontitle>");
rv = bundle->GetStringFromName(NS_LITERAL_STRING("headingAddresses").get(), getter_Copies(heading));
nsString headingAddresses;
rv = bundle->GetStringFromName(NS_LITERAL_STRING("headingAddresses").get(), getter_Copies(headingAddresses));
NS_ENSURE_SUCCESS(rv, rv);
xmlStr.Append(heading);
xmlStr.Append(headingAddresses);
xmlStr.AppendLiteral("</sectiontitle>");
nsCOMPtr<nsIRDFService> rdfService = do_GetService("@mozilla.org/rdf/rdf-service;1", &rv);

Просмотреть файл

@ -157,7 +157,6 @@ AuthDlgDesc=To access the directory server, enter your user name and password.
joinMeInThisChat=Join+me+in+this+Chat.
# For printing
headingCardFor=Card for
headingHome=Home
headingWork=Work
headingOther=Other