On 03/09/2024 17:09, ma...@apache.org wrote:
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/main by this push:
      new ab21ffadbd Add instructions to edit via POPEditor.com to all 
translated files
ab21ffadbd is described below

commit ab21ffadbdc2b8d8cb8db23758aa74ba786cdf4c
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Sep 3 17:08:09 2024 +0100

     Add instructions to edit via POPEditor.com to all translated files

I haven't run an import with this commit in place yet. I wanted to give folks a chance to review the text before it was added to every translated file.

Mark

---
  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: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org


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

Reply via email to