All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jlot.client.executor.PushTranslationsCommandExecutor Maven / Gradle / Ivy

There is a newer version: 1.2
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy