Skip to content

Commit

Permalink
task page localizations
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed Mar 10, 2020
1 parent 3d2667c commit e8b5ae4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Expand Up @@ -77,7 +77,7 @@ public void setObject(T object) {
token = task.findOrCreateProperty(PATH_TOKEN);
} catch (SchemaException e) {
LoggingUtils.logUnexpectedException(LOGGER, "Cannot create token property", e);
getSession().error("Cannot create token property: " + e.getMessage());
getSession().error(getString("LivesyncTokenEditorPanel.create.token.failed", e.getMessage()));
return;
}
}
Expand All @@ -90,22 +90,22 @@ public void setObject(T object) {
tokenPanel.getBaseFormComponent().add(new EmptyOnChangeAjaxFormUpdatingBehavior());
add(tokenPanel);

AjaxButton okButton = new AjaxButton(ID_OK, createStringResource("button.ok")) {
AjaxButton okButton = new AjaxButton(ID_OK, createStringResource("Button.ok")) {

@Override
public void onClick(AjaxRequestTarget ajaxRequestTarget) {
getPageBase().hideMainPopup(ajaxRequestTarget);
ObjectDelta<TaskType> tokenDelta = getTokenDelta(ajaxRequestTarget);
if (tokenDelta == null) {
getSession().warn("Nothing to save. Token was not changed");
getSession().warn(getString("LivesyncTokenEditorPanel.token.delta.empty"));
return;
}
saveTokenPerformed(tokenDelta, ajaxRequestTarget);
}
};
add(okButton);

AjaxButton cancelButton = new AjaxButton(ID_CANCEL, createStringResource("button.cancel")) {
AjaxButton cancelButton = new AjaxButton(ID_CANCEL, createStringResource("Button.cancel")) {

@Override
public void onClick(AjaxRequestTarget ajaxRequestTarget) {
Expand All @@ -132,7 +132,7 @@ private <T> ObjectDelta<TaskType> getTokenDelta(AjaxRequestTarget target) {
return valuesEntry.replace(newTokenValue).asObjectDelta(getModelObject().getOid());
} catch (SchemaException e) {
LoggingUtils.logUnexpectedException(LOGGER, "Cannot modify token", e);
getSession().error("Cannot modify token: " + e.getMessage());
getSession().error(getString("LivesyncTokenEditorPanel.modify.token.failed", e.getMessage()));
target.add(getPageBase().getFeedbackPanel());
return null;
}
Expand Down
Expand Up @@ -292,7 +292,7 @@ public WebMarkupContainer createPanel(String panelId) {
}

protected void initLayoutSaveAndRunButton() {
AjaxSubmitButton saveButton = new AjaxSubmitButton(ID_SAVE_AND_RUN, getDetailsPage().createStringResource("pageAdminFocus.button.saveAndRun")) {
AjaxSubmitButton saveButton = new AjaxSubmitButton(ID_SAVE_AND_RUN, getDetailsPage().createStringResource("TaskMainPanel.button.saveAndRun")) {
private static final long serialVersionUID = 1L;

@Override
Expand Down

0 comments on commit e8b5ae4

Please sign in to comment.