This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 2182c043510c3864d31fbbcfea0a2fc69ee6a957
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon Jul 29 20:32:28 2019 +0100

    Align with master
---
 .../apache/catalina/webresources/FileResource.java |  2 +-
 .../catalina/webresources/JarWarResourceSet.java   |  2 +-
 .../catalina/webresources/LocalStrings.properties  |  3 +-
 .../webresources/LocalStrings_es.properties        | 24 +++++++++
 .../webresources/LocalStrings_fr.properties        | 59 ++++++++++++++++++++++
 .../webresources/LocalStrings_ja.properties        | 59 ++++++++++++++++++++++
 6 files changed, 146 insertions(+), 3 deletions(-)

diff --git a/java/org/apache/catalina/webresources/FileResource.java 
b/java/org/apache/catalina/webresources/FileResource.java
index 2365b50..babe190 100644
--- a/java/org/apache/catalina/webresources/FileResource.java
+++ b/java/org/apache/catalina/webresources/FileResource.java
@@ -47,7 +47,7 @@ public class FileResource extends AbstractResource {
         boolean isEBCDIC = false;
         try {
             String encoding = System.getProperty("file.encoding");
-            if (encoding.indexOf("EBCDIC") != -1) {
+            if (encoding.contains("EBCDIC")) {
                 isEBCDIC = true;
             }
         } catch (SecurityException e) {
diff --git a/java/org/apache/catalina/webresources/JarWarResourceSet.java 
b/java/org/apache/catalina/webresources/JarWarResourceSet.java
index 52c4de6..adfb265 100644
--- a/java/org/apache/catalina/webresources/JarWarResourceSet.java
+++ b/java/org/apache/catalina/webresources/JarWarResourceSet.java
@@ -222,7 +222,7 @@ public class JarWarResourceSet extends 
AbstractArchiveResourceSet {
      */
     @Override
     protected JarEntry getArchiveEntry(String pathInArchive) {
-        throw new IllegalStateException("Coding error");
+        throw new 
IllegalStateException(sm.getString("jarWarResourceSet.codingError"));
     }
 
 
diff --git a/java/org/apache/catalina/webresources/LocalStrings.properties 
b/java/org/apache/catalina/webresources/LocalStrings.properties
index aa941cc..5b3f8b8 100644
--- a/java/org/apache/catalina/webresources/LocalStrings.properties
+++ b/java/org/apache/catalina/webresources/LocalStrings.properties
@@ -29,7 +29,6 @@ classpathUrlStreamHandler.notFound=Unable to load the 
resource [{0}] using the t
 
 dirResourceSet.manifestFail=Failed to read manifest from [{0}]
 dirResourceSet.notDirectory=The directory specified by base and internal path 
[{0}]{1}[{2}] does not exist.
-dirResourceSet.writeExists=The target of the write already exists
 dirResourceSet.writeNpe=The input stream may not be null
 
 extractingRoot.jarFailed=Failed to extract the JAR file [{0}]
@@ -46,6 +45,8 @@ jarResource.getUrlFail=Unable to determine a URL for the 
resource [{0}] located
 
 jarResourceRoot.invalidWebAppPath=This resource always refers to a directory 
so the supplied webAppPath must end with / but the provided webAppPath was [{0}]
 
+jarWarResourceSet.codingError=Coding error
+
 standardRoot.checkStateNotStarted=The resources may not be accessed if they 
are not currently started
 standardRoot.createInvalidFile=Unable to create WebResourceSet from [{0}]
 standardRoot.createNoFileResourceSet=The FileResourceSet feature has not yet 
been implemented
diff --git a/java/org/apache/catalina/webresources/LocalStrings_es.properties 
b/java/org/apache/catalina/webresources/LocalStrings_es.properties
new file mode 100644
index 0000000..0a2c28c
--- /dev/null
+++ b/java/org/apache/catalina/webresources/LocalStrings_es.properties
@@ -0,0 +1,24 @@
+# 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.
+
+cache.addFail=Imposible adicionar recursos a [{0}]  de la cache para la 
applicación web [{1}]  porque no hay suficiente espacio libre luego de eliminar 
los datos expirados de la caché - considere incrementar el tamaño máximo de la 
chaché
+
+dirResourceSet.notDirectory=El directorio especificado por la base y el camino 
interno [{0}]{1}[{2}] no existe.\n
+
+extractingRoot.targetFailed=Fallo al crear directorio [{0}] para los archivos 
JAR extraidos
+
+jarResource.getUrlFail=Imposible determinar una URL para el recurso [{0}] 
ubicado en el JAR [{1}]
+
+standardRoot.createUnknownType=Imposible crear  WebResourceSet de tipo 
desconocido [{0}]\n
diff --git a/java/org/apache/catalina/webresources/LocalStrings_fr.properties 
b/java/org/apache/catalina/webresources/LocalStrings_fr.properties
new file mode 100644
index 0000000..5a562f8
--- /dev/null
+++ b/java/org/apache/catalina/webresources/LocalStrings_fr.properties
@@ -0,0 +1,59 @@
+# 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.
+
+abstractArchiveResourceSet.setReadOnlyFalse=Les archives basées sur 
WebResourceSets telles que celles des JARs sont fixées comme étant en lecture 
seule et ne peuvent être configurées en lecture écriture
+
+abstractResource.getContentFail=Impossible de retourner [{0}] en tant que 
tableau d''octets
+abstractResource.getContentTooLarge=Impossible de retourner [{0}] comme 
tableau d''octets car la ressource a une taille de [{1}] octets qui est 
supérieure à la taille maximale d''un tableau d''octets
+
+abstractResourceSet.checkPath=Le chemin demandé [{0}] n''est pas valide, il 
doit commencer par ''/''
+
+cache.addFail=Incapable d''ajouter la ressource située [{0}] au cache de 
l''application web [{1}] parce qu''il n''y avait pas assez d''espace libre 
disponible après l''éviction des entrées de cache expirées - envisagez 
d''augmenter la taille maximale du cache
+cache.backgroundEvictFail=Le processus d''arrière plan d''éviction du cache 
n''a pas pu nettoyer [{0}] pourcents du cache pour le contexte [{1}], il 
faudrait augmenter la taille maximale du cache; après l''éviction, 
approximativement [{2}] KO de données restaient dans le cache
+cache.objectMaxSizeTooBig=La valeur [{0}]kB pour l''objectMaxSize est plus 
grade que la limite de maxSize/20 son elle a été réduite à [{1}]kB\n
+cache.objectMaxSizeTooBigBytes=La valeur de taille d''objet maximale pouvant 
être mis en cache de [{0}]kB est supérieure à Integer.MAX_VALUE qui est le 
maximum, la limite a donc été fixée à Integer.MAX_VALUE octets
+
+classpathUrlStreamHandler.notFound=Impossible de charger la ressource [{0}] en 
utilisant le chargeur de classe de contexte du thread ou celui de la classe 
actuelle
+
+dirResourceSet.manifestFail=Impossible de lire le manifeste depuis [{0}]
+dirResourceSet.notDirectory=Le répertoire qui a été spécifié pour la base et 
le chemin interne [{0}]{1}[{2}] n''existe pas
+dirResourceSet.writeNpe=Le flux d'entrée ne peut pas être null
+
+extractingRoot.jarFailed=Echec de l’extraction du fichier JAR [{0}]
+extractingRoot.targetFailed=Echec de la création du répertoire [{0}] pour 
l''extraction des fichiers contenus dans le JAR
+
+fileResource.getCanonicalPathFail=Impossible de déterminer le chemin canonique 
pour la ressource [{0}]
+fileResource.getCreationFail=Impossible de déterminer la date de création de 
la ressource [{0}]
+fileResource.getUrlFail=Impossible de déterminer l''URL pour la ressource [{0}]
+
+fileResourceSet.notFile=Le fichier spécifié par ses chemins de base et 
internes [{0}]{1}[{2}] n''existe pas
+
+jarResource.getInputStreamFail=Impossible d''obtenir une InputStream pour la 
ressource [{0}] située dans le JAR [{1}]
+jarResource.getUrlFail=Impossible de déterminer une URL pour la ressource 
[{0}] dans le JAR [{1}]
+
+jarResourceRoot.invalidWebAppPath=Cette ressource se réfère toujours à un 
répertoire donc le webAppPath fourni doit se terminer avec ''/'' mais il était 
[{0}]
+
+jarWarResourceSet.codingError=Erreur de programmation
+
+standardRoot.checkStateNotStarted=Les resources ne peuvent pas être accédées 
tant qu'elles ne sont pas démarrées
+standardRoot.createInvalidFile=Impossible de créer WebResourceSet à partir de 
[{0}]
+standardRoot.createNoFileResourceSet=la fonctionnalité FileResourceSet n'a pas 
encore été implémentée
+standardRoot.createUnknownType=Impossible de créer un WebResourceSet pour le 
type inconnu [{0}]
+standardRoot.invalidPath=Le chemin de ressources [{0}] est invalide
+standardRoot.invalidPathNormal=Le chemin de ressource [{0}] a été normalisé en 
[{1}] ce qui est invalide
+standardRoot.lockedFile=L''application web [{0}] n''a pas fermé le fichier 
[{1}] ouvert à partir de la trace
+standardRoot.noContext=Un contexte n'a pas été configuré pour ce 
WebResourceRoot
+standardRoot.startInvalidMain=L''ensemble de ressources principal [{0}] est 
invalide
+standardRoot.unsupportedProtocol=Le protocole [{0}] de l''URL n''est pas 
supporté par cette implémentation des ressources web
diff --git a/java/org/apache/catalina/webresources/LocalStrings_ja.properties 
b/java/org/apache/catalina/webresources/LocalStrings_ja.properties
new file mode 100644
index 0000000..f3f1b30
--- /dev/null
+++ b/java/org/apache/catalina/webresources/LocalStrings_ja.properties
@@ -0,0 +1,59 @@
+# 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.
+
+abstractArchiveResourceSet.setReadOnlyFalse=JARに基づくWebResourceSetなどのアーカイブベースのWebResourceSetは、読み取り専用にハードコードされており、読み取り/書き込み可能に構成されていない可能性があります。
+
+abstractResource.getContentFail=[{0}]をバイト配列として返すことができません。
+abstractResource.getContentTooLarge=リソースがバイト配列の最大サイズよりも大きいサイズの[{1}]バイトであるため、[{0}]をバイト配列として返すことができません。
+
+abstractResourceSet.checkPath=リクエストパス[{0}]が無効です。 "/"で始まる必要があります。
+
+cache.addFail=有効期限切れの項目を破棄しても利用可能な領域が不足するため、Web アプリケーション [{1}] のキャッシュにリソース 
[{0}] を追加できません。最大キャッシュサイズの増加を検討してください。
+cache.backgroundEvictFail=コンテキスト [{1}] のバックグラウンドキャッシュ削除処理は全体の [{0}] % 
を解放できませんでした。キャッシュサイズの最大値の増加を検討してください。現在は約 [{2}] kB のデータがキャッシュに残存しています。
+cache.objectMaxSizeTooBig=objectMaxSizeの[{0}] kBの値がmaxSize / 
20の制限より大きいため、[{1}] kBに減少しました。
+cache.objectMaxSizeTooBigBytes=キャッシュ可能なオブジェクトサイズの最大値に指定された [{0}]kB は 
Integer.MAX_VALUE バイトを越えています。最大値に Integer.MAX_VALUE を設定します。
+
+classpathUrlStreamHandler.notFound=スレッドコンテキストクラスローダー、あるいは、現在のクラスのクラスローダーでリソース 
[{0}] を読み込みできません。
+
+dirResourceSet.manifestFail=[{0}]からマニフェストを読み込めませんでした。
+dirResourceSet.notDirectory=ベースパスと内部パスで指定した [{0}][{1}][{2}] にディレクトリがありません。
+dirResourceSet.writeNpe=入力ストリームには null を指定できません。
+
+extractingRoot.jarFailed=JARファイル[{0}]の抽出に失敗しました
+extractingRoot.targetFailed=JAR ファイルを展開するためのディレクトリ [{0}] を作成できません。
+
+fileResource.getCanonicalPathFail=リソース [{0}] の正規化パスを取得できません。
+fileResource.getCreationFail=リソース[{0}]の作成時間を特定できません。
+fileResource.getUrlFail=リソース [{0}] の URL を取得できません。
+
+fileResourceSet.notFile=基本パスおよび内部パスで指定されたファイル [{0}]{1}[{2}] がありません。
+
+jarResource.getInputStreamFail=JAR ファイル [{1}] のリソース [{0}] の入力ストリームを取得できません。
+jarResource.getUrlFail=JAR [{1}]にあるリソース[{0}]のURLを特定できません
+
+jarResourceRoot.invalidWebAppPath=このリソースは常にディレクトリを参照するため、指定されたwebAppPathは/で終了する必要がありますが、指定されたwebAppPathは[{0}]です。
+
+jarWarResourceSet.codingError=コーディングエラー
+
+standardRoot.checkStateNotStarted=リソースは、現在起動されていない場合はアクセスできない場合があります
+standardRoot.createInvalidFile=[{0}]からWebResourceSetを作成できません。
+standardRoot.createNoFileResourceSet=FileResourceSet機能はまだ実装されていません。
+standardRoot.createUnknownType=未知のクラス [{0}] の WebResourceSet を作成できません。
+standardRoot.invalidPath=不正なリソースパス [{0}]
+standardRoot.invalidPathNormal=リソースパス[{0}]は有効ではない[{1}]に正規化されています。
+standardRoot.lockedFile=Webアプリケーション[{0}]は、次のスタックトレースによって開かれたファイル[{1}]を閉じることに失敗しました。
+standardRoot.noContext=この WebResourceRoot にはContext が構成されていません。
+standardRoot.startInvalidMain=指定された主リソースセット[{0}]は無効です。
+standardRoot.unsupportedProtocol=URLプロトコル[{0}]はこのWebリソース実装ではサポートされていません。


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to