Commit 10ea7fd2 authored by Romain Bioteau's avatar Romain Bioteau Committed by GitHub
Browse files

fix(url) fix cron description url (#223)

use bos_redirect mechanism
parent ca8448bd
......@@ -269,7 +269,7 @@ startTimerConditionDescription=Define a start condition based on cycle, a fixed
timerConditionDescription=Define a timer condition based on a fixed date or a duration.\nCycle and duration evaluation will starts when the process is enabled.
startTimerConditionHint=Expect a cron expression (cycle), a java.util.Date (fixed date) or a java.lang.Long (duration)
timerConditionHint=Expect a java.util.Date (fixed date) or a java.lang.Long (duration)
cronShortDescription=Based on cron expression. <A href="http://www.quartz-scheduler.org/documentation/quartz-1.x/tutorials/crontrigger">?</A>
cronShortDescription=Based on cron expression. <A href="{0}">?</A>
invalidCronExpression=Invalid cron expression
mustBeAnValueBetween=Must be a value between {0} and {1}.
notAValidNumber=Not a valid number
......
......@@ -270,7 +270,7 @@ startTimerConditionDescription=Define una condici\u00f3n de tiempo de inicio bas
timerConditionDescription=Define una condici\u00f3n de temporizador basada en un periodo, un fecha fija o una duraci\u00f3n.\nLa evaluaci\u00f3n de los periodos y las duraciones se har\u00e1 cuando el proceso este activado.
startTimerConditionHint=Se esperaba una expresi\u00f3n cron (periodo), una java.util.Date (fecha fija) o un java.lang.Long (duraci\u00f3n)
timerConditionHint=Se esperaba una java.util.Date (fecha fija) o un java.lang.Long (duraci\u00f3n)
cronShortDescription=Basado en una expresi\u00f3n cron. <A href\="http\://www.quartz-scheduler.org/documentation/quartz-1.x/tutorials/crontrigger">?</A>
cronShortDescription=Basado en una expresi\u00f3n cron. <A href\="{0}">?</A>
invalidCronExpression=Expresi\u00f3n cron inv\u00e1lida
mustBeAnValueBetween=Debe ser un valor entre {0} y {1}.
notAValidNumber=No es un n\u00famero valido
......
......@@ -270,7 +270,7 @@ startTimerConditionDescription=D\u00e9finissez une condition de d\u00e9but bas\u
timerConditionDescription=D\u00e9finissez une condition de minuterie bas\u00e9e sur une date fixe ou une dur\u00e9e. La r\u00e9currence ou l'\u00e9valuation de la dur\u00e9e d\u00e9butera lorsque le processus sera activ\u00e9.
startTimerConditionHint=Les formats attendus sont une expression "cron" (r\u00e9currence), un java.util.Date (date fixe) ou un java.lang.Long (dur\u00e9e)
timerConditionHint=Format attendu \: un java.util.Date (date fixe) ou un java.lang.Long (dur\u00e9e)
cronShortDescription=Bas\u00e9 sur un expression "cron". <A href\="http\://www.quartz-scheduler.org/documentation/quartz-1.x/tutorials/crontrigger">?</A>
cronShortDescription=Bas\u00e9 sur un expression "cron". <A href\="{0}">?</A>
invalidCronExpression=Expression "cron" invalide
mustBeAnValueBetween=Doit \u00eatre une valeur comprise entre {0} et {1}.
notAValidNumber=Nombre invalide
......
......@@ -270,7 +270,7 @@ startTimerConditionDescription=\u30b5\u30a4\u30af\u30eb\u3001\u56fa\u5b9a\u65e5\
timerConditionDescription=\u30b5\u30a4\u30af\u30eb\u3001\u56fa\u5b9a\u65e5\u4ed8\u307e\u305f\u306f\u671f\u9593\u306b\u57fa\u3065\u3044\u3066\u30bf\u30a4\u30de\u30fc\u6761\u4ef6\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u30b5\u30a4\u30af\u30eb\u3068\u671f\u9593\u306e\u8a55\u4fa1\u304c\u6709\u52b9\u306b\u306a\u3063\u305f\u3068\u304d\u3001\u30d7\u30ed\u30bb\u30b9\u304c\u958b\u59cb\u3057\u307e\u3059\u3002
startTimerConditionHint=cron \u5f0f \uff08\u30b5\u30a4\u30af\u30eb\uff09\u3001java.util.Date \uff08\u56fa\u5b9a\u65e5\u4ed8\uff09 \u307e\u305f\u306f\u3001java.lang.Long \uff08\u671f\u9593\uff09 \u304c\u5fc5\u8981\u3067\u3059
timerConditionHint=java.util.Date \uff08\u56fa\u5b9a\u65e5\u6642\uff09 \u307e\u305f\u306f\u3001java.lang.Long \uff08\u671f\u9593\uff09 \u304c\u5fc5\u8981\u3067\u3059
cronShortDescription=cron \u5f0f\u306b\u57fa\u304f <A href\="http\://www.quartz-scheduler.org/documentation/quartz-1.x/tutorials/crontrigger">\u30d8\u30eb\u30d7</A>
cronShortDescription=cron \u5f0f\u306b\u57fa\u304f <A href\="{0}">\u30d8\u30eb\u30d7</A>
invalidCronExpression=\u7121\u52b9\u306acron\u5f0f
mustBeAnValueBetween={0} \u3068 {1} \u306e\u9593\u306e\u5024\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002
notAValidNumber=\u6709\u52b9\u306a\u6570\u5024\u3067\u306f\u306a\u3044\u3067\u3059
......
......@@ -20,6 +20,7 @@ import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import org.bonitasoft.studio.common.ProductVersion;
import org.bonitasoft.studio.common.log.BonitaStudioLog;
import org.bonitasoft.studio.properties.i18n.Messages;
import org.eclipse.core.databinding.DataBindingContext;
......@@ -35,6 +36,7 @@ import org.eclipse.core.runtime.IStatus;
import org.eclipse.jface.databinding.swt.SWTObservables;
import org.eclipse.jface.layout.GridDataFactory;
import org.eclipse.jface.layout.GridLayoutFactory;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
......@@ -172,6 +174,8 @@ public class CronEditor extends Composite {
Messages.december,
};
private static final String CRON_DOCUMENTATION_URL = String.format("http://www.bonitasoft.com/bos_redirect.php?bos_redirect_id=669&bos_redirect_product=bos&bos_redirect_major_version=%s",ProductVersion.majorVersion());
private CronExpression cronExpression;
private DataBindingContext context;
private IValidator dotValidator = new IValidator() {
......@@ -194,7 +198,7 @@ public class CronEditor extends Composite {
final Link aboutLabel = new Link(this, SWT.WRAP | SWT.NO_FOCUS);
aboutLabel.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create());
aboutLabel.setText(Messages.cronShortDescription);
aboutLabel.setText(NLS.bind(Messages.cronShortDescription,CRON_DOCUMENTATION_URL));
aboutLabel.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment