[gimp-help/gimp-help-2-10] tools: Add translated_percentage.py and validate_po info to README



commit 08c8c880c6753b845028a589e02a7c11f34252d1
Author: Jacob Boerema <jgboerema gmail com>
Date:   Tue Aug 2 14:36:08 2022 -0400

    tools:  Add translated_percentage.py and validate_po info to README
    
    (cherry picked from commit 3f263bad7578a7c53bfda787c8c9279263c1a1d2)

 tools/README | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)
---
diff --git a/tools/README b/tools/README
index e64dd9615..3370514a0 100644
--- a/tools/README
+++ b/tools/README
@@ -23,6 +23,15 @@ get_po_status.pl    This Perl script searches for po files in the specified
                     and strings, number of translated, fuzzy, or
                     untranslated strings).
 
+translated_percentage.py
+                    Generates info about what percentage of each available
+                    language has been translated. Written in a format that we
+                    can use when generating the website.
+
+validate_po.py      Validates correct use of XML tags and other possible causes
+                    of problems in po files.
+                    Note that currently only the translated messages are
+                    validated, not the original English message.
 
 
 show_translation_progress.py
@@ -99,6 +108,44 @@ Usage:
     tools/check_image_resolutions.sh DIR [DIR ...]
 
 
+translated_percentage.py
+========================
+
+Generates info about what percentage of each available language has been
+translated. Written in a format that we can use when generating the website.
+
+Requirements:
+    - msgfmt needs to be available
+
+Usage: translated_percentage.py [options]
+
+    options:
+        -o      --output          default: ../web/langstats.xml
+        -p      --podir           default: ../po
+        -q      --quickreference  handle quickreference po files
+        -v      --verbose         be more verbose
+        -h      --help            this help""")
+
+
+validate_po.py
+==============
+
+Validates correct use of XML tags and other possible causes of problems in
+po files.
+Note that currently only the translated messages are validated, not the
+original English message.
+
+Requirements:
+    - polib
+
+Usage: validate_po.py [options] POFILES
+
+    options:
+        -v      --verbose       be more verbose
+        -w      --warnings      show warnings
+        -h      --help          this help""")
+
+
 xml_helper.py
 =============
 Removed since multi-language XML documentation was ended long ago.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]