From 0927f8e05d48d264cf4b2a3e508ea233784c5877 Mon Sep 17 00:00:00 2001 From: Kevin <91883215+Kevin-CB@users.noreply.github.com> Date: Thu, 7 Oct 2021 21:25:07 +0200 Subject: [PATCH] [JENKINS-66795] Add french translation to LogRecorderManager (#5781) --- .../hudson/logging/Messages.properties | 2 +- .../hudson/logging/Messages_fr.properties | 23 +++++++++++++++++++ .../jenkins/util/ResourceBundleUtilTest.java | 2 +- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 core/src/main/resources/hudson/logging/Messages_fr.properties diff --git a/core/src/main/resources/hudson/logging/Messages.properties b/core/src/main/resources/hudson/logging/Messages.properties index f52cb90f4e..2ec0a48917 100644 --- a/core/src/main/resources/hudson/logging/Messages.properties +++ b/core/src/main/resources/hudson/logging/Messages.properties @@ -20,5 +20,5 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -LogRecorderManager.init=Initialing log recorders +LogRecorderManager.init=Initializing log recorders LogRecorderManager.DisplayName=System Log diff --git a/core/src/main/resources/hudson/logging/Messages_fr.properties b/core/src/main/resources/hudson/logging/Messages_fr.properties new file mode 100644 index 0000000000..9668bb94c0 --- /dev/null +++ b/core/src/main/resources/hudson/logging/Messages_fr.properties @@ -0,0 +1,23 @@ +# The MIT License +# +# Copyright (c) 2021, CloudBees, Inc. +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. + +LogRecorderManager.DisplayName=Logs systèmes diff --git a/core/src/test/java/jenkins/util/ResourceBundleUtilTest.java b/core/src/test/java/jenkins/util/ResourceBundleUtilTest.java index ed0b713d8e..9a1a01bcc2 100644 --- a/core/src/test/java/jenkins/util/ResourceBundleUtilTest.java +++ b/core/src/test/java/jenkins/util/ResourceBundleUtilTest.java @@ -61,7 +61,7 @@ public class ResourceBundleUtilTest { Locale.setDefault(new Locale("en", "US")); JSONObject bundle = ResourceBundleUtil.getBundle("hudson.logging.Messages", new Locale("kok")); // konkani - Assert.assertEquals("Initialing log recorders", bundle.getString("LogRecorderManager.init")); + Assert.assertEquals("Initializing log recorders", bundle.getString("LogRecorderManager.init")); }finally{ Locale.setDefault(defaultOSLocale); }