This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 11.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 6c9c036f8840ba1241866a131a40799467d7d87d Author: Mark Thomas <[email protected]> AuthorDate: Tue Sep 3 17:08:09 2024 +0100 Add instructions to edit via POPEditor.com to all translated files --- java/org/apache/tomcat/buildutil/translate/Import.java | 1 + java/org/apache/tomcat/buildutil/translate/Utils.java | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/java/org/apache/tomcat/buildutil/translate/Import.java b/java/org/apache/tomcat/buildutil/translate/Import.java index b46a61a622..81ba4431a4 100644 --- a/java/org/apache/tomcat/buildutil/translate/Import.java +++ b/java/org/apache/tomcat/buildutil/translate/Import.java @@ -76,6 +76,7 @@ public class Import { FileOutputStream fos = new FileOutputStream(outFile); w = new OutputStreamWriter(fos, StandardCharsets.UTF_8); org.apache.tomcat.buildutil.Utils.insertLicense(w); + Utils.insertEditInstructions(w); } if (!currentGroup.equals(cKey.group)) { diff --git a/java/org/apache/tomcat/buildutil/translate/Utils.java b/java/org/apache/tomcat/buildutil/translate/Utils.java index 91b896f9ec..24be38e937 100644 --- a/java/org/apache/tomcat/buildutil/translate/Utils.java +++ b/java/org/apache/tomcat/buildutil/translate/Utils.java @@ -201,4 +201,15 @@ public class Utils { ioe.printStackTrace(); } } + + + static void insertEditInstructions(Writer w) throws IOException { + w.write(System.lineSeparator()); + w.write("# Do not edit this file directly. Translations are managed via poeditor."); + w.write(System.lineSeparator()); + w.write("# Join to edit translations: https://poeditor.com/join/project/NUTIjDWzrl"); + w.write(System.lineSeparator()); + w.write("# View the translations : https://poeditor.com/projects/view?id=221603"); + w.write(System.lineSeparator()); + } } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
