diff --git a/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java b/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java index 4fef7c3898..b634bc6fc7 100644 --- a/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java +++ b/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java @@ -71,12 +71,12 @@ import org.ofbiz.service.ServiceUtil; public class VCard { public static final String module = VCard.class.getName(); - public static final String resourceError = "MarketingUiLabels"; + public static final String resourceError = "MarketingUiLabels"; public static Map importVCard(DispatchContext dctx, Map context) { LocalDispatcher dispatcher = dctx.getDispatcher(); Delegator delegator = dctx.getDelegator(); - Locale locale = (Locale) context.get("locale"); + Locale locale = (Locale) context.get("locale"); Map result = ServiceUtil.returnSuccess(); Address workAddress = null; String email = null; @@ -207,11 +207,11 @@ public class VCard { } } catch (GenericEntityException e) { Debug.logError(e, module); - return ServiceUtil.returnError(UtilProperties.getMessage(resourceError, + return ServiceUtil.returnError(UtilProperties.getMessage(resourceError, "SfaImportVCardError", UtilMisc.toMap("errorString", e.getMessage()), locale)); } catch (GenericServiceException e) { Debug.logError(e, module); - return ServiceUtil.returnError(UtilProperties.getMessage(resourceError, + return ServiceUtil.returnError(UtilProperties.getMessage(resourceError, "SfaImportVCardError", UtilMisc.toMap("errorString", e.getMessage()), locale)); } return result; @@ -220,7 +220,7 @@ public class VCard { public static Map exportVCard(DispatchContext dctx, Map context) { Delegator delegator = dctx.getDelegator(); String partyId = (String) context.get("partyId"); - Locale locale = (Locale) context.get("locale"); + Locale locale = (Locale) context.get("locale"); File file = null; try { ContactModelFactory cmf = Pim.getContactModelFactory(); @@ -280,14 +280,14 @@ public class VCard { outputStream.close(); } catch (FileNotFoundException e) { Debug.logError(e, module); - return ServiceUtil.returnError(UtilProperties.getMessage(resourceError, + return ServiceUtil.returnError(UtilProperties.getMessage(resourceError, "SfaExportVCardErrorOpeningFile", UtilMisc.toMap("errorString", file.getAbsolutePath()), locale)); } catch (IOException e) { Debug.logError(e, module); return ServiceUtil.returnError(UtilProperties.getMessage(resourceError, "SfaExportVCardErrorWritingFile", UtilMisc.toMap("errorString", file.getAbsolutePath()), locale)); } catch (GenericEntityException e) { - return ServiceUtil.returnError(UtilProperties.getMessage(resourceError, + return ServiceUtil.returnError(UtilProperties.getMessage(resourceError, "SfaExportVCardError", UtilMisc.toMap("errorString", e.getMessage()), locale)); } return ServiceUtil.returnSuccess();