This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/master by this push:
new fe4721b [SYNCOPE-1560] Setting FileInputConfig's language after
SyncopeConsoleSession
fe4721b is described below
commit fe4721bc2e76d127bfecc1ba299007b55ab2ef5e
Author: Francesco Chicchiriccò <[email protected]>
AuthorDate: Tue May 12 11:07:40 2020 +0200
[SYNCOPE-1560] Setting FileInputConfig's language after
SyncopeConsoleSession
---
.../console/wizards/CSVPullWizardBuilder.java | 29 ++++++++++++++++------
.../wicket/markup/html/form/BinaryFieldPanel.java | 24 ++++++++----------
.../console/SyncopeWebApplication.properties | 1 +
.../console/SyncopeWebApplication_fr_CA.properties | 1 +
.../console/SyncopeWebApplication_it.properties | 1 +
.../console/SyncopeWebApplication_ja.properties | 1 +
.../console/SyncopeWebApplication_pt_BR.properties | 1 +
.../console/SyncopeWebApplication_ru.properties | 1 +
.../markup/html/form/BinaryFieldPanel.properties | 17 -------------
.../html/form/BinaryFieldPanel_ja.properties | 17 -------------
.../enduser/markup/html/form/BinaryFieldPanel.java | 23 ++++++++---------
.../enduser/SyncopeWebApplication.properties | 1 +
.../enduser/SyncopeWebApplication_it.properties | 1 +
.../enduser/SyncopeWebApplication_ja.properties | 1 +
.../enduser/SyncopeWebApplication_pt_BR.properties | 1 +
.../enduser/SyncopeWebApplication_ru.properties | 1 +
.../markup/html/form/BinaryFieldPanel.properties | 17 -------------
.../html/form/BinaryFieldPanel_ja.properties | 17 -------------
18 files changed, 55 insertions(+), 100 deletions(-)
diff --git
a/client/idm/console/src/main/java/org/apache/syncope/client/console/wizards/CSVPullWizardBuilder.java
b/client/idm/console/src/main/java/org/apache/syncope/client/console/wizards/CSVPullWizardBuilder.java
index b5ceed5..12e55f1 100644
---
a/client/idm/console/src/main/java/org/apache/syncope/client/console/wizards/CSVPullWizardBuilder.java
+++
b/client/idm/console/src/main/java/org/apache/syncope/client/console/wizards/CSVPullWizardBuilder.java
@@ -26,6 +26,9 @@ import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.apache.commons.lang3.StringUtils;
+import org.apache.syncope.client.console.SyncopeConsoleSession;
+import org.apache.syncope.client.console.SyncopeWebApplication;
+import org.apache.syncope.client.console.pages.BasePage;
import org.apache.syncope.client.console.panels.CSVConfPanel;
import org.apache.syncope.client.console.rest.ImplementationRestClient;
import org.apache.syncope.client.console.rest.ReconciliationRestClient;
@@ -58,6 +61,7 @@ import org.apache.wicket.model.LoadableDetachableModel;
import org.apache.wicket.model.Model;
import org.apache.wicket.model.PropertyModel;
import org.apache.wicket.model.util.ListModel;
+import org.apache.wicket.util.lang.Bytes;
public class CSVPullWizardBuilder extends BaseAjaxWizardBuilder<CSVPullSpec> {
@@ -90,8 +94,14 @@ public class CSVPullWizardBuilder extends
BaseAjaxWizardBuilder<CSVPullSpec> {
private final Model<byte[]> csv = new Model<>();
+ private final Bytes maxUploadSize;
+
public CSVPullWizardBuilder(final CSVPullSpec defaultItem, final
PageReference pageRef) {
super(defaultItem, pageRef);
+
+ this.maxUploadSize =
SyncopeWebApplication.get().getMaxUploadFileSizeMB() == null
+ ? null
+ :
Bytes.megabytes(SyncopeWebApplication.get().getMaxUploadFileSizeMB());
}
@Override
@@ -118,12 +128,10 @@ public class CSVPullWizardBuilder extends
BaseAjaxWizardBuilder<CSVPullSpec> {
private static final long serialVersionUID = -4736870165235853919L;
public Details(final CSVPullSpec spec) {
- FileInputConfig csvFile = new FileInputConfig();
- csvFile.showUpload(false);
- csvFile.showRemove(false);
- csvFile.showPreview(false);
- csvFile.browseClass("btn btn-success");
- csvFile.browseIcon("<i class=\"fas fa-folder-open\"></i> ");
+ FileInputConfig csvFile = new FileInputConfig().
+ showUpload(false).showRemove(false).showPreview(false).
+
withLocale(SyncopeConsoleSession.get().getLocale().getLanguage()).
+ browseClass("btn btn-success").browseIcon("<i class=\"fas
fa-folder-open\"></i> ");
BootstrapFileInputField csvUpload =
new BootstrapFileInputField("csvUpload", new
ListModel<>(new ArrayList<>()), csvFile);
csvUpload.setRequired(true);
@@ -136,7 +144,14 @@ public class CSVPullWizardBuilder extends
BaseAjaxWizardBuilder<CSVPullSpec> {
protected void onSubmit(final AjaxRequestTarget target) {
FileUpload uploadedFile = csvUpload.getFileUpload();
if (uploadedFile != null) {
- csv.setObject(uploadedFile.getBytes());
+ if (maxUploadSize != null && uploadedFile.getSize() >
maxUploadSize.bytes()) {
+
SyncopeConsoleSession.get().error(getString("tooLargeFile").
+ replace("${maxUploadSizeB}",
String.valueOf(maxUploadSize.bytes())).
+ replace("${maxUploadSizeMB}",
String.valueOf(maxUploadSize.bytes() / 1000000L)));
+ ((BasePage)
getPageReference().getPage()).getNotificationPanel().refresh(target);
+ } else {
+ csv.setObject(uploadedFile.getBytes());
+ }
}
}
});
diff --git
a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/BinaryFieldPanel.java
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/BinaryFieldPanel.java
index 0372cb5..610ef7c 100644
---
a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/BinaryFieldPanel.java
+++
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/BinaryFieldPanel.java
@@ -178,12 +178,10 @@ public class BinaryFieldPanel extends
BaseBinaryFieldPanel {
downloadLink.setOutputMarkupId(true);
uploadForm.add(downloadLink);
- FileInputConfig config = new FileInputConfig();
- config.showUpload(false);
- config.showRemove(false);
- config.showPreview(false);
- config.browseClass("btn btn-success");
- config.browseIcon("<i class=\"fas fa-folder-open\"></i> ");
+ FileInputConfig config = new FileInputConfig().
+ showUpload(false).showRemove(false).showPreview(false).
+
withLocale(SyncopeConsoleSession.get().getLocale().getLanguage()).
+ browseClass("btn btn-success").browseIcon("<i class=\"fas
fa-folder-open\"></i> ");
fileUpload = new BootstrapFileInputField("fileUpload", new
ListModel<>(new ArrayList<>()), config);
fileUpload.setOutputMarkupId(true);
@@ -194,24 +192,24 @@ public class BinaryFieldPanel extends
BaseBinaryFieldPanel {
@Override
protected void onSubmit(final AjaxRequestTarget target) {
- final FileUpload uploadedFile = fileUpload.getFileUpload();
+ FileUpload uploadedFile = fileUpload.getFileUpload();
if (uploadedFile != null) {
if (maxUploadSize != null && uploadedFile.getSize() >
maxUploadSize.bytes()) {
// SYNCOPE-1213 manage directly max upload file size
(if set in properties file)
-
SyncopeConsoleSession.get().error(getString("tooLargeFile")
- .replace("${maxUploadSizeB}",
String.valueOf(maxUploadSize.bytes()))
- .replace("${maxUploadSizeMB}",
String.valueOf(maxUploadSize.bytes() / 1000000L)));
+
SyncopeConsoleSession.get().error(getString("tooLargeFile").
+ replace("${maxUploadSizeB}",
String.valueOf(maxUploadSize.bytes())).
+ replace("${maxUploadSizeMB}",
String.valueOf(maxUploadSize.bytes() / 1000000L)));
((BasePage)
getPageReference().getPage()).getNotificationPanel().refresh(target);
} else {
- final byte[] uploadedBytes = uploadedFile.getBytes();
- final String uploaded =
Base64.getEncoder().encodeToString(uploadedBytes);
+ byte[] uploadedBytes = uploadedFile.getBytes();
+ String uploaded =
Base64.getEncoder().encodeToString(uploadedBytes);
field.setModelObject(uploaded);
target.add(field);
if (previewer == null) {
container.addOrReplace(emptyFragment);
} else {
- final Component panelPreview =
previewer.preview(uploadedBytes);
+ Component panelPreview =
previewer.preview(uploadedBytes);
changePreviewer(panelPreview);
fileUpload.setModelObject(null);
uploadForm.addOrReplace(fileUpload);
diff --git
a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication.properties
b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication.properties
index 4bc667c..3104d7e 100644
---
a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication.properties
+++
b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication.properties
@@ -78,3 +78,4 @@ networkservices=Network Services
keymaster=Keymaster
domains=Domains
nomatch=No matches found
+tooLargeFile=File is too large, max upload file size is ${maxUploadSizeB}
bytes (${maxUploadSizeMB} MB).
diff --git
a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication_fr_CA.properties
b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication_fr_CA.properties
index 4550a2c..d9ebbf3 100644
---
a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication_fr_CA.properties
+++
b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication_fr_CA.properties
@@ -77,3 +77,4 @@ networkservices=Services r\u00e9seau
keymaster=Keymaster
domains=Domaines
nomatch=Aucune correspondance trouv\u00e9e
+tooLargeFile=Fichier trop volumineux, la taille maximale autoris\u00e9e est de
$ {maxUploadSizeB} octets ($ {maxUploadSizeMB} Mo).
diff --git
a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication_it.properties
b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication_it.properties
index 40a9a30..c1c0ef8 100644
---
a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication_it.properties
+++
b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication_it.properties
@@ -78,3 +78,4 @@ networkservices=Servizi di Rete
keymaster=Keymaster
domains=Domini
nomatch=Nessun risultato trovato
+tooLargeFile=File troppo grande, la dimensione massima ammessa \u00e8
${maxUploadSizeB} bytes (${maxUploadSizeMB} MB).
diff --git
a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication_ja.properties
b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication_ja.properties
index 4d52f95..85f9f23 100644
---
a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication_ja.properties
+++
b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication_ja.properties
@@ -76,3 +76,4 @@
networkservices=\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30b5\u30fc\u30d3\u30b9
keymaster=\u30ad\u30fc\u30de\u30b9\u30bf\u30fc
domains=\u30c9\u30e1\u30a4\u30f3
nomatch=No matches found
+tooLargeFile=File is too large, max upload file size is ${maxUploadSizeB}
bytes (${maxUploadSizeMB} MB).
diff --git
a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication_pt_BR.properties
b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication_pt_BR.properties
index 995c12c..112c58e 100644
---
a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication_pt_BR.properties
+++
b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication_pt_BR.properties
@@ -78,3 +78,4 @@ networkservices=Servi\u00e7os de Rede
keymaster=Keymaster
domains=Dom\u00ednios
nomatch=Nenhuma correspond\u00eancia encontrada
+tooLargeFile=File is too large, max upload file size is ${maxUploadSizeB}
bytes (${maxUploadSizeMB} MB).
diff --git
a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication_ru.properties
b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication_ru.properties
index 5a94577..d0855bb 100644
---
a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication_ru.properties
+++
b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/SyncopeWebApplication_ru.properties
@@ -77,3 +77,4 @@ networkservices=Network Services
keymaster=Keymaster
domains=Domains
nomatch=No matches found
+tooLargeFile=File is too large, max upload file size is ${maxUploadSizeB}
bytes (${maxUploadSizeMB} MB).
diff --git
a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/BinaryFieldPanel.properties
b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/BinaryFieldPanel.properties
deleted file mode 100644
index 6db49af..0000000
---
a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/BinaryFieldPanel.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-tooLargeFile=File is too large, max upload file size is ${maxUploadSizeB}
bytes (${maxUploadSizeMB} MB).
diff --git
a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/BinaryFieldPanel_ja.properties
b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/BinaryFieldPanel_ja.properties
deleted file mode 100644
index f82cd54..0000000
---
a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/BinaryFieldPanel_ja.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-tooLargeFile=\u30d5\u30a1\u30a4\u30eb\u304c\u5927\u304d\u3059\u304e\u307e\u3059\u3002\u6700\u5927\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30b5\u30a4\u30ba\u306f
${maxUploadSizeB} \u30d0\u30a4\u30c8 (${maxUploadSizeMB} MB) \u3067\u3059\u3002
diff --git
a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/markup/html/form/BinaryFieldPanel.java
b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/markup/html/form/BinaryFieldPanel.java
index 9bbd668..4bb7621 100644
---
a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/markup/html/form/BinaryFieldPanel.java
+++
b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/markup/html/form/BinaryFieldPanel.java
@@ -176,11 +176,10 @@ public class BinaryFieldPanel extends
BaseBinaryFieldPanel {
downloadLink.setOutputMarkupId(true);
uploadForm.add(downloadLink);
- FileInputConfig config = new FileInputConfig();
- config.showUpload(false);
- config.showRemove(false);
- config.showPreview(false);
- config.browseIcon("<i class=\"fas fa-folder-open\"></i> ");
+ FileInputConfig config = new FileInputConfig().
+ showUpload(false).showRemove(false).showPreview(false).
+
withLocale(SyncopeEnduserSession.get().getLocale().getLanguage()).
+ browseClass("btn btn-success").browseIcon("<i class=\"fas
fa-folder-open\"></i> ");
fileUpload = new BootstrapFileInputField("fileUpload", new
ListModel<>(new ArrayList<>()), config);
fileUpload.setOutputMarkupId(true);
@@ -191,24 +190,24 @@ public class BinaryFieldPanel extends
BaseBinaryFieldPanel {
@Override
protected void onSubmit(final AjaxRequestTarget target) {
- final FileUpload uploadedFile = fileUpload.getFileUpload();
+ FileUpload uploadedFile = fileUpload.getFileUpload();
if (uploadedFile != null) {
if (maxUploadSize != null && uploadedFile.getSize() >
maxUploadSize.bytes()) {
// SYNCOPE-1213 manage directly max upload file size
(if set in properties file)
-
SyncopeEnduserSession.get().error(getString("tooLargeFile")
- .replace("${maxUploadSizeB}",
String.valueOf(maxUploadSize.bytes()))
- .replace("${maxUploadSizeMB}",
String.valueOf(maxUploadSize.bytes() / 1000000L)));
+
SyncopeEnduserSession.get().error(getString("tooLargeFile").
+ replace("${maxUploadSizeB}",
String.valueOf(maxUploadSize.bytes())).
+ replace("${maxUploadSizeMB}",
String.valueOf(maxUploadSize.bytes() / 1000000L)));
((BaseWebPage)
getPageReference().getPage()).getNotificationPanel().refresh(target);
} else {
- final byte[] uploadedBytes = uploadedFile.getBytes();
- final String uploaded =
Base64.getEncoder().encodeToString(uploadedBytes);
+ byte[] uploadedBytes = uploadedFile.getBytes();
+ String uploaded =
Base64.getEncoder().encodeToString(uploadedBytes);
field.setModelObject(uploaded);
target.add(field);
if (previewer == null) {
container.addOrReplace(emptyFragment);
} else {
- final Component panelPreview =
previewer.preview(uploadedBytes);
+ Component panelPreview =
previewer.preview(uploadedBytes);
changePreviewer(panelPreview);
fileUpload.setModelObject(null);
uploadForm.addOrReplace(fileUpload);
diff --git
a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeWebApplication.properties
b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeWebApplication.properties
index 7d49574..0c1754b 100644
---
a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeWebApplication.properties
+++
b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeWebApplication.properties
@@ -80,3 +80,4 @@ after=After
captcha_error=Captcha entered does not match
invalid.security.answer=Invalid security answer
+tooLargeFile=File is too large, max upload file size is ${maxUploadSizeB}
bytes (${maxUploadSizeMB} MB).
diff --git
a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeWebApplication_it.properties
b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeWebApplication_it.properties
index 862b6c4..e8620a0 100644
---
a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeWebApplication_it.properties
+++
b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeWebApplication_it.properties
@@ -77,3 +77,4 @@ after=Dopo
captcha_error=Il Captcha inserito non \u00e8 corretto
invalid.security.answer=Risposta di sicurezza non valida
+tooLargeFile=File troppo grande, la dimensione massima ammessa \\u00e8
${maxUploadSizeB} bytes (${maxUploadSizeMB} MB).
diff --git
a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeWebApplication_ja.properties
b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeWebApplication_ja.properties
index 8bc5b4e..553dfb9 100644
---
a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeWebApplication_ja.properties
+++
b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeWebApplication_ja.properties
@@ -74,3 +74,4 @@ after=\u5f8c
captcha_error=\u5165\u529b\u3055\u308c\u305f\u30ad\u30e3\u30d7\u30c1\u30e3\u304c\u4e00\u81f4\u3057\u307e\u305b\u3093
invalid.security.answer=Invalid security answer
+tooLargeFile=File is too large, max upload file size is ${maxUploadSizeB}
bytes (${maxUploadSizeMB} MB).
diff --git
a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeWebApplication_pt_BR.properties
b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeWebApplication_pt_BR.properties
index 3e9c35c..d1d66c5 100644
---
a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeWebApplication_pt_BR.properties
+++
b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeWebApplication_pt_BR.properties
@@ -76,3 +76,4 @@ after=After
captcha_error=Captcha entered does not match
invalid.security.answer=Invalid security answer
+tooLargeFile=File is too large, max upload file size is ${maxUploadSizeB}
bytes (${maxUploadSizeMB} MB).
diff --git
a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeWebApplication_ru.properties
b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeWebApplication_ru.properties
index aed3730..a1859f5 100644
---
a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeWebApplication_ru.properties
+++
b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeWebApplication_ru.properties
@@ -75,3 +75,4 @@ after=After
captcha_error=Captcha entered does not match
invalid.security.answer=Invalid security answer
+tooLargeFile=File is too large, max upload file size is ${maxUploadSizeB}
bytes (${maxUploadSizeMB} MB).
diff --git
a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/markup/html/form/BinaryFieldPanel.properties
b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/markup/html/form/BinaryFieldPanel.properties
deleted file mode 100644
index 6db49af..0000000
---
a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/markup/html/form/BinaryFieldPanel.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-tooLargeFile=File is too large, max upload file size is ${maxUploadSizeB}
bytes (${maxUploadSizeMB} MB).
diff --git
a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/markup/html/form/BinaryFieldPanel_ja.properties
b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/markup/html/form/BinaryFieldPanel_ja.properties
deleted file mode 100644
index f82cd54..0000000
---
a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/markup/html/form/BinaryFieldPanel_ja.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-tooLargeFile=\u30d5\u30a1\u30a4\u30eb\u304c\u5927\u304d\u3059\u304e\u307e\u3059\u3002\u6700\u5927\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30b5\u30a4\u30ba\u306f
${maxUploadSizeB} \u30d0\u30a4\u30c8 (${maxUploadSizeMB} MB) \u3067\u3059\u3002