Package com.jada.util

Examples of com.jada.util.GoogleTranslate.translate()


      form.setItemShortDescLangFlag(true);
      form.setItemDescLangFlag(true);
      form.setPageTitleLangFlag(true);
      form.setMetaKeywordsLangFlag(true);
      form.setMetaDescriptionLangFlag(true);
      form.setItemShortDescLang(translator.translate(item.getItemLanguage().getItemShortDesc()));
      form.setItemDescLang(translator.translate(item.getItemLanguage().getItemDesc()));
      form.setPageTitleLang(translator.translate(item.getItemLanguage().getPageTitle()));
      form.setMetaKeywordsLang(translator.translate(item.getItemLanguage().getMetaKeywords()));
      form.setMetaDescriptionLang(translator.translate(item.getItemLanguage().getMetaDescription()));
     
View Full Code Here


      form.setItemDescLangFlag(true);
      form.setPageTitleLangFlag(true);
      form.setMetaKeywordsLangFlag(true);
      form.setMetaDescriptionLangFlag(true);
      form.setItemShortDescLang(translator.translate(item.getItemLanguage().getItemShortDesc()));
      form.setItemDescLang(translator.translate(item.getItemLanguage().getItemDesc()));
      form.setPageTitleLang(translator.translate(item.getItemLanguage().getPageTitle()));
      form.setMetaKeywordsLang(translator.translate(item.getItemLanguage().getMetaKeywords()));
      form.setMetaDescriptionLang(translator.translate(item.getItemLanguage().getMetaDescription()));
     
      form.setItemAttribDetailValueLangFlag(true);
View Full Code Here

      form.setPageTitleLangFlag(true);
      form.setMetaKeywordsLangFlag(true);
      form.setMetaDescriptionLangFlag(true);
      form.setItemShortDescLang(translator.translate(item.getItemLanguage().getItemShortDesc()));
      form.setItemDescLang(translator.translate(item.getItemLanguage().getItemDesc()));
      form.setPageTitleLang(translator.translate(item.getItemLanguage().getPageTitle()));
      form.setMetaKeywordsLang(translator.translate(item.getItemLanguage().getMetaKeywords()));
      form.setMetaDescriptionLang(translator.translate(item.getItemLanguage().getMetaDescription()));
     
      form.setItemAttribDetailValueLangFlag(true);
      ItemAttributeDetailDisplayForm attributeDetailDisplayForm[] = form.getItemAttributeDetails();
