@@ -0,0 +1,1652 @@
+package com.box.l10n.mojito.okapi;%0A%0Aimport net.sf.okapi.common.Event;%0Aimport net.sf.okapi.common.pipeline.BasePipelineStep;%0Aimport net.sf.okapi.common.resource.ITextUnit;%0Aimport net.sf.okapi.common.LocaleId;%0Aimport net.sf.okapi.common.pipeline.annotations.StepParameterMapping;%0Aimport net.sf.okapi.common.pipeline.annotations.StepParameterType;%0Aimport net.sf.okapi.common.resource.TextContainer;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.beans.factory.annotation.Configurable;%0Aimport com.box.l10n.mojito.pseudoloc.PseudoLocalization;%0A%0A/**%0A *%0A * @author srizvi%0A */%0A@Configurable%0Apublic class PseudoLocalizeStep extends BasePipelineStep %7B%0A%0A    private LocaleId targetLocale;%0A%0A    @Autowired%0A    PseudoLocalization pseudoLocalization;%0A%0A    @SuppressWarnings(%22deprecation%22)%0A    @StepParameterMapping(parameterType = StepParameterType.TARGET_LOCALE)%0A    public void setTargetLocale(LocaleId targetLocale) %7B%0A        this.targetLocale = targetLocale;%0A    %7D%0A%0A    @Override%0A    public String getName() %7B%0A        return %22Pseudolocalize a string%22;%0A    %7D%0A%0A    @Override%0A    public String getDescription() %7B%0A        return %22Takes a string in english and pseudolocalizes it.%22;%0A    %7D%0A%0A    @Override%0A    protected Event handleTextUnit(Event event) %7B%0A        ITextUnit textUnit = event.getTextUnit();%0A%0A        if (textUnit.isTranslatable()) %7B%0A            String source = textUnit.getSource().toString();%0A            String pseudoTranslation = pseudoLocalization.convertStringToPseudoLoc(source);%0A            textUnit.setTarget(targetLocale, new TextContainer(pseudoTranslation));%0A        %7D%0A%0A        return event;%0A    %7D%0A%7D%0A

Call PseudoLocalization Class from PseudoLocalizeStep (#165)