PRINTF("cannot create instance\n");
cookie_Localize(char* genericString) {  nsresult ret;  nsAutoString v;  /* create a bundle for the localization */  NS_WITH_SERVICE(nsIStringBundleService, pStringService, kStringBundleServiceCID, &ret);  if (NS_FAILED(ret)) {#ifdef DEBUG    printf("cannot get string service\n");#endif    return v.ToNewUnicode();  }  nsCOMPtr<nsILocale> locale;  nsCOMPtr<nsIStringBundle> bundle;  ret = pStringService->CreateBundle(cookie_localization, locale, getter_AddRefs(bundle));  if (NS_FAILED(ret)) {#ifdef DEBUG    printf("cannot create instance\n");#endif    return v.ToNewUnicode();  }  /* localize the given string */  nsString   strtmp; strtmp.AssignWithConversion(genericString);  const PRUnichar *ptrtmp = strtmp.GetUnicode();  nsXPIDLString ptrv;  ret = bundle->GetStringFromName(ptrtmp, getter_Copies(ptrv));  v = ptrv;  if (NS_FAILED(ret)) {#ifdef DEBUG    printf("cannot get string from name\n");#endif    return v.ToNewUnicode();  }  return v.ToNewUnicode();}