View Full Code Here

      form.setMetaKeywordsLangFlag(true);
      form.setMetaDescriptionLangFlag(true);
      form.setItemShortDescLang(translator.translate(item.getItemLanguage().getItemShortDesc()));
      form.setItemDescLang(translator.translate(item.getItemLanguage().getItemDesc()));
      form.setPageTitleLang(translator.translate(item.getItemLanguage().getPageTitle()));
      form.setMetaKeywordsLang(translator.translate(item.getItemLanguage().getMetaKeywords()));
      form.setMetaDescriptionLang(translator.translate(item.getItemLanguage().getMetaDescription()));
     
      form.setItemAttribDetailValueLangFlag(true);
      ItemAttributeDetailDisplayForm attributeDetailDisplayForm[] = form.getItemAttributeDetails();
      for (int i = 0; i < attributeDetailDisplayForm.length; i++) {
View Full Code Here

      form.setMetaDescriptionLangFlag(true);
      form.setItemShortDescLang(translator.translate(item.getItemLanguage().getItemShortDesc()));
      form.setItemDescLang(translator.translate(item.getItemLanguage().getItemDesc()));
      form.setPageTitleLang(translator.translate(item.getItemLanguage().getPageTitle()));
      form.setMetaKeywordsLang(translator.translate(item.getItemLanguage().getMetaKeywords()));
      form.setMetaDescriptionLang(translator.translate(item.getItemLanguage().getMetaDescription()));
     
      form.setItemAttribDetailValueLangFlag(true);
      ItemAttributeDetailDisplayForm attributeDetailDisplayForm[] = form.getItemAttributeDetails();
      for (int i = 0; i < attributeDetailDisplayForm.length; i++) {
        attributeDetailDisplayForm[i].setItemAttribDetailValueLangFlag(true);
View Full Code Here

        attributeDetailDisplayForm[i].setItemAttribDetailValueLangFlag(true);
        CustomAttribute customAttribute = CustomAttributeDAO.load(site.getSiteId(), Format.getLong(attributeDetailDisplayForm[i].getCustomAttribId()));
        if (customAttribute.getCustomAttribTypeCode() != Constants.CUSTOM_ATTRIBUTE_TYPE_USER_INPUT) {
          continue;
        }
        attributeDetailDisplayForm[i].setItemAttribDetailValueLang(translator.translate(attributeDetailDisplayForm[i].getItemAttribDetailValue()));
      }
    }
    catch (Exception e) {
      logger.error(e);
        ActionMessages errors = new ActionMessages();
View Full Code Here

   
    CustomAttribute customAttribute = (CustomAttribute) em.find(CustomAttribute.class, Format.getLong(form.getCustomAttribId()));
   
      GoogleTranslate translator = new GoogleTranslate(form.getFromLocale(), form.getToLocale());
    form.setCustomAttribDescLangFlag(true);
    form.setCustomAttribDescLang(translator.translate(customAttribute.getCustomAttributeLanguage().getCustomAttribDesc()));
   
    if (customAttribute.getCustomAttribDataTypeCode() == Constants.CUSTOM_ATTRIBUTE_DATA_TYPE_STRING) {
      form.setCustomAttribOptionLangFlag(true);
      CustomAttributeOptionDisplayForm optionForms[] = form.getCustomAttribOptions();
      for (int i = 0; i < optionForms.length; i++) {
View Full Code Here

    if (customAttribute.getCustomAttribDataTypeCode() == Constants.CUSTOM_ATTRIBUTE_DATA_TYPE_STRING) {
      form.setCustomAttribOptionLangFlag(true);
      CustomAttributeOptionDisplayForm optionForms[] = form.getCustomAttribOptions();
      for (int i = 0; i < optionForms.length; i++) {
        CustomAttributeOptionDisplayForm optionForm = optionForms[i];
        optionForm.setCustomAttribValueLang(translator.translate(optionForm.getCustomAttribValue()));
        optionForm.setCustomAttribValueLangFlag(true);
      }
    }
   
    FormUtils.setFormDisplayMode(request, form, FormUtils.EDIT_MODE);
View Full Code Here

        form.setSubjectPwdResetLangFlag(true);
        form.setSubjectCustSalesLangFlag(true);
        form.setSubjectShippingQuoteLangFlag(true);
        form.setSubjectNotificationLangFlag(true);
        form.setCheckoutShoppingCartMessageLangFlag(true);
        form.setSiteNameLang(translator.translate(form.getSiteName()));
        form.setTemplateFooterLang(translator.translate(Format.getNonNullString(form.getTemplateFooter())));
        form.setSubjectPwdResetLang(translator.translate(Format.getNonNullString(form.getSubjectPwdReset())));
        form.setSubjectCustSalesLang(translator.translate(Format.getNonNullString(form.getSubjectCustSales())));
        form.setSubjectShippingQuoteLang(translator.translate(Format.getNonNullString(form.getSubjectShippingQuote())));
        form.setSubjectNotificationLang(translator.translate(Format.getNonNullString(form.getSubjectNotification())));
View Full Code Here

        form.setSubjectCustSalesLangFlag(true);
        form.setSubjectShippingQuoteLangFlag(true);
        form.setSubjectNotificationLangFlag(true);
        form.setCheckoutShoppingCartMessageLangFlag(true);
        form.setSiteNameLang(translator.translate(form.getSiteName()));
        form.setTemplateFooterLang(translator.translate(Format.getNonNullString(form.getTemplateFooter())));
        form.setSubjectPwdResetLang(translator.translate(Format.getNonNullString(form.getSubjectPwdReset())));
        form.setSubjectCustSalesLang(translator.translate(Format.getNonNullString(form.getSubjectCustSales())));
        form.setSubjectShippingQuoteLang(translator.translate(Format.getNonNullString(form.getSubjectShippingQuote())));
        form.setSubjectNotificationLang(translator.translate(Format.getNonNullString(form.getSubjectNotification())));
        form.setCheckoutShoppingCartMessageLang(translator.translate(Format.getNonNullString(form.getCheckoutShoppingCartMessage())));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.