org.jlot.client.executor.PushTranslationsCommandExecutor Maven / Gradle / Ivy
package org.jlot.client.executor;
import javax.inject.Inject;
import org.jlot.client.configuration.Console;
import org.jlot.core.form.PushForm;
import org.springframework.stereotype.Component;
/**
* Find all translation property files matching the resource names given in the
* project configuration. Push them to the jlot server (which will create
* languages on behalf of the request)
*
* @author janning
*
*/
@Component
public class PushTranslationsCommandExecutor extends PushCommandExecutor
{
@Inject
private Console console;
@Override
protected PushForm getPushCommandForm ( )
{
console.sure("Do you really want to push translations?");
PushForm pushForm = super.getPushCommandForm();
pushForm.setPushTranslations(true);
return pushForm;
}
}