ret = pNetService->CreateURL(&url, nsString(TEST_URL), nsnull, nsnull,
ret = pNetService->CreateURL(&url, nsString(PROPERTIES_URL), nsnull, nsnull,
Wallet_Localize(char* genericString) {  nsresult ret;  nsAutoString v("");  /* create a URL for the string resource file */#ifndef NECKO  nsINetService* pNetService = nsnull;  ret = nsServiceManager::GetService(kNetServiceCID, kINetServiceIID,    (nsISupports**) &pNetService);#else  nsIIOService* pNetService = nsnull;  ret = nsServiceManager::GetService(kIOServiceCID, kIIOServiceIID,    (nsISupports**) &pNetService);#endif // NECKO  if (NS_FAILED(ret)) {    printf("cannot get net service\n");    return v.ToNewCString();  }  nsIURI *url = nsnull;#ifndef NECKO  ret = pNetService->CreateURL(&url, nsString(TEST_URL), nsnull, nsnull,    nsnull);  nsServiceManager::ReleaseService(kNetServiceCID, pNetService);#else  nsIURI *uri = nsnull;  ret = pNetService->NewURI(TEST_URL, nsnull, &uri);  if (NS_FAILED(ret)) {    printf("cannot create URI\n");    nsServiceManager::ReleaseService(kIOServiceCID, pNetService);    return v.ToNewCString();  }  ret = uri->QueryInterface(nsIURI::GetIID(), (void**)&url);  nsServiceManager::ReleaseService(kIOServiceCID, pNetService);#endif // NECKO  if (NS_FAILED(ret)) {    printf("cannot create URL\n");    return v.ToNewCString();  }  /* create a bundle for the localization */  nsIStringBundleService* pStringService = nsnull;  ret = nsServiceManager::GetService(kStringBundleServiceCID,    kIStringBundleServiceIID, (nsISupports**) &pStringService);  if (NS_FAILED(ret)) {    printf("cannot get string service\n");    return v.ToNewCString();  }  nsILocale* locale = nsnull;  nsIStringBundle* bundle = nsnull;#if 1#ifndef NECKO  const char* spec = nsnull;#else  char* spec = nsnull;#endif /* NECKO */  ret = url->GetSpec(&spec);  if (NS_FAILED(ret)) {    printf("cannot get url spec\n");    nsServiceManager::ReleaseService(kStringBundleServiceCID, pStringService);#ifdef NECKO    nsCRT::free(spec);#endif /* NECKO */    return v.ToNewCString();  }  ret = pStringService->CreateBundle(spec, locale, &bundle);#ifdef NECKO  nsCRT::free(spec);#endif /* NECKO */#else  ret = pStringService->CreateBundle(url, locale, &bundle);#endif  if (NS_FAILED(ret)) {    printf("cannot create instance\n");    nsServiceManager::ReleaseService(kStringBundleServiceCID, pStringService);    return v.ToNewCString();  }  nsServiceManager::ReleaseService(kStringBundleServiceCID, pStringService);  /* localize the given string */#if 1  nsString   strtmp(genericString);  const PRUnichar *ptrtmp = strtmp.GetUnicode();  PRUnichar *ptrv = nsnull;  ret = bundle->GetStringFromName(ptrtmp, &ptrv);  v = ptrv;#else  ret = bundle->GetStringFromName(nsString(genericString), v);#endif  NS_RELEASE(bundle);  if (NS_FAILED(ret)) {    printf("cannot get string from name\n");    return v.ToNewCString();  }  return v.ToNewCString();}